MATLAB: Does MATLAB crash with MATLAB shipped MEX files in the crash dump

libmexmexmexfunctionpath

When I try to run something simple such as the following, my MATLAB crashes.
>> syms a
I check the crash dump and I see the last lines are:
Stack Trace (from fault):
[ 0] 0x00007f6f44cc1658 /usr/local/MATLAB/R2019b/toolbox/symbolic/symbolic/mupadmex.mexa64+00104024 mexFunction+00001320
[ 1] 0x00007f6fffc67d60 /usr/local/MATLAB/R2019a/bin/glnxa64/libmex.so+00544096
[ 2] 0x00007f6fffc68d73 /usr/local/MATLAB/R2019a/bin/glnxa64/libmex.so+00548211
[ 3] 0x00007f6fffc5471c /usr/local/MATLAB/R2019a/bin/glnxa64/libmex.so+00464668
Why does my R2019a MATLAB crash?

Best Answer

The crash dump mentions R2019a and then R2019b. This may indicate that the paths are mixed in MATLAB R2019a.
Check "path" to see if MATLAB R2019a has a path to R2019b files. If such path exists, you can remove the path using "rmpath", save it using "savepath", and finally restart MATLAB.
Below is an example in how this can be corrected via MATLAB console:
rmpath('/usr/local/MATLAB/R2019b/toolbox/symbolic/symbolic');savepath
Related Question