MATLAB Answers

Why do I get a segmentation fault when I try to start MATLAB on Ubuntu 15.04 or newer?

조회 수: 55(최근 30일)
MathWorks Support Team
MathWorks Support Team 2015년 12월 18일
답변: Maeda Noriko 2021년 8월 25일 15:12
When I try to start MATLAB on Ubuntu 15.04 or newer, it crashes with a segmentation fault.
Why does this happen, and how can I resolve this issue?
Stack Trace (from fault):
[ 0] 0x00007fe176d928ba /lib64/ld-linux-x86-64.so.2+00051386
[ 1] 0x00007fe176d9b4b1 /lib64/ld-linux-x86-64.so.2+00087217
[ 2] 0x00007fe176d96464 /lib64/ld-linux-x86-64.so.2+00066660
[ 3] 0x00007fe176d9a9a3 /lib64/ld-linux-x86-64.so.2+00084387
[ 4] 0x00007fe17517afc9 /lib/x86_64-linux-gnu/libdl.so.2+00004041
[ 5] 0x00007fe176d96464 /lib64/ld-linux-x86-64.so.2+00066660
[ 6] 0x00007fe17517b62d /lib/x86_64-linux-gnu/libdl.so.2+00005677
[ 7] 0x00007fe17517b061 /lib/x86_64-linux-gnu/libdl.so.2+00004193 dlopen+00000049
[ 8] 0x00007fe1715a100a /usr/local/MATLAB/R2015b/bin/glnxa64/libut.so+00311306
[ 9] 0x00007fe16c9567e5 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_dispatcher.so+00456677
[ 10] 0x00007fe16c9491af /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_dispatcher.so+00401839 _ZN13Mlm_MATLAB_fn8try_loadEv+00000031
[ 11] 0x00007fe16c940ae5 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_dispatcher.so+00367333 _ZN13Mlm_MATLAB_fn4loadEv+00000037
[ 12] 0x00007fe16c93db09 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_dispatcher.so+00355081 _ZN13Mfh_MATLAB_fn11dispatch_fhEiPP11mxArray_tagiS2_+00000057
[ 13] 0x00007fe1670118af /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+08612015
[ 14] 0x00007fe1671357ff /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+09807871
[ 15] 0x00007fe16712b47f /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+09766015
[ 16] 0x00007fe1670f8981 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+09558401
[ 17] 0x00007fe166d5ad6c /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+05766508
[ 18] 0x00007fe166d454c1 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+05678273
[ 19] 0x00007fe166d54075 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+05738613
[ 20] 0x00007fe166f25033 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+07643187
[ 21] 0x00007fe166eecc40 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+07412800
[ 22] 0x00007fe166eef078 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+07422072
[ 23] 0x00007fe166eef140 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+07422272
[ 24] 0x00007fe166f666bc /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+07911100
[ 25] 0x00007fe166f66abc /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+07912124
[ 26] 0x00007fe16bec8d0d /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_interpreter.so+02600205 _Z51inEvalCmdWithLocalReturnInDesiredWSAndPublishEventsRKSbIDsSt11char_traitsIDsESaIDsEEPibbP15inWorkSpace_tag+00000077
[ 27] 0x00007fe16dac3a12 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwiqm.so+00915986 _ZNK3iqm18InternalEvalPlugin24inEvalCmdWithLocalReturnERKSbIDsSt11char_traitsIDsESaIDsEEP15inWorkSpace_tag+00000098
[ 28] 0x00007fe16dac3bd8 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwiqm.so+00916440 _ZN3iqm18InternalEvalPlugin7executeEP15inWorkSpace_tagRN5boost10shared_ptrIN14cmddistributor17IIPCompletedEventEEE+00000120
[ 29] 0x00007fe1423533b2 /usr/local/MATLAB/R2015b/bin/glnxa64/libnativejmi.so+00861106 _ZN9nativejmi21JmiInternalEvalPlugin7executeEP15inWorkSpace_tagRN5boost10shared_ptrIN14cmddistributor17IIPCompletedEventEEE+00000274
[ 30] 0x00007fe142378565 /usr/local/MATLAB/R2015b/bin/glnxa64/libnativejmi.so+01013093 _ZN3mcr3mvm27McrSwappingIqmPluginAdapterIN9nativejmi21JmiInternalEvalPluginEE7executeEP15inWorkSpace_tagRN5boost10shared_ptrIN14cmddistributor17IIPCompletedEventEEE+00000437
[ 31] 0x00007fe16dabd1c6 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwiqm.so+00889286
[ 32] 0x00007fe16daaa645 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwiqm.so+00812613
[ 33] 0x00007fe168625bf9 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwbridge.so+00146425
[ 34] 0x00007fe1686261f4 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwbridge.so+00147956
[ 35] 0x00007fe16862b6cd /usr/local/MATLAB/R2015b/bin/glnxa64/libmwbridge.so+00169677
[ 36] 0x00007fe16862b7bc /usr/local/MATLAB/R2015b/bin/glnxa64/libmwbridge.so+00169916
[ 37] 0x00007fe16862bead /usr/local/MATLAB/R2015b/bin/glnxa64/libmwbridge.so+00171693 _Z8mnParserv+00000749
[ 38] 0x00007fe16cc7eb4f /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00686927 _ZN11mcrInstance30mnParser_on_interpreter_threadEv+00000031
[ 39] 0x00007fe16cc6b443 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00607299
[ 40] 0x00007fe16cc6ba39 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00608825 _ZN5boost6detail11task_objectIvNS_3_bi6bind_tIvPFvRKNS_8functionIFvvEEEENS2_5list1INS2_5valueIS6_EEEEEEE6do_runEv+00000025
[ 41] 0x00007fe16cc6cf47 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00614215 _ZN5boost6detail9task_baseIvE3runEv+00000071
[ 42] 0x00007fe16cc6cfa7 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00614311
[ 43] 0x00007fe16cc682fa /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00594682
[ 44] 0x00007fe1606296b6 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwuix.so+00313014
[ 45] 0x00007fe16060f862 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwuix.so+00206946
[ 46] 0x00007fe16d5fe0df /usr/local/MATLAB/R2015b/bin/glnxa64/libmwservices.so+03002591
[ 47] 0x00007fe16d5fe24c /usr/local/MATLAB/R2015b/bin/glnxa64/libmwservices.so+03002956
[ 48] 0x00007fe16d5ffd9f /usr/local/MATLAB/R2015b/bin/glnxa64/libmwservices.so+03009951
[ 49] 0x00007fe16d60084c /usr/local/MATLAB/R2015b/bin/glnxa64/libmwservices.so+03012684 _Z25svWS_ProcessPendingEventsiib+00000092
[ 50] 0x00007fe16cc689b8 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00596408
[ 51] 0x00007fe16cc68cd4 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00597204
[ 52] 0x00007fe16cc54fed /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00516077
[ 53] 0x00007fe1759506aa /lib/x86_64-linux-gnu/libpthread.so.0+00030378
[ 54] 0x00007fe175685eed /lib/x86_64-linux-gnu/libc.so.6+01076973 clone+00000109
[ 55] 0x0000000000000000 <unknown-module>+00000000

