Original bug ID: 5109
Reporter: monate
Assigned to: @xavierleroy
Status: closed (set by @xavierleroy on 2012-03-24T14:01:41Z)
Resolution: fixed
Priority: normal
Severity: crash
Version: 3.12.0+beta1 or 3.12.0+rc1
Fixed in version: 3.12.1+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: phillyg mehdi "Pascal Cuoq" @glondu "Julien Signoles" prevosto
Bug description
Dear OCaml developers,
The code contained in the tar file available at
http://frama-c.com/framac_stripped_bug.tar.bz2
produces a deterministic segmentation fault.
It can be reproduced using:
./configure
make
bin/toplevel.byte bug.c
I tried to recompile OCaml 3.11.1 with #define DEBUG added in byterun/gc_ctrl.c but the heap consistency checks are ok.
Using ocamldebug a backtrace is available and seems to indicate that the call to Cil_const.CurrentLoc fails.
Strangely if one removes the line 63 of cil/src/cil_const.ml the bug disappears.
Do not hesitate to ask for more advanced tests from me.
Cheers,
Benjamin
File attachments