MATLAB sometimes suddenly hangs on relatively simple operations like small matrix multiplications. It does look like this happens under high IO load (from other processes) however. When MATLAB hangs the whole GUI is unresponsive, CPU usage is close to 0 and the only way to close MATLAB is by killing the process.
If I try to debug the process it looks like MATLAB is deadlocked in a call to _int_free in glibc:
(gdb) backtrace#0 0x0000003600af80ce in __lll_lock_wait_private () from /lib64/libc.so.6#1 0x0000003600a7cf7e in _L_lock_5746 () from /lib64/libc.so.6#2 0x0000003600a78a8b in _int_free () from /lib64/libc.so.6#3 0x00007ffff7672608 in ?? () from /usr/local/MATLAB/R2014a/bin/glnxa64/libmx.so#4 0x00007ffff7674d55 in ?? () from /usr/local/MATLAB/R2014a/bin/glnxa64/libmx.so#5 0x00007ffff7674ee2 in ?? () from /usr/local/MATLAB/R2014a/bin/glnxa64/libmx.so#6 0x00007ffff767510f in ?? () from /usr/local/MATLAB/R2014a/bin/glnxa64/libmx.so
Best Answer