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 Comments

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.
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.
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!
yes, how can I share it? I dont see any button to submit a file or something similar.
Send an email to support@mathworks.com. Attach your files.

Sign in to comment.

Answers (0)

Categories

Products

Asked:

on 3 Apr 2013

Community Treasure Hunt

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

Start Hunting!