Why does MATLAB crash on Linux with "Inconsistency detected by ld.so: ../elf/dl-tls.c: 597: _dl_allocate_tls_init:"

695 visualizzazioni (ultimi 30 giorni)
When running MATLAB R2021b on my Linux machine, it sometimes crashes and the following error message appears in the terminal, or will appear at the top of the crash stack trace:
Inconsistency detected by ld.so: ../elf/dl-tls.c: 597: _dl_allocate_tls_init: Assertion `listp != NULL' failed!
This mostly occurs when I am trying to using Simulink for the first time after opening MATLAB

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 11 Ago 2023
Modificato: MathWorks Support Team il 27 Set 2022
This is a known issue in some releases of MATLAB.
Refer to the following External Bug Report for information on workarounds and fixes:
Note: You will need to log in to your MathWorks account to access this link.
  1 Commento
Richard Crozier
Richard Crozier il 9 Nov 2022
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.

Accedi per commentare.

Più risposte (2)

Michal
Michal il 21 Ott 2022
Modificato: Michal il 21 Ott 2022
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!
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)??!!

cui,xingxing
cui,xingxing il 9 Mar 2023
Modificato: cui,xingxing il 27 Apr 2024 alle 2:24
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:
-------------------------Off-topic interlude, 2024-------------------------------
I am currently looking for a job in the field of CV algorithm development, based in Shenzhen, Guangdong, China,or a remote support position. I would be very grateful if anyone is willing to offer me a job or make a recommendation. My preliminary resume can be found at: https://cuixing158.github.io/about/ . Thank you!
Email: cuixingxing150@gmail.com

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Prodotti


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by