What is a Segmentation violation?

Hi,
I got a simulink model which gives me an segmentation violation error when I want to simulate. I cannot find the cause. And not knowing what that error actually means, makes it even harder to find the cause.
So what is an segmentation violation and how can it be caused?
Help is appreciated

댓글 수: 5

Kaustubha Govind
Kaustubha Govind 2013년 4월 3일
Do you have any C/FORTRAN S-functions in your model? Since these are typically user-written binaries, there may be several causes for SegV in them, which can be found out by debugging. If you are only using Simulink library blocks, then you may want to report this as a bug to MathWorks Tech Support.
Stephan
Stephan 2013년 4월 4일
No I don't have user written s-functions. Only one custom simscape block. But even when I remove that block, the model keeps crashing. I use Simulink, Simscape, Simmechanics and Stateflow blocks. After Matlab crashed I clicked on send to send the report to the Mathworks.
Kaustubha Govind
Kaustubha Govind 2013년 4월 4일
Stephan: If you are able to share your model, I would recommend reporting it as a bug to MathWorks Tech Support. It might be best to start by trimming your model to see if you can figure out which block or combination of blocks causes the crash. Thanks!
Stephan
Stephan 2013년 4월 8일
yes, how can I share it? I dont see any button to submit a file or something similar.
Image Analyst
Image Analyst 2013년 4월 8일
Send an email to support@mathworks.com. Attach your files.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Configure and View Diagnostics에 대해 자세히 알아보기

제품

질문:

2013년 4월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by