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 ExchangeConfigure 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