MATLAB 2010b: Segmentation violation when running plotting commands on WSL2/Ubuntu 20.04 LTS
3 views (last 30 days)
Show older comments
I haven't found a solution or workaround for this segmentation violation issue, and I know this older version of MATLAB (2010b) isn't supported on newer versions of Linux (e.g. 20.04 LTS) or on WSL2. But that is what I'd like to get working. I have X windows applications working fine, and MATLAB otherwise seems to be working.
Can reproduce this segmentation violation in many different ways. One easy way is with these commands:
>>figure()
>>plot(1)
Here's the error messages:
MATLAB crash file:/home/remoteuser04/matlab_crash_dump.1390:
------------------------------------------------------------------------
Segmentation violation detected at Tue May 23 10:04:01 2023
------------------------------------------------------------------------
Configuration:
MATLAB Version: 7.11.2.1031 (R2010b) Service Pack 2
MATLAB License: DEMO
Operating System: Linux 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64
GNU C Library: 2.31 stable
Window System: Microsoft Corporation (12010000), display :0
Current Visual: 0x23 (class 4, depth 24)
Processor ID: x86 Family 6 Model 10 Stepping 3, GenuineIntel
Virtual Machine: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
Default Encoding: UTF-8
Fault Count: 1
Abnormal termination:
Register State (from fault):
RAX = 0000000000000000 RBX = 0000000000000000
RCX = 0000000000000000 RDX = 0000000000000000
RSP = 00007f9999053de8 RBP = 00007f998c054670
RSI = 000000003e07c725 RDI = 0000000000000000
R8 = 0000000000000007 R9 = 00312d3634363031
R10 = 00007f9999053c70 R11 = 0000000000000000
R12 = 0000000000000000 R13 = 00007f998e59f810
R14 = 0000000000000000 R15 = 000000000000000a
RIP = 00007f99a42096e5 EFL = 0000000000010283
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007f99a633a0a9 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/libmwfl.so+00454825 fl::sysdep::linux::unwind_stack(void const**, unsigned long, unsigned long, fl::diag::thread_context const&)+000009
[ 1] 0x00007f99a62f3111 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/libmwfl.so+00164113 fl::diag::stacktrace_base::capture(fl::diag::thread_context const&, unsigned long)+000161
[ 2] 0x00007f99a62fc42d /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/libmwfl.so+00201773
[ 3] 0x00007f99a62fc6b4 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/libmwfl.so+00202420 fl::diag::terminate_log(char const*, fl::diag::thread_context const&, bool)+000100
[ 4] 0x00007f99a53cf5a7 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/libmwmcr.so+00365991
[ 5] 0x00007f99a4287420 /lib/x86_64-linux-gnu/libpthread.so.0+00082976
[ 6] 0x00007f99a42096e5 /lib/x86_64-linux-gnu/libc.so.6+01607397
[ 7] 0x00007f999a880c18 /lib/x86_64-linux-gnu/libX11.so.6+00134168 XLoadQueryFont+000056
[ 8] 0x00007f999d6cf357 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwuix.so+00324439
[ 9] 0x00007f999d6cfd6d /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwuix.so+00327021 UIX_AllocateSystemFont(mxFont*)+000285
[ 10] 0x00007f999d6cfe19 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwuix.so+00327193
[ 11] 0x00007f999f0a776f /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwgui.so+00579439 wm_SetUnadjWindowFont(WinRec_tag*, mxFont*)+000095
[ 12] 0x00007f999f0a78fb /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwgui.so+00579835 wm_GetDeviceFontExtent(WinRec_tag*, mxFont*, char const*, double, mwrect*)+000219
[ 13] 0x00007f999f0c68db /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwgui.so+00706779 uiGetDeviceFont+000875
[ 14] 0x00007f999f0c6a51 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwgui.so+00707153 uiSetWindowFont(WinRec_tag*, mxFont*)+000017
[ 15] 0x00007f999f0a79ef /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwgui.so+00580079 wm_SetWindowFont(WinRec_tag*, mxFont*)+000095
[ 16] 0x00007f999e8f3d38 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwhg.so+03321144
[ 17] 0x00007f999f0dfe58 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwgui.so+00810584 gui_objects::tickpicker::nicefyLimits(gui_objects::tickpicker::AxisDescriptor&, gui_objects::tickpicker::AxisType)+000168
[ 18] 0x00007f999f0e0333 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwgui.so+00811827 gui_objects::tickpicker::nicefyLimits(gui_objects::tickpicker::AxisDescriptor&)+000019
[ 19] 0x00007f999e8f4272 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwhg.so+03322482
[ 20] 0x00007f999e854a4b /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwhg.so+02669131
[ 21] 0x00007f999e92dedd /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwhg.so+03559133 GO_TransformObject+000013
[ 22] 0x00007f999fc8ba77 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwudd.so+00412279 udiToEachSiblingObjectBackward+000087
[ 23] 0x00007f999e8f891c /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwhg.so+03340572
[ 24] 0x00007f999e8736e6 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwhg.so+02795238
[ 25] 0x00007f999e956650 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwhg.so+03724880
[ 26] 0x00007f999e877f11 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwhg.so+02813713
[ 27] 0x00007f999f0b1639 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwgui.so+00620089 wm_ExposeFcn_Pre_Optional(WinRec_tag*, bool)+000137
[ 28] 0x00007f999e101b73 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libuij.so+00199539
[ 29] 0x00007f999e104537 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libuij.so+00210231 UIJ_ExposeFcn(WinRec_tag*, mwrect*, bool)+000631
[ 30] 0x00007f999e0e73aa /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libuij.so+00091050
[ 31] 0x00007f999e1002af /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libuij.so+00193199
[ 32] 0x00007f999fcb9545 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwudd.so+00599365
[ 33] 0x00007f999de63a12 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwudd_mi.so+00203282
[ 34] 0x00007f999d6e95d5 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwuix.so+00431573
[ 35] 0x00007f999d6f72a0 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwuix.so+00488096
[ 36] 0x00007f999d6f759c /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwuix.so+00488860
[ 37] 0x00007f99a5604d67 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/libmwbridge.so+00093543
[ 38] 0x00007f99a5604f49 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/libmwbridge.so+00094025
[ 39] 0x00007f99a560540c /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/libmwbridge.so+00095244
[ 40] 0x00007f99a5605743 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/libmwbridge.so+00096067
[ 41] 0x00007f99a5607b4b /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/libmwbridge.so+00105291
[ 42] 0x00007f99a5607d0d /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/libmwbridge.so+00105741
[ 43] 0x00007f99a5608233 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/libmwbridge.so+00107059 mnParser+000499
[ 44] 0x00007f99a53bcf89 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/libmwmcr.so+00290697 mcrInstance::mnParser_on_interpreter_thread()+000041
[ 45] 0x00007f99a53a54af /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/libmwmcr.so+00193711
[ 46] 0x00007f99a53a0d26 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/libmwmcr.so+00175398
[ 47] 0x00007f999d6e95d5 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwuix.so+00431573
[ 48] 0x00007f999d6f29cd /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmwuix.so+00469453
[ 49] 0x00007f999e10921d /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libuij.so+00229917 sysq::during_F<boost::weak_ptr<sysq::ws_ppeHook>, boost::shared_ptr<sysq::ws_ppeHook> > std::for_each<__gnu_cxx::__normal_iterator<boost::weak_ptr<sysq::ws_ppeHook>*, std::vector<boost::weak_ptr<sysq::ws_ppeHook>, std::allocator<boost::weak_ptr<sysq::ws_ppeHook> > > >, sysq::during_F<boost::weak_ptr<sysq::ws_ppeHook>, boost::shared_ptr<sysq::ws_ppeHook> > >(__gnu_cxx::__normal_iterator<boost::weak_ptr<sysq::ws_ppeHook>*, std::vector<boost::weak_ptr<sysq::ws_ppeHook>, std::allocator<boost::weak_ptr<sysq::ws_ppeHook> > > >, __gnu_cxx::__normal_iterator<boost::weak_ptr<sysq::ws_ppeHook>*, std::vector<boost::weak_ptr<sysq::ws_ppeHook>, std::allocator<boost::weak_ptr<sysq::ws_ppeHook> > > >, sysq::during_F<boost::weak_ptr<sysq::ws_ppeHook>, boost::shared_ptr<sysq::ws_ppeHook> >)+000077
[ 50] 0x00007f999e10aae9 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libuij.so+00236265
[ 51] 0x00007f999e1075ea /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libuij.so+00222698 svWS_ProcessPendingEvents(int, int, bool)+000506
[ 52] 0x00007f99a53a2e6f /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/libmwmcr.so+00183919
[ 53] 0x00007f99a53a3715 /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/libmwmcr.so+00186133
[ 54] 0x00007f99a53a39de /home/remoteuser04/downloads/MATLAB/bin/glnxa64/../../bin/glnxa64/libmwmcr.so+00186846
[ 55] 0x00007f99a427b609 /lib/x86_64-linux-gnu/libpthread.so.0+00034313
[ 56] 0x00007f99a41a0133 /lib/x86_64-linux-gnu/libc.so.6+01175859 clone+000067
......
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. MATLAB may attempt to recover, but even if recovery appears successful,
we recommend that you save your workspace and restart MATLAB as soon as possible.
5 Comments
Answers (1)
Andreas Bonelli
on 8 Mar 2024
Hi Eric,
just curious, have you been able to solve that problem? Seems like I'm having the same issue with the same version of Matlab. I even run into the same issue in VMs with Ubuntu 18.04 (which everything ran on smoothly previously).
Thanks, Andreas
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!