Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: MATLAB segmentation violation on matrix multiplication
Date: Sat, 7 Nov 2009 02:16:03 +0000 (UTC)
Organization: UTexas Austin
Lines: 53
Message-ID: <hd2l93$f06$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257560163 15366 172.30.248.38 (7 Nov 2009 02:16:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 7 Nov 2009 02:16:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2081174
Xref: news.mathworks.com comp.soft-sys.matlab:583170


Here is my code:

clear;
clc;
v_temp1 = zeros(2,2);

A = [4 2 ; 2 4];
M_matrix = [1 1 ; 1 1];
C = A * M_matrix

Interestingly i get segmentation fault whenever i fire this code on a CPU cluster, but it ofcourse runs well on my local machine. I am sure there is some setup issue, but don't know what...
Another thing is that when i replace the multiplication operator with addition/subtraction, it works... 

Here is the error that i am getting..
------------------------------------------------------------------------
       Segmentation violation detected at Fri Nov  6 20:13:51 2009
------------------------------------------------------------------------

Configuration:
  MATLAB Version:   7.5.0.338 (R2007b)
  MATLAB License:   168993
  Operating System: Linux 2.6.24.6+desktop10+25.63 #1 SMP Thu Nov 5 15:03:22 CST 2009 i686
  GNU C Library:    2.7 stable
  Window System:    No active display
  Current Visual:   None
  Processor ID:     x86 Family 6 Model 7 Stepping 6, GenuineIntel
  Virtual Machine:  Java 1.6.0 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode, sharing
  Default Charset:  US-ASCII

Register State:
  eax = 00000000   ebx = 44598510
  ecx = 00000000   edx = 00000002
  esi = 44eedaac   edi = 00000000
  ebp = 4459fd00   esp = 44eeba18
  eip = 43c8f761   flg = 00010246

Stack Trace:
  [0] mkl.so:SearchPath~(0x645f6c6d, 0x732e6665, 111, 0) + 41 bytes

Please follow these steps to report this problem to The MathWorks so we
have the best chance of correcting it:

The next time MATLAB is launched under typical usage, a dialog box will
open to help you send the error log to The MathWorks. Alternatively, you
can send an e-mail to segv@mathworks.com with the following file attached:
    /tmp/matlab_crash_dump.26316

If the problem is reproducible, please submit a Service Request via:
    http://www.mathworks.com/support/contact_us/ts/help_request_1.html

A technical support engineer might contact you with further information.

Thank you for your help. Save your workspace and restart MATLAB.