Matlab R2024a Startup Segmentation Fault (Linux)
Since upgrading from Matlab R2021a to R2024a, I am consistently seeing deadlocks and segmentation faults when starting matlab in -batch mode
OS: Rocky Linux 8 (or 9)
Other command line arguments – matlab -nosplash -nodesktop -noFigureWindows -timing -sd /home/simuser -logfile /home/simuser/jobRunner.log -batch "disp(‘hello-world’);pause(10);disp(‘hello-world’);"
Fault Count: 1
Abnormal termination:
Segmentation violation
Current Thread: ‘ED 0 dispatch t’ id 22415512651520
Register State (from fault):
RAX = 000000001100fe46 RBX = 0000146304ab2290
RCX = 00001465d51eb6e0 RDX = 0000110969f00000
RSP = 0000146304ab2248 RBP = 0000146304ab2250
RSI = 0000146304ab2350 RDI = 00000000110b6c80
R8 = 0000000000000000 R9 = 0000000000000000
R10 = 0000000000000000 R11 = 0000000000000001
R12 = 00001465d508f260 R13 = 0000146304ab2350
R14 = 0000146304ab2270 R15 = 00001465b4460a40
RIP = 0000110969f00000 EFL = 0000000000010283
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x0000110969f00000 <unknown-module>+00000000
[ 1] 0x00001465d521c7a6 /usr/local/matlab/R2024a/bin/glnxa64/libmwfoundation_matlabdata.so+00792486 _ZNK10foundation10matlabdata5Array7getTypeEv+00000038
[ 2] 0x00001465d4f8c0ce /usr/local/matlab/R2024a/bin/glnxa64/libmwsettingscore.so+02400462
[ 3] 0x00001465d4f1c244 /usr/local/matlab/R2024a/bin/glnxa64/libmwsettingscore.so+01942084 _ZNK8settings4core8Settings3getIbEEN7mwboost16remove_referenceIT_E4typeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESF_+00000052
[ 4] 0x00001465681cfbfd /usr/local/matlab/R2024a/bin/glnxa64/foundation/httpproxy/matlab/httpproxy/libmwmatlabhttpproxy.so+00035837
[ 5] 0x00001465b20b2820 /usr/local/matlab/R2024a/bin/glnxa64/matlab_startup_plugins/cefclient/../../../../bin/glnxa64/libmwflhttpproxy.so+00043040
[ 6] 0x00001465681d2756 /usr/local/matlab/R2024a/bin/glnxa64/foundation/httpproxy/matlab/httpproxy/libmwmatlabhttpproxy.so+00046934
[ 7] 0x00001465683c6e29 /usr/local/matlab/R2024a/bin/glnxa64/foundation/httpclient/foundation/httpclient_core/implementation/mwhttpclient_core_implementation.so+01121833
[ 8] 0x00001465683ce3cc /usr/local/matlab/R2024a/bin/glnxa64/foundation/httpclient/foundation/httpclient_core/implementation/mwhttpclient_core_implementation.so+01151948
[ 9] 0x00001465cd17102d /usr/local/matlab/R2024a/bin/glnxa64/factory_settings/project/settings/../../../../../bin/glnxa64/libmwflhttpclient_core.so+00135213 _ZNK10foundation15httpclient_core10HttpClient11makeRequestENS0_11HttpRequestE+00000189
[ 10] 0x00001465b1bd63ed /usr/local/matlab/R2024a/bin/glnxa64/matlab_startup_plugins/jmi/../../../../bin/glnxa64/libmwxmlutils.so+00091117 _ZN2mw8xmlutils12LibXML2Utils22readDOMDocumentFromUrlERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+00002173
[ 11] 0x000014656930f8f3 /usr/local/matlab/R2024a/bin/glnxa64/registration_framework_plugins/addons/core_reg_point_api_impl/../../../../../bin/glnxa64/libmwaddons_registry_core.so+00780531 _ZN6addons8registry17MetadataFileUtils38getPreviewImageUrlUsingMetadataFileUrlERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+00000147
[ 12] 0x000014630126d80f /usr/local/matlab/R2024a/bin/glnxa64/libaddons_registry_jni.so+00018447 Java_com_mathworks_addons_1registry_MetadataFileUtils_1Jni_getPreviewImageUrlUsingURL_1Native+00000095
[ 13] 0x00001464f50186c7 <unknown-module>+00000000
[ 14] 0x00001464f5008040 <unknown-module>+00000000
[ 15] 0x00001464f5008040 <unknown-module>+00000000
[ 16] 0x00001464f5008040 <unknown-module>+00000000
[ 17] 0x00001464f5008040 <unknown-module>+00000000
[ 18] 0x00001464f5008040 <unknown-module>+00000000
[ 19] 0x00001464f5c59e4c <unknown-module>+00000000
[ 20] 0x00001464f50082bd <unknown-module>+00000000
[ 21] 0x00001464f5008302 <unknown-module>+00000000
[ 22] 0x00001464f50007a7 <unknown-module>+00000000
[ 23] 0x000014656ac9b39b /usr/local/matlab/R2024a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+06849435
[ 24] 0x000014656ac98c63 /usr/local/matlab/R2024a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+06839395
[ 25] 0x000014656ac99227 /usr/local/matlab/R2024a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+06840871
[ 26] 0x000014656ad0539c /usr/local/matlab/R2024a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+07283612
[ 27] 0x000014656b08e9eb /usr/local/matlab/R2024a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+10992107
[ 28] 0x000014656b08ecf1 /usr/local/matlab/R2024a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+10992881
[ 29] 0x000014656af208c2 /usr/local/matlab/R2024a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+09492674
[ 30] 0x00001465d69731ca /lib64/libpthread.so.0+00033226
[ 31] 0x00001465d63dc8d3 /lib64/libc.so.6+00235731 clone+00000067Since upgrading from Matlab R2021a to R2024a, I am consistently seeing deadlocks and segmentation faults when starting matlab in -batch mode
OS: Rocky Linux 8 (or 9)
Other command line arguments – matlab -nosplash -nodesktop -noFigureWindows -timing -sd /home/simuser -logfile /home/simuser/jobRunner.log -batch "disp(‘hello-world’);pause(10);disp(‘hello-world’);"
Fault Count: 1
Abnormal termination:
Segmentation violation
Current Thread: ‘ED 0 dispatch t’ id 22415512651520
Register State (from fault):
RAX = 000000001100fe46 RBX = 0000146304ab2290
RCX = 00001465d51eb6e0 RDX = 0000110969f00000
RSP = 0000146304ab2248 RBP = 0000146304ab2250
RSI = 0000146304ab2350 RDI = 00000000110b6c80
R8 = 0000000000000000 R9 = 0000000000000000
R10 = 0000000000000000 R11 = 0000000000000001
R12 = 00001465d508f260 R13 = 0000146304ab2350
R14 = 0000146304ab2270 R15 = 00001465b4460a40
RIP = 0000110969f00000 EFL = 0000000000010283
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x0000110969f00000 <unknown-module>+00000000
[ 1] 0x00001465d521c7a6 /usr/local/matlab/R2024a/bin/glnxa64/libmwfoundation_matlabdata.so+00792486 _ZNK10foundation10matlabdata5Array7getTypeEv+00000038
[ 2] 0x00001465d4f8c0ce /usr/local/matlab/R2024a/bin/glnxa64/libmwsettingscore.so+02400462
[ 3] 0x00001465d4f1c244 /usr/local/matlab/R2024a/bin/glnxa64/libmwsettingscore.so+01942084 _ZNK8settings4core8Settings3getIbEEN7mwboost16remove_referenceIT_E4typeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESF_+00000052
[ 4] 0x00001465681cfbfd /usr/local/matlab/R2024a/bin/glnxa64/foundation/httpproxy/matlab/httpproxy/libmwmatlabhttpproxy.so+00035837
[ 5] 0x00001465b20b2820 /usr/local/matlab/R2024a/bin/glnxa64/matlab_startup_plugins/cefclient/../../../../bin/glnxa64/libmwflhttpproxy.so+00043040
[ 6] 0x00001465681d2756 /usr/local/matlab/R2024a/bin/glnxa64/foundation/httpproxy/matlab/httpproxy/libmwmatlabhttpproxy.so+00046934
[ 7] 0x00001465683c6e29 /usr/local/matlab/R2024a/bin/glnxa64/foundation/httpclient/foundation/httpclient_core/implementation/mwhttpclient_core_implementation.so+01121833
[ 8] 0x00001465683ce3cc /usr/local/matlab/R2024a/bin/glnxa64/foundation/httpclient/foundation/httpclient_core/implementation/mwhttpclient_core_implementation.so+01151948
[ 9] 0x00001465cd17102d /usr/local/matlab/R2024a/bin/glnxa64/factory_settings/project/settings/../../../../../bin/glnxa64/libmwflhttpclient_core.so+00135213 _ZNK10foundation15httpclient_core10HttpClient11makeRequestENS0_11HttpRequestE+00000189
[ 10] 0x00001465b1bd63ed /usr/local/matlab/R2024a/bin/glnxa64/matlab_startup_plugins/jmi/../../../../bin/glnxa64/libmwxmlutils.so+00091117 _ZN2mw8xmlutils12LibXML2Utils22readDOMDocumentFromUrlERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+00002173
[ 11] 0x000014656930f8f3 /usr/local/matlab/R2024a/bin/glnxa64/registration_framework_plugins/addons/core_reg_point_api_impl/../../../../../bin/glnxa64/libmwaddons_registry_core.so+00780531 _ZN6addons8registry17MetadataFileUtils38getPreviewImageUrlUsingMetadataFileUrlERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+00000147
[ 12] 0x000014630126d80f /usr/local/matlab/R2024a/bin/glnxa64/libaddons_registry_jni.so+00018447 Java_com_mathworks_addons_1registry_MetadataFileUtils_1Jni_getPreviewImageUrlUsingURL_1Native+00000095
[ 13] 0x00001464f50186c7 <unknown-module>+00000000
[ 14] 0x00001464f5008040 <unknown-module>+00000000
[ 15] 0x00001464f5008040 <unknown-module>+00000000
[ 16] 0x00001464f5008040 <unknown-module>+00000000
[ 17] 0x00001464f5008040 <unknown-module>+00000000
[ 18] 0x00001464f5008040 <unknown-module>+00000000
[ 19] 0x00001464f5c59e4c <unknown-module>+00000000
[ 20] 0x00001464f50082bd <unknown-module>+00000000
[ 21] 0x00001464f5008302 <unknown-module>+00000000
[ 22] 0x00001464f50007a7 <unknown-module>+00000000
[ 23] 0x000014656ac9b39b /usr/local/matlab/R2024a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+06849435
[ 24] 0x000014656ac98c63 /usr/local/matlab/R2024a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+06839395
[ 25] 0x000014656ac99227 /usr/local/matlab/R2024a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+06840871
[ 26] 0x000014656ad0539c /usr/local/matlab/R2024a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+07283612
[ 27] 0x000014656b08e9eb /usr/local/matlab/R2024a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+10992107
[ 28] 0x000014656b08ecf1 /usr/local/matlab/R2024a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+10992881
[ 29] 0x000014656af208c2 /usr/local/matlab/R2024a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+09492674
[ 30] 0x00001465d69731ca /lib64/libpthread.so.0+00033226
[ 31] 0x00001465d63dc8d3 /lib64/libc.so.6+00235731 clone+00000067 Since upgrading from Matlab R2021a to R2024a, I am consistently seeing deadlocks and segmentation faults when starting matlab in -batch mode
OS: Rocky Linux 8 (or 9)
Other command line arguments – matlab -nosplash -nodesktop -noFigureWindows -timing -sd /home/simuser -logfile /home/simuser/jobRunner.log -batch "disp(‘hello-world’);pause(10);disp(‘hello-world’);"
Fault Count: 1
Abnormal termination:
Segmentation violation
Current Thread: ‘ED 0 dispatch t’ id 22415512651520
Register State (from fault):
RAX = 000000001100fe46 RBX = 0000146304ab2290
RCX = 00001465d51eb6e0 RDX = 0000110969f00000
RSP = 0000146304ab2248 RBP = 0000146304ab2250
RSI = 0000146304ab2350 RDI = 00000000110b6c80
R8 = 0000000000000000 R9 = 0000000000000000
R10 = 0000000000000000 R11 = 0000000000000001
R12 = 00001465d508f260 R13 = 0000146304ab2350
R14 = 0000146304ab2270 R15 = 00001465b4460a40
RIP = 0000110969f00000 EFL = 0000000000010283
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x0000110969f00000 <unknown-module>+00000000
[ 1] 0x00001465d521c7a6 /usr/local/matlab/R2024a/bin/glnxa64/libmwfoundation_matlabdata.so+00792486 _ZNK10foundation10matlabdata5Array7getTypeEv+00000038
[ 2] 0x00001465d4f8c0ce /usr/local/matlab/R2024a/bin/glnxa64/libmwsettingscore.so+02400462
[ 3] 0x00001465d4f1c244 /usr/local/matlab/R2024a/bin/glnxa64/libmwsettingscore.so+01942084 _ZNK8settings4core8Settings3getIbEEN7mwboost16remove_referenceIT_E4typeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESF_+00000052
[ 4] 0x00001465681cfbfd /usr/local/matlab/R2024a/bin/glnxa64/foundation/httpproxy/matlab/httpproxy/libmwmatlabhttpproxy.so+00035837
[ 5] 0x00001465b20b2820 /usr/local/matlab/R2024a/bin/glnxa64/matlab_startup_plugins/cefclient/../../../../bin/glnxa64/libmwflhttpproxy.so+00043040
[ 6] 0x00001465681d2756 /usr/local/matlab/R2024a/bin/glnxa64/foundation/httpproxy/matlab/httpproxy/libmwmatlabhttpproxy.so+00046934
[ 7] 0x00001465683c6e29 /usr/local/matlab/R2024a/bin/glnxa64/foundation/httpclient/foundation/httpclient_core/implementation/mwhttpclient_core_implementation.so+01121833
[ 8] 0x00001465683ce3cc /usr/local/matlab/R2024a/bin/glnxa64/foundation/httpclient/foundation/httpclient_core/implementation/mwhttpclient_core_implementation.so+01151948
[ 9] 0x00001465cd17102d /usr/local/matlab/R2024a/bin/glnxa64/factory_settings/project/settings/../../../../../bin/glnxa64/libmwflhttpclient_core.so+00135213 _ZNK10foundation15httpclient_core10HttpClient11makeRequestENS0_11HttpRequestE+00000189
[ 10] 0x00001465b1bd63ed /usr/local/matlab/R2024a/bin/glnxa64/matlab_startup_plugins/jmi/../../../../bin/glnxa64/libmwxmlutils.so+00091117 _ZN2mw8xmlutils12LibXML2Utils22readDOMDocumentFromUrlERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+00002173
[ 11] 0x000014656930f8f3 /usr/local/matlab/R2024a/bin/glnxa64/registration_framework_plugins/addons/core_reg_point_api_impl/../../../../../bin/glnxa64/libmwaddons_registry_core.so+00780531 _ZN6addons8registry17MetadataFileUtils38getPreviewImageUrlUsingMetadataFileUrlERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+00000147
[ 12] 0x000014630126d80f /usr/local/matlab/R2024a/bin/glnxa64/libaddons_registry_jni.so+00018447 Java_com_mathworks_addons_1registry_MetadataFileUtils_1Jni_getPreviewImageUrlUsingURL_1Native+00000095
[ 13] 0x00001464f50186c7 <unknown-module>+00000000
[ 14] 0x00001464f5008040 <unknown-module>+00000000
[ 15] 0x00001464f5008040 <unknown-module>+00000000
[ 16] 0x00001464f5008040 <unknown-module>+00000000
[ 17] 0x00001464f5008040 <unknown-module>+00000000
[ 18] 0x00001464f5008040 <unknown-module>+00000000
[ 19] 0x00001464f5c59e4c <unknown-module>+00000000
[ 20] 0x00001464f50082bd <unknown-module>+00000000
[ 21] 0x00001464f5008302 <unknown-module>+00000000
[ 22] 0x00001464f50007a7 <unknown-module>+00000000
[ 23] 0x000014656ac9b39b /usr/local/matlab/R2024a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+06849435
[ 24] 0x000014656ac98c63 /usr/local/matlab/R2024a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+06839395
[ 25] 0x000014656ac99227 /usr/local/matlab/R2024a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+06840871
[ 26] 0x000014656ad0539c /usr/local/matlab/R2024a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+07283612
[ 27] 0x000014656b08e9eb /usr/local/matlab/R2024a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+10992107
[ 28] 0x000014656b08ecf1 /usr/local/matlab/R2024a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+10992881
[ 29] 0x000014656af208c2 /usr/local/matlab/R2024a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+09492674
[ 30] 0x00001465d69731ca /lib64/libpthread.so.0+00033226
[ 31] 0x00001465d63dc8d3 /lib64/libc.so.6+00235731 clone+00000067 linux, segmentation fault, startup MATLAB Answers — New Questions