double free or corruption (!prev) / Segmentation violation
60 views (last 30 days)
Show older comments
Tohid Nozad khalil
on 30 Jul 2020
Edited: Tohid Nozad khalil
on 1 Aug 2021
I use virtual terminal (gnu's screen) to run my process in MATLAB in our server but I faces with a problem newly. Matlab gives error and interrupt the process while my connection to the server shuts down. Same error is happen in tmux, too.
*** Error in `/opt/MATLAB/R2009b/bin/glnxa64/MATLAB': double free or corruption (!prev): 0x00007f91455f7d60 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f91595977e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x190ed8)[0x7f91596b0ed8]
======= Memory map: ========
00400000-00406000 r-xp 00000000 08:05 6169816 /opt/MATLAB/R2009b/bin/glnxa64/MATLAB
00606000-00607000 rw-p 00006000 08:05 6169816 /opt/MATLAB/R2009b/bin/glnxa64/MATLAB
2 Comments
yanglan yang
on 1 Aug 2021
I am facing this problem too, could you tell me how to solve this problem?
Accepted Answer
Maadhav Akula
on 21 Aug 2020
In order to resolve this error you will need to remove your preferences directory:
Check in your home directory for a directory named .matlab and remove this and try re-launching MATLAB. This directory will get re-created at startup.
If this does not resolve the problem, setting the following variable may resolve your issue:
set MALLOC_CHECK=0
If still you are facing this issue please reach out to MathWorks Support:
More Answers (0)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!