I think it is an OCaml bug. It can be easily reproduced with the following code in OCaml (HOL Light is not required at all) (tested with OCaml 4.06.1 and 4.07):
let rec f =
let s t = t in
let rec f t = s t
and g a = a in
f;;
Gc.minor();;
f 0;;
This code crashes OCaml with "Segmentation fault: 11" (both the toplevel and the compiled code).
I think it is an OCaml bug. It can be easily reproduced with the following code in OCaml (HOL Light is not required at all) (tested with OCaml 4.06.1 and 4.07):
This code crashes OCaml with "Segmentation fault: 11" (both the toplevel and the compiled code).