MATLAB Crash Dump:

    ------------------------------------------------------------------------
       Segmentation violation detected at Thu Mar  3 01:40:49 2016
------------------------------------------------------------------------

Configuration:
  Crash Decoding      : Disabled
  Crash Mode          : continue (default)
  Current Graphics Driver: Unknown hardware 
  Current Visual      : 0x20 (class 4, depth 24)
  Default Encoding    : UTF-8
  GNU C Library       : 2.21 stable
  Host Name           : ShapeShifter
  MATLAB Architecture : glnxa64
  MATLAB Root         : /usr/local/MATLAB/R2015b
  MATLAB Version      : 8.6.0.267246 (R2015b)
  OpenGL              : hardware
  Operating System    : Linux 4.5.0-040500rc6-generic #201602281230 SMP Sun Feb 28 17:33:02 UTC 2016 x86_64
  Processor ID        : x86 Family 6 Model 78 Stepping 3, GenuineIntel
  Virtual Machine     : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
  Window System       : The X.Org Foundation (11703000), display :0

Fault Count: 1


Abnormal termination:
Segmentation violation

Register State (from fault):
  RAX = 0000000000000000  RBX = 00007f785858f0b8
  RCX = 0000000000000000  RDX = 0000000000000006
  RSP = 00007f78ee99fcb0  RBP = 00007f78ee99fdd0
  RSI = 00007f7860cfd7a0  RDI = 00007f78585658a8

   R8 = 0000000000000030   R9 = 0000000000000000
  R10 = 00007f7858562000  R11 = 00007f78585942d8
  R12 = 00007f78588e5ef0  R13 = 0000000000000006
  R14 = 00007f7858566280  R15 = 00007f788836aa80

  RIP = 00007f790b1de8ca  EFL = 0000000000010206

   CS = 0033   FS = 0000   GS = 0000

