Why does MATLAB crash on Linux with "Inconsistency detected by ld.so: ../elf/dl-tls.c: 597: _dl_allocate_tls_init:"
조회 수: 213 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2021년 6월 30일
편집: MathWorks Support Team
2025년 5월 7일
When I run MATLAB R2021b on my Linux machine, it occasionally crashes. The following error message appears in the terminal or at the top of the resulting crash stack trace:
Inconsistency detected by ld.so: ../elf/dl-tls.c: 597: _dl_allocate_tls_init: Assertion `listp != NULL' failed!
This crash primarily happens when I attempt to use Simulink for the first time after launching MATLAB. However, it can also happen when using the MATLAB Editor or MATLAB Coder.
채택된 답변
MathWorks Support Team
2025년 5월 6일
편집: MathWorks Support Team
2025년 5월 7일
This is a known issue that occur in some releases of MATLAB.
Refer to Bug Report 2632298 for workarounds and fixes (you will need to log in to your MathWorks account to access this link).
댓글 수: 1
Richard Crozier
2022년 11월 9일
Putting the following in your startup.m file may also solve the problem, it seems to have for me:
open_system(new_system('abcdef123456')); bdclose('abcdef123456');
I got this from another issue regarding simulink crashes.
추가 답변 (2개)
Michal
2022년 10월 21일
편집: Michal
2022년 10월 21일
I have similar problem with MATLAB coder on R2022b (Ubuntu Linux 20.04.3)
>> coder
>> Inconsistency detected by ld.so: ../elf/dl-tls.c: 517: _dl_allocate_tls_init: Assertion `listp != NULL' failed!
Please add this case to the bug report: MATLAB might sporadically crash on Linux when starting Simulink (2632298).
This is really terrible behavior of latest releases of MATLAB on Linux platforms, which are officially declared by TMW as fully supported.
But the main problem is, that TMW officially suggest to apply unofficial patch to glibc (which is one of most importatnt library in Linux OS)??!!
댓글 수: 0
xingxingcui
2023년 3월 9일
편집: Walter Roberson
2025년 4월 28일
1. Ubuntu 18.04/20.04 has libcanberra-gtk3-module (gtk-3.0+) installed by default, and Matlab needs to call the gtk-2.0+ canberra dynamic link library;
(In fact, there is also a 2.0+ version of the dynamic link library file in the gtk-3.0+ directory, but it seems that Matlab does not support multiple versions of libcanberra-gtk-module.so under the same path)
2. the linux default library is found under the path "/usr/lib/", while the canberra dynamic link library is located under the path "/usr/lib/x86_64-linux-gnu/";
Solution:
1. Install the gtk-2.0+ version of canberra by running the following command in the terminal:
sudo apt-get install libcanberra-gtk-module -y
2. Add a soft connection, run the following command in the terminal (many people are missing this step):
sudo ln -s /usr/lib/x86_64-linux-gnu/gtk-2.0/modules/libcanberra-gtk-module.so /usr/lib/libcanberra-gtk-module.so
Reference:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!