Monday, March 31, 2014

[Trouble shooting] MATLAB, segmentation violation detected

Following error occurs when I try to run the 'code A'.

I guess the caution of the problem is '.mat file'!!!.
In the 'code A', it loads some '.mat file'.

However!! other program 'code B' updates (load & add or modify variables & save) the '.mat file' repeatedly.

I guess the error occurs because 'code A' tries to load 'incompletely save .mat file'!
If I change the '.mat file', the error does not occur.


This is just my guess.





------------------------------------------------------------------------
       Segmentation violation detected at Mon Mar 31 21:12:13 2014
------------------------------------------------------------------------

Configuration:
  MATLAB Version:   7.9.0.529 (R2009b)
  MATLAB License:   161051
  Operating System: Linux 3.2.0-43-generic #68-Ubuntu SMP Wed May 15 03:33:33 UTC 2013 x86_64
  GNU C Library:    2.15 stable
  Window System:    No active display
  Current Visual:   None
  Processor ID:     x86 Family 6 Model 10 Stepping 7, GenuineIntel
  Virtual Machine:  Java 1.6.0_12-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
  Default Encoding:  UTF-8

Fault Count: 1

Register State:
  rax = 0000000000000000   rbx = 0000000000000008
  rcx = 0000000000008000   rdx = 00007f1d140000a8
  rbp = 00007f1d1a9ea7a0   rsi = 00007f1d140000c8
  rdi = 0000000000000010   rsp = 00007f1d1a9ea748
   r8 = 0000000000000000    r9 = 0000000000000008
  r10 = 0000000000000022   r11 = 0000000000000246
  r12 = 00007f1d179b1880   r13 = 00007f1d17a4dfe0
  r14 = 0000000000000001   r15 = 00007f1d1a9ea888
  rip = 00007f1d293f6df4   flg = 0000000000010202

Stack Trace:
  [0] libc.so.6:0x00007f1d293f6df4(0x7f1d1a9ea898, 0x7f1d200ffc64, 0x7f1d2008e95d, 0)
  [1] libmat.so:get_fields_attribute(int, bool&, int&, char**&)(0x7f1d1a9ea8d0, 0x7f1d1a9ea898, 0x7f1d17a4c0e0 "struct", 0x2316c0fe) + 497 bytes

No comments:

Post a Comment