I have been using MATLAB2014b on Ubuntu 15.10 without any issue until the recent Ubuntu update. After the patch, MATLAB crashes after the splash screen. (See the error report below.) I wonder if there is anything in my system causing the trouble?
I have tried removing and reinstalling MATLAB, and removing the .matlab directory but the problem still persists.
(Note: Command line mode using ‘-nodesktop’ option doesn’t seem to be affected by this issue.)
MATLAB crash file:/home/username/matlab_crash_dump.7598-1:
Segmentation violation detected at Wed Mar 23 15:52:27 2016
Configuration:
Crash Decoding : Disabled
Current Visual : None
Default Encoding : UTF-8
GNU C Library : 2.21 stable
MATLAB Architecture: glnxa64
MATLAB Root : /usr/local/MATLAB/R2014b
MATLAB Version : 8.4.0.150421 (R2014b)
Operating System : Linux 4.2.0-34-generic #39-Ubuntu SMP Thu Mar 10 22:13:01 UTC 2016 x86_64
Processor ID : x86 Family 6 Model 15 Stepping 11, GenuineIntel
Virtual Machine : Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : No active display
Fault Count: 1
Abnormal termination:
Segmentation violation
Register State (from fault):
RAX = 0000000000000000 RBX = 00007fdb91e76808
RCX = 0000000000000000 RDX = 0000000000000003
RSP = 00007fdc29c88ae0 RBP = 00007fdc29c88c00
RSI = 0000000000000000 RDI = 00007fdb91e729e8
R8 = 0000000000000018 R9 = 0000000000000000
R10 = 00007fdb91e72000 R11 = 00007fdb91e77450
R12 = 00007fdb92092f80 R13 = 0000000000000006
R14 = 00007fdb91e73cc0 R15 = 00007fdbb84c5bc0
RIP = 00007fdc40a3190a EFL = 0000000000010206
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007fdc40a3190a /lib64/ld-linux-x86-64.so.2+00051466
[ 1] 0x00007fdc40a3a501 /lib64/ld-linux-x86-64.so.2+00087297
[ 2] 0x00007fdc40a354b4 /lib64/ld-linux-x86-64.so.2+00066740
[ 3] 0x00007fdc40a399f3 /lib64/ld-linux-x86-64.so.2+00084467
[ 4] 0x00007fdc3d2b6fc9 /lib/x86_64-linux-gnu/libdl.so.2+00004041
[ 5] 0x00007fdc40a354b4 /lib64/ld-linux-x86-64.so.2+00066740
[ 6] 0x00007fdc3d2b762d /lib/x86_64-linux-gnu/libdl.so.2+00005677
[ 7] 0x00007fdc3d2b7061 /lib/x86_64-linux-gnu/libdl.so.2+00004193 dlopen+00000049
[ 8] 0x00007fdc407b294a /usr/local/MATLAB/R2014b/bin/glnxa64/libut.so+00305482
[ 9] 0x00007fdc33dffc25 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_dispatcher.so+00547877
[ 10] 0x00007fdc33df2f8a /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_dispatcher.so+00495498 _ZN13Mlm_MATLAB_fn8try_loadEv+00000042
[ 11] 0x00007fdc34b05b75 /usr/local/MATLAB/R2014b/bin/glnxa64/libmex.so+00146293 _ZN13Mlm_MATLAB_fn4loadEv+00000037
[ 12] 0x00007fdc33e24ae2 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_dispatcher.so+00699106 ZN11Mdispatcher19create_fh_MATLAB_fnEPKcS1+00000466
[ 13] 0x00007fdc33e3c8ab /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_dispatcher.so+00796843 _ZN14MPrivatesTuple6reloadEv+00000251
[ 14] 0x00007fdc33e3dd68 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_dispatcher.so+00802152 _ZN8Mlm_file11get_privateEi+00000168
[ 15] 0x00007fdc33e22fdd /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_dispatcher.so+00692189 _ZN11Mdispatcher11get_bindingEP13Mfh_MATLAB_fni+00000109
[ 16] 0x00007fdc32c9b879 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+03553401 _Z53mdFunctionHandleDispatchSelectionAnalysisWithBindingsI19Mtypeidx_attributesEP16Mfunction_handleiPKciPPT_Pi+00000153
[ 17] 0x00007fdc32f3be39 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+06307385 _Z47mdFunctionDispatchSelectionAnalysisWithBindingsI19Mtypeidx_attributesEP13Mfh_MATLAB_fniPKciPPT_Pi+00000009
[ 18] 0x00007fdc32f3b6cd /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+06305485 _Z21in_is_matlab_functionPvPKvPKc+00000141
[ 19] 0x00007fdc34231c19 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_parser.so+01805337
[ 20] 0x00007fdc342447e2 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_parser.so+01882082
[ 21] 0x00007fdc3425269d /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_parser.so+01939101
[ 22] 0x00007fdc3424871e /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_parser.so+01898270
[ 23] 0x00007fdc34248863 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_parser.so+01898595
[ 24] 0x00007fdc3426288f /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_parser.so+02005135
[ 25] 0x00007fdc34263c18 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_parser.so+02010136
[ 26] 0x00007fdc342642e4 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_parser.so+02011876
[ 27] 0x00007fdc34262ac6 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_parser.so+02005702
[ 28] 0x00007fdc3424871e /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_parser.so+01898270
[ 29] 0x00007fdc34257164 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_parser.so+01958244
[ 30] 0x00007fdc3427dc86 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_parser.so+02116742 _Z11mps_M_to_IRIcEP9term_nodePbPP13variable_nodePmPS6_S6_PP9M_token_TIT_ES6_PPP9_constantPP15_M_parse_tree_TIS9_EP10_M_to_IR_TIS9_EPKS9_SP_PKNSt13make_unsignedIS9_E4typeEmN16fn_is_function_TIS9_E4typeEPvSY_N15fn_find_class_TIS9_E4typeEN16fn_is_variable_TIS9_E4typeESY_ib+00000230
[ 31] 0x00007fdc32cffeae /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+03964590
[ 32] 0x00007fdc32d018b1 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+03971249
[ 33] 0x00007fdc33e3daf6 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_dispatcher.so+00801526 _ZN8Mlm_file7load_mfEv+00000134
[ 34] 0x00007fdc33df2f8a /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_dispatcher.so+00495498 _ZN13Mlm_MATLAB_fn8try_loadEv+00000042
[ 35] 0x00007fdc33e3b0be /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_dispatcher.so+00790718 ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2+00000078
[ 36] 0x00007fdc32eefef4 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+05996276
[ 37] 0x00007fdc32ef1809 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+06002697
[ 38] 0x00007fdc32ef203c /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+06004796
[ 39] 0x00007fdc32d661a3 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+04383139
[ 40] 0x00007fdc32d7386e /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+04438126
[ 41] 0x00007fdc32d73953 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+04438355
[ 42] 0x00007fdc32eab284 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+05714564
[ 43] 0x00007fdc32cc83c9 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+03736521
[ 44] 0x00007fdc32ccdf87 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+03760007
[ 45] 0x00007fdc32cc96ff /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+03741439
[ 46] 0x00007fdc32cca334 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+03744564
[ 47] 0x00007fdc32d3f52e /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+04224302
[ 48] 0x00007fdc33e3b4af /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_dispatcher.so+00791727 ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2+00001087
[ 49] 0x00007fdc32d15b70 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+04053872
[ 50] 0x00007fdc32cc5e02 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+03726850
[ 51] 0x00007fdc32cc80e8 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+03735784
[ 52] 0x00007fdc32ccdf87 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+03760007
[ 53] 0x00007fdc32cc96ff /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+03741439
[ 54] 0x00007fdc32cca6b5 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+03745461
[ 55] 0x00007fdc32cbcef7 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+03690231
[ 56] 0x00007fdc32cbf23c /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+03699260
[ 57] 0x00007fdc32cbba1f /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+03684895
[ 58] 0x00007fdc32cbc143 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+03686723
[ 59] 0x00007fdc32cb9c98 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+03677336
[ 60] 0x00007fdc32c38bb0 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwm_interpreter.so+03148720 inEvalCmd+00000096
[ 61] 0x00007fdc3f44c629 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwmcr.so+00718377
[ 62] 0x00007fdc3f471e3c /usr/local/MATLAB/R2014b/bin/glnxa64/libmwmcr.so+00871996 _Z32mnRunPathDependentInitializationv+00000060
[ 63] 0x00007fdc3f45b040 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwmcr.so+00778304 _ZN11mcrInstance26init_on_interpreter_threadEP11MfileReaderP13MexFileReader+00000576
[ 64] 0x00007fdc3f46452c /usr/local/MATLAB/R2014b/bin/glnxa64/libmwmcr.so+00816428 _ZNK5boost9function0IbEclEv+00000028
[ 65] 0x00007fdc3f464575 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwmcr.so+00816501
[ 66] 0x00007fdc3f4685d9 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwmcr.so+00832985 _ZN5boost6detail11task_objectIbNS_3_bi6bind_tIbPFbRKNS_8functionIFbvEEEENS2_5list1INS2_5valueIS6_EEEEEEE6do_runEv+00000025
[ 67] 0x00007fdc3f46865b /usr/local/MATLAB/R2014b/bin/glnxa64/libmwmcr.so+00833115 _ZN5boost6detail9task_baseIbE3runEv+00000059
[ 68] 0x00007fdc3f4686b7 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwmcr.so+00833207
[ 69] 0x00007fdc3f437bca /usr/local/MATLAB/R2014b/bin/glnxa64/libmwmcr.so+00633802
[ 70] 0x00007fdc32076a46 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwuix.so+00330310
[ 71] 0x00007fdc3205ead2 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwuix.so+00232146
[ 72] 0x00007fdc3fbfa00f /usr/local/MATLAB/R2014b/bin/glnxa64/libmwservices.so+02523151
[ 73] 0x00007fdc3fbfa17c /usr/local/MATLAB/R2014b/bin/glnxa64/libmwservices.so+02523516
[ 74] 0x00007fdc3fbf607f /usr/local/MATLAB/R2014b/bin/glnxa64/libmwservices.so+02506879
[ 75] 0x00007fdc3fbfb4b5 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwservices.so+02528437
[ 76] 0x00007fdc3fbfb8e7 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwservices.so+02529511
[ 77] 0x00007fdc3fbfbfc0 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwservices.so+02531264 _Z25svWS_ProcessPendingEventsiib+00000080
[ 78] 0x00007fdc3f438248 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwmcr.so+00635464
[ 79] 0x00007fdc3f438564 /usr/local/MATLAB/R2014b/bin/glnxa64/libmwmcr.so+00636260
[ 80] 0x00007fdc3f424cdd /usr/local/MATLAB/R2014b/bin/glnxa64/libmwmcr.so+00556253
[ 81] 0x00007fdc3e30b6aa /lib/x86_64-linux-gnu/libpthread.so.0+00030378
[ 82] 0x00007fdc3e040e9d /lib/x86_64-linux-gnu/libc.so.6+01076893 clone+00000109
If this problem is reproducible, please submit a Service Request via:
http://www.mathworks.com/support/contact_us/
A technical support engineer might contact you with further information.
Thank you for your help.
解决:
Description
When using Ubuntu Linux distributions 15.04 and newer, as well as distributions derived from those versions, MATLAB can crash during startup.
This crash occurs because these releases include a newer version of libstdc++.so.6 than the version shipped with MATLAB (version 6.0.17). When MATLAB loads version 6.0.17 first, the OS reaches an incompatibility that causes MATLAB to crash.
Workaround
You can force MATLAB to load the newer version of the library provided by the operating system, by following these instructions:
Identify the location where MATLAB is installed
Navigate to the sys/os/glnxa64 directory within this installation folder
Rename libstdc++.so.6 library to libstdc++.so.6.old