MATLAB: Does MATLAB 7.8 (R2009a) on Linux crash at startup with the Java error “java.lang​.String.ha​shCode()I”​

MATLAB

When starting MATLAB 7.8 (R2009a) on Linux, it crashes with the following error:
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007ff42286189c, pid=10620, tid=140689326291280
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (10.0-b19 mixed mode linux-amd64)
# Problematic frame:
# J java.lang.String.hashCode()I
#
# An error report file with more information is saved as:
# /home/hs_err_pid10620.log
#
# If you would like to submit a bug report, please visit:
# <http://java.sun.com/webapps/bugreport/crash.jsp>
#
I would like to know what this error means and how I can correct it.

Best Answer

This issue may occur if you have limited the stack size for MATLAB. To resolve this issue, try increasing the stack size. To do so, run the following command as root:
ulimit -s unlimited
This will increase the stack to the maximum size. Once increased, you should be able to start MATLAB.
If you have increased the stack and you are still unable to start MATLAB, contact the Installation and Licensing team: