MATLAB crashes on startup (segmentation violation)
    43 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Yang Li
      
 el 23 de Mzo. de 2016
  
    
    
    
    
    Respondida: Jieqiang Wei
 el 5 de Dic. de 2020
            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.
0 comentarios
Respuesta aceptada
  krxul adam
      
 el 24 de Mzo. de 2016
        This works for me. https://www.mathworks.com/support/bugreports/1297894
10 comentarios
  Gabriel Peralta
 el 10 de Oct. de 2017
				It worked for me to on ubuntu 16.10, for the R2016a version. Thank you a lot!!!!
Más respuestas (5)
  Wajahat Kazmi
      
 el 11 de Ag. de 2016
        
      Editada: Wajahat Kazmi
      
 el 11 de Ag. de 2016
  
      Hi
Since the link with the suggested solution is dead, so let me describe what worked for me. Installing Matlab on a newer version of Ubuntu probably is what creates this problem. I installed MatlabR2016a on Ubuntu 16.04 and had the same problem. To debug, start a linux (ubuntu) terminal window and type (not Matlab terminal):
>> locate libstdc++.so.6
On my system, the following was the out come:
/usr/local/MATLAB/R2016a/sys/os/glnxa64/libstdc++.so.6
/usr/local/MATLAB/R2016a/sys/os/glnxa64/libstdc++.so.6.0.17
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
Matlab 2016a seems to be having an older version of libstdc++, therefore, renaming it to libstdc++.so.6.old and libstdc++.so.6.0.17.old would force Matlab to use the newer versions at /usr/lib/x86_64-linux-gnu/
In order to rename files in Ubuntu, you may have to use 'sudo', depending on the Matlab installation folder. If Matlab is installed in the default folder i.e. /usr/local/MATLAB/R2016a/, then you will have to use sudo:
>> cd /usr/local/MATLAB/R2016a/sys/os/glnxa64
>> sudo mv libstdc++.so.6 libstdc++.so.6.old 
>> sudo mv libstdc++.so.6.17 libstdc++.so.6.17.old
I hope this will solve the problem by preventing Matlab from using older versions of libstdc++ from its installation path, just as it did for me. NOTE: Change the R2016a to whatever version of Matlab you are using such as R2014a, R2015b etc.
10 comentarios
  Kushal Seetharam
      
 el 17 de Jun. de 2016
        I tried the suggestion in that bug report and it didn't work for me. The given directory of my MATLAB R2016a installation has both a libstdc++.so.6 and libstdc++.so.6.0.17. I tried changing the .so.6 and then both the .so.6 & .so.6.0.17 to .so.6.old/.so.6.0.17.old. Neither worked. Any ideas on how to workaround the issue?
2 comentarios
  Tim Sonnemann
 el 16 de Nov. de 2017
				
      Editada: Tim Sonnemann
 el 16 de Nov. de 2017
  
			In case someone still has this issue and none of the existing answers worked, here is something that happened to me:
My local "$HOME/.matlab/R2015a" directory got created as owned by root instead of my user upon a new installation. The Matlab process could not setup its user-specific configuration when trying to start. Changing that directory's owner to my user then solved the problem and Matlab could finally start up.
The command would be:
sudo chown -R <username>:<groupname> .matlab/
(put in your own user- and groupnames)
Maybe this helps...
  Vishal Raveendranathan
      
 el 7 de Oct. de 2016
        If none of the above works. Change the display driver in to nouveau instead of the nVidia card driver.
4 comentarios
  Divya Bhatia
 el 22 de Nov. de 2018
				
      Editada: Divya Bhatia
 el 22 de Nov. de 2018
  
			I am using Matlab R2016b on MacOS sierra version 10.12.6 and getting this problem ONLY when I am using a third party software called as "Ecos"(https://www.embotech.com/ECOS). For my other codes where I am not using any third party software, Matlab works fine and has been working fine till now. Any solution suggestions? Should I still look at the solutions mentioned above? 
  xing huang
 el 16 de Ag. de 2019
        
      Editada: Image Analyst
      
      
 el 16 de Ag. de 2019
  
      版本不对
The version is wrong
换更低的(例如matlabR2015b)的版本
Change to a lower version (eg matlab R2015b)
0 comentarios
  Jieqiang Wei
 el 5 de Dic. de 2020
        Hi, I somehow experienced a different case. What I am doing is similar to this  as I try to put MCR into a docker image. When I try to run 
locate libstdc++.so.6
I got 

I suppose I don't have to rename so.6.0.22 since there is no other file with exact same name. But after renaming so.6, the same error pops still. Then for docker use case, set docker run time mem to a larger value solves the error in my case.
Hope it is helpful.
0 comentarios
Ver también
Categorías
				Más información sobre Startup and Shutdown en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!























