How to determine a reason of the error "Segmentation violation" and to fix it
2 次查看(过去 30 天)
显示 更早的评论
I am simulating a model in Simulink iteratively substituting different parameters and eventually got the error:
------------------------------------------------------------------------ Segmentation violation detected at Tue Mar 18 15:55:38 2014 ------------------------------------------------------------------------
Configuration: Crash Decoding : Disabled Default Encoding: windows-1252 MATLAB Root : C:\Program Files (x86)\MATLAB\R2011b MATLAB Version : 7.13.0.564 (R2011b) 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™ Client VM mixed mode Window System : Version 6.1 (Build 7601: Service Pack 1)
Fault Count: 5
Abnormal termination: Segmentation violation
Register State (from fault): EAX = 00000000 EBX = 34561b68 ECX = 765d14d0 EDX = 00000000 ESP = 3f96f918 EBP = 3f96f924 ESI = 00000000 EDI = 00000000
EIP = 40fbfe64 EFL = 00010246
CS = 00000023 DS = 0000002b SS = 0000002b
ES = 0000002b FS = 00000053 GS = 0000002b
Stack Trace (from fault): [ 0] 0x40fbfe64 ýv +1066843436
Abnormal termination: Segmentation violation
Register State (from fault): EAX = 00000000 EBX = 3458f8c8 ECX = 765d14d0 EDX = 00000000 ESP = 4b30fce8 EBP = 4b30fcf4 ESI = 00000000 EDI = 00000000
EIP = 417bfe64 EFL = 00010246
CS = 00000023 DS = 0000002b SS = 0000002b
ES = 0000002b FS = 00000053 GS = 0000002b
Stack Trace (from fault): [ 0] 0x417bfe64 C:\Program Files (x86)\MATLAB\R2011b\bin\win32\MATLAB.exe+1098645092 ???+000000
Abnormal termination: Segmentation violation
Register State (from fault): EAX = 00000000 EBX = 3458f8c8 ECX = 765d14d0 EDX = 00000000 ESP = 4bb0f838 EBP = 4bb0f844 ESI = 00000000 EDI = 00000000
EIP = 417bfe64 EFL = 00010246
CS = 00000023 DS = 0000002b SS = 0000002b
ES = 0000002b FS = 00000053 GS = 0000002b
Stack Trace (from fault): [ 0] 0x417bfe64 C:\Program Files (x86)\MATLAB\R2011b\bin\win32\MATLAB.exe+1098645092 ???+000000
Abnormal termination: Segmentation violation
Register State (from fault): EAX = 00000000 EBX = 3a567ee0 ECX = 765d14d0 EDX = 00000000 ESP = 5cf2fbb0 EBP = 5cf2fbbc ESI = 00000000 EDI = 00000000
EIP = 417bfe64 EFL = 00010246
CS = 00000023 DS = 0000002b SS = 0000002b
ES = 0000002b FS = 00000053 GS = 0000002b
Stack Trace (from fault): [ 0] 0x417bfe64 C:\Program Files (x86)\MATLAB\R2011b\bin\win32\MATLAB.exe+1098645092 ???+000000
Abnormal termination: Segmentation violation
Register State (from fault): EAX = 00000000 EBX = 3a59dc38 ECX = 765d14d0 EDX = 00000000 ESP = 62a2fd5c EBP = 62a2fd68 ESI = 00000000 EDI = 00000000
EIP = 417bfe64 EFL = 00010246
CS = 00000023 DS = 0000002b SS = 0000002b
ES = 0000002b FS = 00000053 GS = 0000002b
Stack Trace (from fault): [ 0] 0x417bfe64 C:\Program Files (x86)\MATLAB\R2011b\bin\win32\MATLAB.exe+1098645092 ???+000000
Please, help me to fix it.
0 个评论
回答(1 个)
Srinivas
2014-3-18
Are using Simulink Design optimization, in that case may be you are running into a negative square root in the model. Make sure you have a check for all the square root calculations.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Instrument Connection and Communication 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!