how to solve illegal instruction while running the script

10 views (last 30 days)
im using amd processor. while running the script from the editor it takes more and shows illegal instruction has been detected and matlab exist.

Accepted Answer

Ivan Santana
Ivan Santana on 16 May 2017
Edited: Walter Roberson on 16 May 2017
how to solve illegal instruction while running the script????
This is
-----------------------------------------------------------------------
Illegal instruction detected at Tue May 16 15:00:34 2017
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Default Encoding : windows-1252
MATLAB Architecture: win64
MATLAB Root : C:\Program Files\MATLAB\R2013b
MATLAB Version : 8.2.0.701 (R2013b)
Operating System : Microsoft Windows 8
Processor ID : x86 Family 127 Model 0 Stepping 1, AuthenticAMD
Virtual Machine : Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : Version 6.2 (Build 9200)
Fault Count: 1
Abnormal termination:
Illegal instruction
Register State (from fault):
RAX = 00000000c0220000 RBX = 00000000c0221000
RCX = 0000000004033f10 RDX = 00000000bbc00400
RSP = 0000000004033d20 RBP = 0000000004034bf8
RSI = 00000000b5859a58 RDI = 0000000004034bf8
R8 = 0000000000000100 R9 = 00000000c0221000
R10 = 0000000000000600 R11 = 0000000000000200
R12 = 0000000000000008 R13 = 0000000000000030
R14 = 0000000000000018 R15 = 0000000000000008
RIP = 00000000b46e05b2 EFL = 00010216
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00000000b46e05b2 C:\Program Files\MATLAB\R2013b\bin\win64\mkl.dll+24642994 xerbla+22640098
[ 1] 0x00000000b3d1d484 C:\Program Files\MATLAB\R2013b\bin\win64\mkl.dll+14406788 xerbla+12403892
[ 2] 0x00000000b3d12db8 C:\Program Files\MATLAB\R2013b\bin\win64\mkl.dll+14364088 xerbla+12361192
[ 3] 0x00000000b303206e C:\Program Files\MATLAB\R2013b\bin\win64\mkl.dll+00860270 mkl_cbwr_set+00476430
[ 4] 0x00000000b36cef91 C:\Program Files\MATLAB\R2013b\bin\win64\mkl.dll+07794577 xerbla+05791681
[ 5] 0x00000000b36cebf6 C:\Program Files\MATLAB\R2013b\bin\win64\mkl.dll+07793654 xerbla+05790758
[ 6] 0x00000000b36ce9fd C:\Program Files\MATLAB\R2013b\bin\win64\mkl.dll+07793149 xerbla+05790253
[ 7] 0x00000000b3038cb4 C:\Program Files\MATLAB\R2013b\bin\win64\mkl.dll+00887988 mkl_cbwr_set+00504148
[ 8] 0x00000000681b0a60 C:\Program Files\MATLAB\R2013b\bin\win64\libmwmathlinalg.dll+00133728 FactorObject::create+00069600
[ 9] 0x00000000681b0f3a C:\Program Files\MATLAB\R2013b\bin\win64\libmwmathlinalg.dll+00134970 FactorObject::create+00070842
[ 10] 0x000000018000d7ff C:\Program Files\MATLAB\R2013b\bin\win64\m_dispatcher.dll+00055295 Mfh_file::dispatch_fh+00001167
[ 11] 0x000000018000ddb7 C:\Program Files\MATLAB\R2013b\bin\win64\m_dispatcher.dll+00056759 Mfunction_handle::dispatch+00000487
[ 12] 0x00000000051468a7 C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+00420007 inFunctionHandleInterface::DestroyWorkspace+00242727
[ 13] 0x0000000005149b38 C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+00432952 inFunctionHandleInterface::DestroyWorkspace+00255672
[ 14] 0x0000000005146538 C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+00419128 inFunctionHandleInterface::DestroyWorkspace+00241848
[ 15] 0x000000000514feaf C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+00458415 inFunctionHandleInterface::DestroyWorkspace+00281135
[ 16] 0x0000000005152e23 C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+00470563 inFunctionHandleInterface::DestroyWorkspace+00293283
[ 17] 0x000000000513b85f C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+00374879 inFunctionHandleInterface::DestroyWorkspace+00197599
[ 18] 0x000000000513b7c8 C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+00374728 inFunctionHandleInterface::DestroyWorkspace+00197448
[ 19] 0x000000000515ebbd C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+00519101 inFunctionHandleInterface::DestroyWorkspace+00341821
[ 20] 0x000000000515b5cc C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+00505292 inFunctionHandleInterface::DestroyWorkspace+00328012
[ 21] 0x000000000513e529 C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+00386345 inFunctionHandleInterface::DestroyWorkspace+00209065
[ 22] 0x000000018000d612 C:\Program Files\MATLAB\R2013b\bin\win64\m_dispatcher.dll+00054802 Mfh_file::dispatch_fh+00000674
[ 23] 0x000000018000defa C:\Program Files\MATLAB\R2013b\bin\win64\m_dispatcher.dll+00057082 Mfunction_handle::dispatch+00000810
[ 24] 0x0000000005156a81 C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+00486017 inFunctionHandleInterface::DestroyWorkspace+00308737
[ 25] 0x00000000051e0657 C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+01050199 inEachVisibleName+00015383
[ 26] 0x00000000051546c2 C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+00476866 inFunctionHandleInterface::DestroyWorkspace+00299586
[ 27] 0x000000000513b85f C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+00374879 inFunctionHandleInterface::DestroyWorkspace+00197599
[ 28] 0x000000000513b7c8 C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+00374728 inFunctionHandleInterface::DestroyWorkspace+00197448
[ 29] 0x000000000515ebbd C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+00519101 inFunctionHandleInterface::DestroyWorkspace+00341821
[ 30] 0x000000000515b5cc C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+00505292 inFunctionHandleInterface::DestroyWorkspace+00328012
[ 31] 0x000000000513e529 C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+00386345 inFunctionHandleInterface::DestroyWorkspace+00209065
[ 32] 0x000000018000d612 C:\Program Files\MATLAB\R2013b\bin\win64\m_dispatcher.dll+00054802 Mfh_file::dispatch_fh+00000674
[ 33] 0x000000018000defa C:\Program Files\MATLAB\R2013b\bin\win64\m_dispatcher.dll+00057082 Mfunction_handle::dispatch+00000810
[ 34] 0x00000000051f438e C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+01131406 inSetWorkSpaces+00001262
[ 35] 0x00000000052006f5 C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+01181429 SetInterpreter+00000325
[ 36] 0x0000000005202cb5 C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+01191093 inEvalCmd+00008789
[ 37] 0x0000000005202c82 C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+01191042 inEvalCmd+00008738
[ 38] 0x0000000005202c47 C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+01190983 inEvalCmd+00008679
[ 39] 0x00000000055ead0c C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+05287180 inMexPutVariable+00008364
[ 40] 0x00000000055eb066 C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+05288038 inMexPutVariable+00009222
[ 41] 0x00000000055eb49e C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+05289118 inMexPutVariable+00010302
[ 42] 0x00000000055eb7dc C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+05289948 inMexPutVariable+00011132
[ 43] 0x00000000054fff91 C:\Program Files\MATLAB\R2013b\bin\win64\m_interpreter.dll+04325265 inEvalCmdWithLocalReturn+00000065
[ 44] 0x000000006c71be9d C:\Program Files\MATLAB\R2013b\bin\win64\libmwbridge.dll+00048797 mnDebugPrompt+00000109
[ 45] 0x000000006c71cf7f C:\Program Files\MATLAB\R2013b\bin\win64\libmwbridge.dll+00053119 mnParser+00000735
[ 46] 0x000000006e4ff4b4 C:\Program Files\MATLAB\R2013b\bin\win64\mcr.dll+00193716 mcrInstance::mnParser_on_interpreter_thread+00000036
[ 47] 0x000000006e4e44b0 C:\Program Files\MATLAB\R2013b\bin\win64\mcr.dll+00083120 mcr::runtime::setInterpreterThreadToCurrent+00029472
[ 48] 0x000000006e4e4510 C:\Program Files\MATLAB\R2013b\bin\win64\mcr.dll+00083216 mcr::runtime::setInterpreterThreadToCurrent+00029568
[ 49] 0x000000006b01fa96 C:\Program Files\MATLAB\R2013b\bin\win64\uiw.dll+00391830 UIW_IsUserMessage+00000086
[ 50] 0x000000006b020175 C:\Program Files\MATLAB\R2013b\bin\win64\uiw.dll+00393589 UIW_SetGLIMUserMsg+00000117
[ 51] 0x000000006b0201f9 C:\Program Files\MATLAB\R2013b\bin\win64\uiw.dll+00393721 UIW_SetGLIMUserMsg+00000249
[ 52] 0x000007f91a0e1802 C:\WINDOWS\system32\USER32.dll+00202754 EnumDisplaySettingsExA+00000674
[ 53] 0x000007f91a0b17b5 C:\WINDOWS\system32\USER32.dll+00006069 DispatchMessageW+00000661
[ 54] 0x000007f91a0b1826 C:\WINDOWS\system32\USER32.dll+00006182 DispatchMessageW+00000774
[ 55] 0x000007f91cb54b67 C:\WINDOWS\SYSTEM32\ntdll.dll+00019303 KiUserCallbackDispatcher+00000031
[ 56] 0x000007f91a0b120a C:\WINDOWS\system32\USER32.dll+00004618 TranslateMessage+00000074
[ 57] 0x000007f91a0b1250 C:\WINDOWS\system32\USER32.dll+00004688 TranslateMessage+00000144
[ 58] 0x000007f91a0b56f0 C:\WINDOWS\system32\USER32.dll+00022256 DispatchMessageA+00000048
[ 59] 0x000000006aff94db C:\Program Files\MATLAB\R2013b\bin\win64\uiw.dll+00234715 UIW_SetCurrentDialog+00000731
[ 60] 0x000000006b021632 C:\Program Files\MATLAB\R2013b\bin\win64\uiw.dll+00398898 ws_FreeSystemFont+00000482
[ 61] 0x000000006f156600 C:\Program Files\MATLAB\R2013b\bin\win64\libmwservices.dll+01009152 services::system_events::PpeDispatchHook::~PpeDispatchHook+00055552
[ 62] 0x000000006f156fc5 C:\Program Files\MATLAB\R2013b\bin\win64\libmwservices.dll+01011653 services::system_events::PpeDispatchHook::~PpeDispatchHook+00058053
[ 63] 0x000000006f157e10 C:\Program Files\MATLAB\R2013b\bin\win64\libmwservices.dll+01015312 services::system_events::PpeDispatchHook::~PpeDispatchHook+00061712
[ 64] 0x000000006f160596 C:\Program Files\MATLAB\R2013b\bin\win64\libmwservices.dll+01050006 sysq::removeProcessPendingEventsHook+00010998
[ 65] 0x000000006f16089a C:\Program Files\MATLAB\R2013b\bin\win64\libmwservices.dll+01050778 svWS_ProcessPendingEvents+00000138
[ 66] 0x000000006e4e552d C:\Program Files\MATLAB\R2013b\bin\win64\mcr.dll+00087341 mcr::runtime::setInterpreterThreadToCurrent+00033693
[ 67] 0x000000006e4e57fb C:\Program Files\MATLAB\R2013b\bin\win64\mcr.dll+00088059 mcr::runtime::setInterpreterThreadToCurrent+00034411
[ 68] 0x000000006e4d9545 C:\Program Files\MATLAB\R2013b\bin\win64\mcr.dll+00038213 mcrInstantiationError::operator=+00003221
[ 69] 0x000000006e4dc872 C:\Program Files\MATLAB\R2013b\bin\win64\mcr.dll+00051314 mcr_invoke_on_interpreter_thread+00001602
[ 70] 0x000000006e4e98e6 C:\Program Files\MATLAB\R2013b\bin\win64\mcr.dll+00104678 mcrDesktopMain+00000230
[ 71] 0x0000000140004f0b C:\Program Files\MATLAB\R2013b\bin\win64\matlab.exe+00020235
[ 72] 0x0000000140006a07 C:\Program Files\MATLAB\R2013b\bin\win64\matlab.exe+00027143
[ 73] 0x000007f919f7167e C:\WINDOWS\system32\KERNEL32.DLL+00005758 BaseThreadInitThunk+00000026
[ 74] 0x000007f91cbad609 C:\WINDOWS\SYSTEM32\ntdll.dll+00382473 RtlUserThreadStart+00000033
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.** This crash report has been saved to disk as C:\Users\IVANSA~1\AppData\Local\Temp\matlab_crash_dump.1600-1 **
  2 Comments
Walter Roberson
Walter Roberson on 16 May 2017
Ivan:
You appear to have an AMD Jaguar cpu. There was a problem using it with MKL in your release. See https://www.mathworks.com/support/bugreports/1043644
barzan shahmoradi
barzan shahmoradi on 27 Jul 2021
thanks a lot.... This problem took my two days and finally i solve it from this answer

Sign in to comment.

More Answers (1)

Steven Lord
Steven Lord on 14 Oct 2015
Please send the script, any crash log file that was created, and the output of VER on your machine to Technical Support using the Contact Us link in the upper-right corner of mathworks.com so Support can investigate the cause of the crash.

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!