MATLAB: Do I receive the error “illegal instruction detected” when using MATLAB 6.5 (R13) under IBM

5.16.5aixcrashdetectedibmillegalinstructionMATLABr13segfaultsegmentationviolation

Why do I receive the error "illegal instruction detected" when using MATLAB 6.5 (R13) under IBM?
I get the following error when I use commands such as PLOT, BENCH, HELPWIN, DEMO, etc.
------------------------------------------------------------------------
Illegal instruction detected at Fri Sep 27 16:05:21 2002
------------------------------------------------------------------------
Configuration:
MATLAB Version: 6.5.0.180913a (R13)
Operating System: AIX 1 5 0020FEDA4C00
Window System: StarNet Communications Corp. (5223), display
squeegy.ee.columbia.edu:0.0
Current Visual: 0x20 (class 4, depth 24)
Virtual Machine: Java 1.2.2 with IBM Corporation Classic VM
(J2RE 1.2.2 IBM build ca122-20001026 (JIT enabled: jitc))

Best Answer

This error is due to the interaction between MATLAB and the JVM. The workaround is to run MATLAB without using the JVM by using the -nojvm flag by typing the following at the UNIX shell prompt:
matlab -nojvm