채택된 답변

MathWorks Support Team
MathWorks Support Team 2021년 7월 29일
편집: MathWorks Support Team 2021년 7월 29일
This is a known issue that affects MATLAB R2015a through R2016a on Ubuntu 15.04 and newer.
The issue also affects Ubuntu derivatives (e.g. Kubuntu).
To work around this issue, please see the following external bug report: https://www.mathworks.com/support/bugreports/1297894
  댓글 수: 7
Kevin Gleason
Kevin Gleason 2016년 9월 27일
@Anton,
Workaround
You can force MATLAB to load the newer version of the library provided by the operating system, by following these instructions:
  1. Identify the location where MATLAB is installed
  2. Navigate to the sys/os/glnxa64 directory within this installation folder
  3. Rename libstdc++.so.6 library to libstdc++.so.6.old
We have done limited testing with version 20 of libstdc++.so.6. If you experience problems with MATLAB when using this version, please contact MathWorks technical support.

댓글을 달려면 로그인하십시오.

추가 답변(4개)


ben-no
ben-no 2016년 10월 27일
Unfortunately, this solution does not work anymore with Ubuntu 16.10 and Matlab 2016b. If I start matlab, the following errors appear in the console:
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: i965_dri.so
With "LIBGL_DEBUG=verbose matlab", I get the following error:
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
libGL: dlopen /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so failed (/home/.../MATLAB/R2016b/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so))
libGL: OpenDriver: trying ${ORIGIN}/dri/tls/swrast_dri.so
libGL: OpenDriver: trying ${ORIGIN}/dri/swrast_dri.so
libGL: dlopen ${ORIGIN}/dri/swrast_dri.so failed (${ORIGIN}/dri/swrast_dri.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden)
libGL: OpenDriver: trying /usr/lib/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/dri/swrast_dri.so
libGL: dlopen /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden)
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
Renaming libstdc++.so.6 library does not solve this problem. Matlab then shows the error
Error using hgopengl
Java exception occurred:
java.lang.RuntimeException: Waited 5000ms for: <75c0727b, 2d9c25a2>[count 2 [
add. 0, orig 2], qsz 0, owner <Startup Class Loader>, add.owner Startup Class
Loader-SharedResourceRunner] - <main>
at
jogamp.common.util.locks.RecursiveLockImpl01Unfairish.lock(RecursiveLockImpl01Unfairish.java:198)
at
com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:199)
at com.jogamp.opengl.GLProfile.getDefaultDevice(GLProfile.java:2003)
at com.jogamp.opengl.GLCapabilities.<init>(GLCapabilities.java:84)
at
com.mathworks.hg.uij.OpenGLUtils$MyGLListener.getGLInformation(OpenGLUtils.java:320)
at
com.mathworks.hg.uij.OpenGLUtils$MyGLListener.getGLData(OpenGLUtils.java:498)
at
com.mathworks.hg.uij.OpenGLUtils.getGLData(OpenGLUtils.java:78)
Error in hgopengl
Does anyone have an idea how to solve this problem?


