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 commentaires

Kaustubha Govind
Kaustubha Govind le 3 Avr 2013
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 le 4 Avr 2013
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 le 4 Avr 2013
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 le 8 Avr 2013
yes, how can I share it? I dont see any button to submit a file or something similar.
Image Analyst
Image Analyst le 8 Avr 2013
Send an email to support@mathworks.com. Attach your files.

Connectez-vous pour commenter.

Réponses (0)

Catégories

Produits

Question posée :

le 3 Avr 2013

Community Treasure Hunt

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

Start Hunting!

Translated by