Stack Trace (from fault):
[  0] 0x00007f790b1de8ca                        /lib64/ld-linux-x86-64.so.2+00051402
[  1] 0x00007f790b1e74e1                        /lib64/ld-linux-x86-64.so.2+00087265
[  2] 0x00007f790b1e2474                        /lib64/ld-linux-x86-64.so.2+00066676
[  3] 0x00007f790b1e69d3                        /lib64/ld-linux-x86-64.so.2+00084435
[  4] 0x00007f79095c6f09                   /lib/x86_64-linux-gnu/libdl.so.2+00003849
[  5] 0x00007f790b1e2474                        /lib64/ld-linux-x86-64.so.2+00066676
[  6] 0x00007f79095c756d                   /lib/x86_64-linux-gnu/libdl.so.2+00005485
[  7] 0x00007f79095c6fa1                   /lib/x86_64-linux-gnu/libdl.so.2+00004001 dlopen+00000049
[  8] 0x00007f79059ed00a      /usr/local/MATLAB/R2015b/bin/glnxa64/libut.so+00311306
[  9] 0x00007f79008497e5 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_dispatcher.so+00456677
[ 10] 0x00007f790083c1af /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_dispatcher.so+00401839 _ZN13Mlm_MATLAB_fn8try_loadEv+00000031
[ 11] 0x00007f7900833ae5 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_dispatcher.so+00367333 _ZN13Mlm_MATLAB_fn4loadEv+00000037
[ 12] 0x00007f7900830b09 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_dispatcher.so+00355081 _ZN13Mfh_MATLAB_fn11dispatch_fhEiPP11mxArray_tagiS2_+00000057
[ 13] 0x00007f78faf068af /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+08612015
[ 14] 0x00007f78fb02a7ff /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+09807871
[ 15] 0x00007f78fb02047f /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+09766015
[ 16] 0x00007f78fafed981 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+09558401
[ 17] 0x00007f78fac4fd6c /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+05766508
[ 18] 0x00007f78fac3a4c1 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+05678273
[ 19] 0x00007f78fac49075 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+05738613
[ 20] 0x00007f78fae1a033 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+07643187
[ 21] 0x00007f78fade1c40 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+07412800
[ 22] 0x00007f78fade4078 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+07422072
[ 23] 0x00007f78fade4140 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+07422272
[ 24] 0x00007f78fae5b6bc /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+07911100
[ 25] 0x00007f78fae5babc /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+07912124
[ 26] 0x00007f78ffdbbd0d /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_interpreter.so+02600205 _Z51inEvalCmdWithLocalReturnInDesiredWSAndPublishEventsRKSbIDsSt11char_traitsIDsESaIDsEEPibbP15inWorkSpace_tag+00000077
[ 27] 0x00007f79019b6a12   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwiqm.so+00915986 _ZNK3iqm18InternalEvalPlugin24inEvalCmdWithLocalReturnERKSbIDsSt11char_traitsIDsESaIDsEEP15inWorkSpace_tag+00000098
[ 28] 0x00007f79019b6bd8   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwiqm.so+00916440 _ZN3iqm18InternalEvalPlugin7executeEP15inWorkSpace_tagRN5boost10shared_ptrIN14cmddistributor17IIPCompletedEventEEE+00000120
[ 29] 0x00007f78dafb83b2 /usr/local/MATLAB/R2015b/bin/glnxa64/libnativejmi.so+00861106 _ZN9nativejmi21JmiInternalEvalPlugin7executeEP15inWorkSpace_tagRN5boost10shared_ptrIN14cmddistributor17IIPCompletedEventEEE+00000274
[ 30] 0x00007f78dafdd565 /usr/local/MATLAB/R2015b/bin/glnxa64/libnativejmi.so+01013093 _ZN3mcr3mvm27McrSwappingIqmPluginAdapterIN9nativejmi21JmiInternalEvalPluginEE7executeEP15inWorkSpace_tagRN5boost10shared_ptrIN14cmddistributor17IIPCompletedEventEEE+00000437
[ 31] 0x00007f79019b01c6   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwiqm.so+00889286
[ 32] 0x00007f790199d645   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwiqm.so+00812613
[ 33] 0x00007f78fc51abf9 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwbridge.so+00146425
[ 34] 0x00007f78fc51b1f4 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwbridge.so+00147956
[ 35] 0x00007f78fc5206cd /usr/local/MATLAB/R2015b/bin/glnxa64/libmwbridge.so+00169677
[ 36] 0x00007f78fc5207bc /usr/local/MATLAB/R2015b/bin/glnxa64/libmwbridge.so+00169916
[ 37] 0x00007f78fc520ead /usr/local/MATLAB/R2015b/bin/glnxa64/libmwbridge.so+00171693 _Z8mnParserv+00000749
[ 38] 0x00007f7900b71b4f   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00686927 _ZN11mcrInstance30mnParser_on_interpreter_threadEv+00000031
[ 39] 0x00007f7900b5e443   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00607299
[ 40] 0x00007f7900b5ea39   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00608825 _ZN5boost6detail11task_objectIvNS_3_bi6bind_tIvPFvRKNS_8functionIFvvEEEENS2_5list1INS2_5valueIS6_EEEEEEE6do_runEv+00000025
[ 41] 0x00007f7900b5ff47   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00614215 _ZN5boost6detail9task_baseIvE3runEv+00000071
[ 42] 0x00007f7900b5ffa7   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00614311
[ 43] 0x00007f7900b5b2fa   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00594682
[ 44] 0x00007f78f451a6b6   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwuix.so+00313014
[ 45] 0x00007f78f4500862   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwuix.so+00206946
[ 46] 0x00007f79014f10df /usr/local/MATLAB/R2015b/bin/glnxa64/libmwservices.so+03002591
[ 47] 0x00007f79014f124c /usr/local/MATLAB/R2015b/bin/glnxa64/libmwservices.so+03002956
[ 48] 0x00007f79014f2d9f /usr/local/MATLAB/R2015b/bin/glnxa64/libmwservices.so+03009951
[ 49] 0x00007f79014f384c /usr/local/MATLAB/R2015b/bin/glnxa64/libmwservices.so+03012684 _Z25svWS_ProcessPendingEventsiib+00000092
[ 50] 0x00007f7900b5b9b8   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00596408
[ 51] 0x00007f7900b5bcd4   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00597204
[ 52] 0x00007f7900b47fed   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00516077
[ 53] 0x00007f7909d9c66a              /lib/x86_64-linux-gnu/libpthread.so.0+00030314
[ 54] 0x00007f7909ad201d                    /lib/x86_64-linux-gnu/libc.so.6+01077277 clone+00000109
[ 55] 0x0000000000000000                                   <unknown-module>+00000000


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.
share|improve this question
up vote 31 down vote accepted

