MATLAB: Do I encounter difficulties when running MATLAB 6.0 (R12) on the RedHat 7 computer

6.07javaMATLABmexnojvmr12redhatsegmentationsigsegvstartingviolation

After trying to execute the MATLAB program, I receive a "Starting MATLAB…" notification; however, after a few seconds, I am returned back to my Linux prompt without MATLAB. (A matlab_crash_dump.NNNNN and/or a java.log.NNNNN file is created in my home directory.)
I get the following Segmentation Violation on Linux RedHat 7.0 using MATLAB 6.0 (R12):
SIGSEGV 11* Segmentation Violation
I get the following warning when running SWAP intensive simulations on Linux?
Connection to the X11 Display Server has been lost

Best Answer

RedHat 7.0 utilizes the glibc 2.1.92 libraries. These libraries are basically "beta" versions of the glibc 2.2 libraries. The glibc 2.1.92 libraries have a bug, which prevents any multithreaded program from working. Since MATLAB uses Java, and Java uses multiple threads, it fails.
A short-term workaround is to run MATLAB without the Java Virtual Machine. (NOTE: This disables the new graphical user interface and integrated editor/debugger.)
To run MATLAB without the Java Virtual Machine, type:
matlab -nojvm
The long-term option involves upgrading glibc to 2.1.94 or higher. Note: glibc 2.2 is now released and works without problems.
Once you download the files, use gunzip to unzip followed by 'tar -xfv glibc-2.2.4.tar' to untar the directory. A folder called glibc-2.2.4 will be created with all the necessary files in it. There are two files, README and INSTALL, which you can read for more information on how to install the libraries on a specific platform. If you have any further questions in this matter, please contact your system administrator.
You may also want to review the Related Solution listed below: