Frama-C Bug Tracking System - Frama-C
View Issue Details
0002126Frama-CPlug-in > wppublic2015-06-02 08:522016-01-26 08:43
virgile 
correnson 
normalmajoralways
closedfixed 
Frama-C GIT, precise the release id 
Frama-C Magnesium 
0002126: WP crashes on generation of PO for assigns clause (assertion failure in MemVar.ml)
On the example source below, frama-c -wp reduced.i crashes with the following error: File "src/wp/MemVar.ml", line 491, characters 54-60: Assertion failed Apparently (by inferring why the offending function in MemVar got called), the p1+0 in the assigns for fn1 leads WP to think that p1 should be instantiated with an array (in particular, if you remove the +0, everything is fine). -- reduced.i /*@ assigns *(p1); */ int fn1(char *p1); /*@ assigns \nothing; */ void fn2(void) { char pcr_index; fn1(&pcr_index); }
No tags attached.
Issue History
2015-06-02 08:52virgileNew Issue
2015-06-02 08:52virgileStatusnew => assigned
2015-06-02 08:52virgileAssigned To => correnson
2015-06-02 08:53virgileRelationship addedhas duplicate 0002124
2015-06-29 16:42corrensonNote Added: 0005951
2015-06-29 16:42corrensonStatusassigned => resolved
2015-06-29 16:42corrensonFixed in Version => Frama-C Magnesium
2015-06-29 16:42corrensonResolutionopen => fixed
2016-01-26 08:43signolesStatusresolved => closed

Notes
(0005951)
correnson   
2015-06-29 16:42   
Proved by Qed.