Test and Measurement Forum

Segmentation violation on MATLAB 2011a

Post your MATLAB discussions here

Segmentation violation on MATLAB 2011a

Postby skyerfree » Tue Dec 04, 2012 3:34 am

Hi,

I am using the example matlab file "PicMatlab.m" for 2000 downloaded from pictech.com.
I can successfully run it in MATLAB 2010a. However, I got the below segmentation violation in MATLAB 2011a.
I didn't change anything in the code, just run it on different versions.

When i debug the code, I can see the code opens the unit. But when the unit starts to call other functions, MATLAB 2011a crashes.
How can I fix this problem?

Thanks
///////////////////////////////////////////////////////////


MATLAB crash file:C:\Users\fklai\AppData\Local\Temp\matlab_crash_dump.1416-1:


Code: Select all
------------------------------------------------------------------------
       Segmentation violation detected at Tue Dec 04 11:30:13 2012
------------------------------------------------------------------------

Configuration:
  Crash Decoding  : Disabled
  Default Encoding: windows-1252
  MATLAB License  : 268205
  MATLAB Root     : C:\Program Files\MATLAB\R2011a
  MATLAB Version  : 7.12.0.635 (R2011a)
  Operating System: Microsoft Windows 7
  Processor ID    : x86 Family 6 Model 10 Stepping 7, GenuineIntel
  Virtual Machine : Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
  Window System   : Version 6.1 (Build 7601: Service Pack 1)

Fault Count: 1



Abnormal termination:
Segmentation violation

Register State (from fault):
  EAX = 00000001  EBX = 54c89c40
  ECX = 0000000a  EDX = 5032e7e8
  ESP = 00a0c61c  EBP = 1d738d4c
  ESI = 1d738d4c  EDI = 03eb35c8

  EIP = 03eb027f  EFL = 00010206

   CS = 0000001b   DS = 00000023   SS = 00000023
   ES = 00000023   FS = 0000003b   GS = 00000000


