Hello
I am currently evaluating a Mac for a possible future notebook system
using a copy of Mac OS installed in a VM. One of the apps I am used to
(on my Linux systems) is Matlab.
I have successfully set it up and matlab does start up properly.
However, it crashes as soon as I try to do a matrix multiplication
(something as simple as [1 2]'*[1 2]). The offending application appears
to be Java initially :
(from java.log.xxx)
Invalid memory access of location ... eip=...
Java version : 1.5.0_16
However, funnily enough, this happens even when I start without Java
(matlab -nojvm -nodesktop from an xterm) :
------------------------------------------------------------------------
Bus error detected at Thu Dec 25 02:17:58 2008
------------------------------------------------------------------------
Configuration:
MATLAB Version: 7.7.0.471 (R2008b)
Virtual Machine: Java is not enabled
Fault Count: 1
Register State:
eax = 00000000 ebx = b0c27958
ecx = 17e8b390 edx = b0c27958
esi = 19798080 edi = b0c2794c
ebp = b0c27988 esp = b0c277ac
eip = 00000000 flg = 00210293
Stack Trace:
[0] 0x00000000(0x17bb6ab8, 0x17bb6af0, 0x17bb6f88, 0)
[1] libmwmathlinalg.dylib:mfGenMatrixMult(mxArray_tag*, mxArray_tag*,
mxArray_tag*, MM_Transpose, MM_Transpose)(0x17bb6ab8, 0x17bb6af0,
0x17bb6f88, 0) + 135 bytes
[2] libmwmathlinalg.dylib:mfTimesTransposeFcn2DFloatPt(int,
mxArray_tag**, int, mxArray_tag**)(0, 0xb0c27bb4, 3, 0xb0c27c44) + 906 bytes
[3] libmwm_dispatcher.dylib:Mlm_file::load_mf()(0x17e38e40 "�wQ", 0,
0xb0c27bb4, 3) + 30084 bytes
[4] libmwm_dispatcher.dylib:Mfh_MATLAB_fn::dispatch_fh(int,
mxArray_tag**, int, mxArray_tag**)(0x17e38e40 "�wQ", 0, 0xb0c27bb4, 3) +
200 bytes
[5]
libmwm_interpreter.dylib:inJitCallMatlabFunctionPtrNoDestroy(Mfh_MATLAB_fn*,
int, int, mxArray_tag**, int, mxArray_tag**)(0x17e38e40 "�wQ", 442, 0,
0xb0c27bb4)$
[6] libmwm_interpreter.dylib:accelImpl::MatfcnMxArray()(0xb0c323d4
"H%ðD%ð", 0x03941600, 0xb0c28238, 0x004f8ed0) + 304 bytes
Please follow these steps to report this problem to The MathWorks so we
have the best chance of correcting it:
How does one fix this ?
I have found numerous links on the net with other users reporting
problems with Apple's implementation of Java (interestingly, Sun does
not offer or support Java on Mac OSX). Some of these reports are as old
as one year or more. One of the (very) few successful reports (of a fix)
I could find was :
http://lists.apple.com/archives/Java-dev/2008/Aug/msg00283.html
Mine is a 32 bit system. I followed the advice. No joy. Not entirely
unexpected as Matlab appears to be triggering some sort of a problem.
Any suggestions would be welcome. If this does not work, then I guess
Mac is not the platform I should be considering.
** Posted from
http://www.teranews.com **