On Mon, Nov 15, 2010 at 08:00:05PM +0100, Anil Madhavapeddy wrote:

> The runtime can detect native stack overflow if the OS supports
> it. See the HAS_STACK_OVERFLOW_DETECTION define in the configure
> script :

$ grep HAS_STA config/s.h
#define HAS_STACK_OVERFLOW_DETECTION

$ cat > segfault.ml
let rec ints n = n :: ints (n+1)
let _ = ints 0

$ ocamlopt segfault.ml 

$ ./a.out
Segmentation fault

-- 
Daniel de Rauglaudre
http://pauillac.inria.fr/~ddr/

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to