Debugging Matlab 2019a does not work in Ubunut

I am trying to debug a mex file in Matlab 2018b or 2019a using gdb under Ubuntu 18.04.
The first error is:
matlab -nojvm -Dgdb
gdb: symbol lookup error: /usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0: undefined symbol: XML_SetHashSalt
This can be fixed with:
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libexpatw.so.1
The second error comes as:
matlab -nojvm -Dgdb
GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/MATLAB/R2019a/bin/glnxa64/MATLAB...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/local/MATLAB/R2019a/bin/glnxa64/MATLAB -nojvm
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe0f80700 (LWP 5096)]
[New Thread 0x7fffdbfff700 (LWP 5097)]
[New Thread 0x7fffdaf21700 (LWP 5098)]
[Thread 0x7fffdbfff700 (LWP 5097) exited]
[New Thread 0x7fffd9915700 (LWP 5104)]
[New Thread 0x7fffd9114700 (LWP 5105)]
[New Thread 0x7fffcb73d700 (LWP 5106)]
Fatal Internal Error: std::exception: Message Catalog MATLAB:branding was not loaded from the file. Please check file location, format or contents
[Thread 0x7fffd9114700 (LWP 5105) exited]
[Thread 0x7fffd9915700 (LWP 5104) exited]
[Thread 0x7fffdaf21700 (LWP 5098) exited]
[Thread 0x7fffe0f80700 (LWP 5096) exited]
[Thread 0x7fffecea9440 (LWP 5091) exited]
[Inferior 1 (process 5091) exited with code 01]
(gdb)
So I cannot start Matlab and get going. Then what?

Respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.

Productos

Versión

R2019a

Etiquetas

Preguntada:

el 11 de Ag. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by