Oh... I found answer myself:

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.
share|improve this answer
    
What do you think about Saleh's proposal? - - How do you compare your answer to his? – Léo Léopold Hertz 준영 Aug 29 '16 at 11:12
    
mine was already like that so I don't know what the solution is in my case $ ls /usr/local/MATLAB/R2016a/sys/os/glnxa64/ libgcc_s.so.1 libgfortran.so.3.0.0 libifport.so.5 libintlc.so.5 libirc.so libquadmath.so.0.0.0 libstdc++.so.6.old README.libstdc++ libgfortran.so.3 libifcore.so.5 libimf.so libiomp5.so libquadmath.so.0 libstdc++.so.6.0.17 libsvml.so – Mona Jalal Sep 22 '16 at 18:01

I had this problem. but after I installed matlab-support the problem solved.

sudo apt-get install matlab-support

I answered my question here.

share|improve this answer
    
Why do you think this package solve the problem? – Léo Léopold Hertz 준영 Aug 29 '16 at 11:12
    
@Masi surely at least my problem related to sth in this package. It was the only thing I've done do solve my problem and it worked. – SirSaleh Aug 30 '16 at 1:19
2  
Installing the matlab-support package renames old gcc libraries for you, so it is effectually doing the same thing – Trogdor Aug 31 '16 at 19:10
    
+1 for discovering the reason. Thanks. @Trogdor :) – SirSaleh Aug 31 '16 at 20:44
1  
This worked for me but Yihui's answer not applicable in my case – Mona Jalal Sep 22 '16 at 18:03

I'm using Ubuntu 16.04LTS on a Lenovo ThinkStation S20 with GeForce 610 graphics card and installed Matlab R2016a. I renamed the library above but this fix did not work for me. Instead, I switched display drivers from Nvidia to the open source Nouveau. Matlab is working now.

share|improve this answer
1  
Welcome to Ask Ubuntu! I recommend editing this answer to expand it with specific details about how to do this. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.) – David Foerster May 7 '16 at 7:27

I'm experiencing similar problems. I think the trouble started after upgrading the proprietary Nvidia driver. I'm using an Nvidia GTX 750 Ti with driver version 361.45.18 and the version of MATLAB I'm using is 2016a. ( see https://devtalk.nvidia.com/default/topic/926199/linux/361-28-crashes-matlab-r2016a/ )

I tried to completely install and reinstall all nvidia packages, but this did not solve my problem. Then I stumbled on this thread, I tried the proposed fixed by @Yihui He (renaming libstdc++.so.6). After I've done this MATLAB would still crash but a couple seconds later, after the UI was loaded. Now the stack trace of the error was much more clear:

Stack Trace (from fault):
[  0] 0x00007f78d2dea18d               /usr/lib/x86_64-linux-gnu/libGL.so.1+00344461

I knew there was a cli switch to use software openGL, tried that and MATLAB 2016a dit not crash anymore when starting with:

$ matlab -softwareopengl

I will try to update this post if I find the final solution, but this might help another temporarily.

share|improve this answer
    
Do note that using software OpenGL causes you lose some advanced graphics features as detailed in mathworks.com/help/matlab/ref/opengl.html#buwqyz8-6. – edwinksl Sep 15 '16 at 7:43

protected by Community May 9 '16 at 17:12

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.