+1
0
-1

Frequent "Segmentation Violation" raised signals with no apparent reason

=====> During testing with Vector Cast a C application for TI microcontrollers I am getting with some frequency "Signal Raised: Segmentation Violation" signals. The main problem is...

Posting in: 

4 Answers:

+1
0
-1

Maybe I'm missing something, but I didn't see where you were passing in a value for the "Value" ptr.  When a seg fault occurs, you can't always be guaranteed that the coverage data is 100% correct...

+1
+1
-1

Thanks, Craig.
value is a pointer to the location where result should be left on exit (in line 15 if result OK, in 19 in case of overflow). Prior to running the test I checked that it had...

+1
0
-1

I understand that Value is a pointer, but I did not see it allocated in your script.  Maybe you didn't include all of the script?  I see where "filtered" is set to 0, but I don't see where Value...

+1
0
-1

Sorry, it probably does not appear in the script because I saved it before allocating it manually in the test case parameters window.

After more checks, it seems that the problem is in...