Stack Trace (from fault):
[  0] 0x03eb027f
[  1] 0x54c85202 C:/Program Files/MATLAB/R2011a/bin/win32/libmwcli.dll+00020994 ( ExportableDataType::getBaseDataType+010258 )
[  2] 0x54c87475 C:/Program Files/MATLAB/R2011a/bin/win32/libmwcli.dll+00029813 ( MLInitialize_libmwcli+003013 )
[  3] 0x54c88e93 C:/Program Files/MATLAB/R2011a/bin/win32/libmwcli.dll+00036499 ( MLInitialize_libmwcli+009699 )
[  4] 0x54c89001 C:/Program Files/MATLAB/R2011a/bin/win32/libmwcli.dll+00036865 ( MLInitialize_libmwcli+010065 )
[  5] 0x00f01db5 C:/Program Files/MATLAB/R2011a/bin/win32/m_dispatcher.dll+00073141 ( mdLogging::log_function_entry+000229 )
[  6] 0x00f01d3b C:/Program Files/MATLAB/R2011a/bin/win32/m_dispatcher.dll+00073019 ( mdLogging::log_function_entry+000107 )
[  7] 0x00f017aa C:/Program Files/MATLAB/R2011a/bin/win32/m_dispatcher.dll+00071594 ( Mfunction_handle::dispatch+000394 )
[  8] 0x02ed13e6 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00463846 ( in_is_matlab_function+323574 )
[  9] 0x02ece200 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00451072 ( in_is_matlab_function+310800 )
[ 10] 0x02edf677 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00521847 ( in_is_matlab_function+381575 )
[ 11] 0x02edf792 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00522130 ( in_is_matlab_function+381858 )
[ 12] 0x02ed6580 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00484736 ( in_is_matlab_function+344464 )
[ 13] 0x02ed4307 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00475911 ( in_is_matlab_function+335639 )
[ 14] 0x02edac79 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00502905 ( in_is_matlab_function+362633 )
[ 15] 0x00f014b8 C:/Program Files/MATLAB/R2011a/bin/win32/m_dispatcher.dll+00070840 ( Mfh_file::dispatch_fh+000392 )
[ 16] 0x00f018cf C:/Program Files/MATLAB/R2011a/bin/win32/m_dispatcher.dll+00071887 ( Mfunction_handle::dispatch+000687 )
[ 17] 0x02eebdb1 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00572849 ( in_is_matlab_function+432577 )
[ 18] 0x02edd5cb C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00513483 ( in_is_matlab_function+373211 )
[ 19] 0x02ed3f1c C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00474908 ( in_is_matlab_function+334636 )
[ 20] 0x03194fc0 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+03362752 ( inMexEvalStringWithTrap+003331 )
[ 21] 0x02ec95e2 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00431586 ( in_is_matlab_function+291314 )
[ 22] 0x02ecb604 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00439812 ( in_is_matlab_function+299540 )
[ 23] 0x02ecdfe9 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00450537 ( in_is_matlab_function+310265 )
[ 24] 0x02edf677 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00521847 ( in_is_matlab_function+381575 )
[ 25] 0x02edf792 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00522130 ( in_is_matlab_function+381858 )
[ 26] 0x02ed6580 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00484736 ( in_is_matlab_function+344464 )
[ 27] 0x02ed4307 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00475911 ( in_is_matlab_function+335639 )
[ 28] 0x02edac79 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00502905 ( in_is_matlab_function+362633 )
[ 29] 0x00f014b8 C:/Program Files/MATLAB/R2011a/bin/win32/m_dispatcher.dll+00070840 ( Mfh_file::dispatch_fh+000392 )
[ 30] 0x00f018cf C:/Program Files/MATLAB/R2011a/bin/win32/m_dispatcher.dll+00071887 ( Mfunction_handle::dispatch+000687 )
[ 31] 0x02ed13e6 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00463846 ( in_is_matlab_function+323574 )
[ 32] 0x02e69a62 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00039522 ( inSim_findArray_for_variable+020290 )
[ 33] 0x02ecf7a2 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00456610 ( in_is_matlab_function+316338 )
[ 34] 0x02edf677 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00521847 ( in_is_matlab_function+381575 )
[ 35] 0x02edf792 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00522130 ( in_is_matlab_function+381858 )
[ 36] 0x02ed6580 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00484736 ( in_is_matlab_function+344464 )
[ 37] 0x02ed4307 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00475911 ( in_is_matlab_function+335639 )
[ 38] 0x02edac79 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00502905 ( in_is_matlab_function+362633 )
[ 39] 0x00f014b8 C:/Program Files/MATLAB/R2011a/bin/win32/m_dispatcher.dll+00070840 ( Mfh_file::dispatch_fh+000392 )
[ 40] 0x00f018cf C:/Program Files/MATLAB/R2011a/bin/win32/m_dispatcher.dll+00071887 ( Mfunction_handle::dispatch+000687 )
[ 41] 0x02f2d9d6 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00842198 ( inAnonymousFunction+000710 )
[ 42] 0x02f37ccf C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00883919 ( init_cleaner+001679 )
[ 43] 0x02f386e9 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00886505 ( init_cleaner+004265 )
[ 44] 0x02f386c5 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00886469 ( init_cleaner+004229 )
[ 45] 0x02f3868d C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00886413 ( init_cleaner+004173 )
[ 46] 0x02f184b4 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00754868 ( inGetCurrentWS+003012 )
[ 47] 0x02f300d0 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00852176 ( inEvalCmdWithLocalReturn+000144 )
[ 48] 0x02f30079 C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00852089 ( inEvalCmdWithLocalReturn+000057 )
[ 49] 0x02f3005e C:/Program Files/MATLAB/R2011a/bin/win32/m_interpreter.dll+00852062 ( inEvalCmdWithLocalReturn+000030 )
[ 50] 0x7e1c7a73 C:/Program Files/MATLAB/R2011a/bin/win32/libmwbridge.dll+00031347 ( mnDebugPrompt+000163 )
[ 51] 0x7e1cb994 C:/Program Files/MATLAB/R2011a/bin/win32/libmwbridge.dll+00047508 ( mnParser+000484 )
[ 52] 0x7f2a2a23   C:/Program Files/MATLAB/R2011a/bin/win32/mcr.dll+00207395 ( mcrInstance::mnParser_on_interpreter_thread+000051 )
[ 53] 0x7f288252   C:/Program Files/MATLAB/R2011a/bin/win32/mcr.dll+00098898 ( DepfunRules::postWarning+029026 )
[ 54] 0x7f28a525   C:/Program Files/MATLAB/R2011a/bin/win32/mcr.dll+00107813 ( DepfunRules::postWarning+037941 )
[ 55] 0x7f28a5a6   C:/Program Files/MATLAB/R2011a/bin/win32/mcr.dll+00107942 ( DepfunRules::postWarning+038070 )
[ 56] 0x74e08c39   C:/Program Files/MATLAB/R2011a/bin/win32/uiw.dll+00298041 ( UIW_IsUserMessage+000121 )
[ 57] 0x74e091ee   C:/Program Files/MATLAB/R2011a/bin/win32/uiw.dll+00299502 ( ws_ProcessPendingEventsWaitForWindows+000286 )
[ 58] 0x76f66d80                     C:/Windows/system32/USER32.dll+00224640 ( SetWindowsHookExA+000116 )
[ 59] 0x76f3e1a9                     C:/Windows/system32/USER32.dll+00057769 ( SystemParametersInfoW+000271 )
[ 60] 0x76f4248f                     C:/Windows/system32/USER32.dll+00074895 ( PtInRect+000253 )
[ 61] 0x76e16fce                      C:/Windows/SYSTEM32/ntdll.dll+00290766 ( KiUserCallbackDispatcher+000046 )
[ 62] 0x74dea004   C:/Program Files/MATLAB/R2011a/bin/win32/uiw.dll+00172036 ( UIW_SetCurrentDialog+000564 )
[ 63] 0x74dea05f   C:/Program Files/MATLAB/R2011a/bin/win32/uiw.dll+00172127 ( UIW_SetCurrentDialog+000655 )
[ 64] 0x74e0a1c5   C:/Program Files/MATLAB/R2011a/bin/win32/uiw.dll+00303557 ( ws_FreeSystemFont+000485 )
[ 65] 0x03670727 C:/Program Files/MATLAB/R2011a/bin/win32/libuij.dll+00132903 ( sysq::ws_ppeHook::~ws_ppeHook+007015 )
[ 66] 0x03670dfc C:/Program Files/MATLAB/R2011a/bin/win32/libuij.dll+00134652 ( sysq::ws_ppeHook::~ws_ppeHook+008764 )
[ 67] 0x03671d83 C:/Program Files/MATLAB/R2011a/bin/win32/libuij.dll+00138627 ( svWS_CommitDatabaseUpdates+002051 )
[ 68] 0x036725ab C:/Program Files/MATLAB/R2011a/bin/win32/libuij.dll+00140715 ( svWS_CommitDatabaseUpdates+004139 )
[ 69] 0x036727a6 C:/Program Files/MATLAB/R2011a/bin/win32/libuij.dll+00141222 ( svWS_CommitDatabaseUpdates+004646 )
[ 70] 0x0367288a C:/Program Files/MATLAB/R2011a/bin/win32/libuij.dll+00141450 ( svWS_CommitDatabaseUpdates+004874 )
[ 71] 0x036729f2 C:/Program Files/MATLAB/R2011a/bin/win32/libuij.dll+00141810 ( UIJ_WS_ProcessPendingEvents+000018 )
[ 72] 0x7f289c0e   C:/Program Files/MATLAB/R2011a/bin/win32/mcr.dll+00105486 ( DepfunRules::postWarning+035614 )
[ 73] 0x7f28a85d   C:/Program Files/MATLAB/R2011a/bin/win32/mcr.dll+00108637 ( DepfunRules::postWarning+038765 )
[ 74] 0x7f28aaac   C:/Program Files/MATLAB/R2011a/bin/win32/mcr.dll+00109228 ( DepfunRules::postWarning+039356 )
[ 75] 0x7f28b936   C:/Program Files/MATLAB/R2011a/bin/win32/mcr.dll+00112950 ( mcr_invoke_on_interpreter_thread+001014 )
[ 76] 0x01296202 C:/Program Files/MATLAB/R2011a/bin/win32/MATLAB.exe+00025090 ( ???+000000 )
[ 77] 0x012962c5 C:/Program Files/MATLAB/R2011a/bin/win32/MATLAB.exe+00025285 ( ???+000000 )
[ 78] 0x0129638d C:/Program Files/MATLAB/R2011a/bin/win32/MATLAB.exe+00025485 ( ???+000000 )
[ 79] 0x01296829 C:/Program Files/MATLAB/R2011a/bin/win32/MATLAB.exe+00026665 ( ???+000000 )
[ 80] 0x76b8ed6c                   C:/Windows/system32/kernel32.dll+00322924 ( BaseThreadInitThunk+000018 )
[ 81] 0x76e3377b                      C:/Windows/SYSTEM32/ntdll.dll+00407419 ( RtlInitializeExceptionChain+000239 )
[ 82] 0x76e3374e                      C:/Windows/SYSTEM32/ntdll.dll+00407374 ( RtlInitializeExceptionChain+000194 )



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

A technical support engineer might contact you with further information.


Thank you for your help.
skyerfree
Newbie
 
Posts: 0
Joined: Tue Mar 13, 2012 1:27 am

Re: Segmentation violation on MATLAB 2011a

Postby Hitesh » Tue Dec 04, 2012 8:47 am

Hi Skyerfree,

Is there is a particular line where it crashes?

You can try downloading the latest SDK containing a more up to date dll from http://www.picotech.com/software.html which you can copy into the folder.

The alternative is to try using a later version of MATLAB.

Hope this helps.
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2058
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire


Return to MATLAB

Who is online

Users browsing this forum: No registered users and 0 guests