Maeda Noriko
Maeda Noriko 2021년 8월 25일 15:12
I use 2020b and still same problem. I already renamed libstdc++.so.6 library to libstdc++.so.6.old.
So, please help me.
Error sentence is below
$ /usr/local/MATLAB/R2020b/bin/matlab
Gtk-Message: 23:17:17.097: Failed to load module "canberra-gtk-module"
--------------------------------------------------------------------------------
Segmentation violation detected at 2021-08-26 00:01:06 +0900
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : false
Desktop Environment : ubuntu:GNOME
GNU C Library : 2.31 stable
Graphics Driver : NVIDIA Corporation GeForce GTX 1080/PCIe/SSE2 Version 4.6.0 NVIDIA 460.91.03
Graphics card 1 : 0x10de ( 0x10de ) 0x1b80 Version 460.91.3.0 (0-0-0)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : glnxa64
MATLAB Entitlement ID : 2936973
MATLAB Root : /usr/local/MATLAB/R2020b
MATLAB Version : 9.9.0.1718557 (R2020b) Update 6
OpenGL : hardware
Operating System : Ubuntu 20.04.2 LTS
Process ID : 52223
Processor ID : x86 Family 6 Model 85 Stepping 4, GenuineIntel
Session Key : a46790da-8e17-42c4-9e68-6fac0423df24
Static TLS mitigation : Enabled: Full
Window System : The X.Org Foundation (12011000), display :1
Fault Count: 1
Abnormal termination:
Segmentation violation
Current Thread: 'MATLAB' id 140621395289856
Register State (from fault):
RAX = 00007fe3dc459600 RBX = 0000000000000000
RCX = 0000000000000001 RDX = 0000000000000004
RSP = 00007fe4f85032a8 RBP = 00007fe1caf94a50
RSI = 0000000000000000 RDI = 00007fe3dc459600
R8 = 0000000000000000 R9 = 0000000000000001
R10 = 00007fe1caf9cb40 R11 = 0000000000000282
R12 = 00007fe1cafae630 R13 = 00000000418b1000
R14 = 00007fe55bff7ca0 R15 = 00007fe1c9e238f0
RIP = 00007fe55aedf040 EFL = 0000000000010246
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007fe55aedf040 /lib/x86_64-linux-gnu/libnvidia-glcore.so.460.91.03+14598208

태그

아직 태그를 입력하지 않았습니다.

제품


릴리스

아직 릴리스를 입력하지 않았습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by