> Excessive recursion of a function does raise an exception, on most
> platforms, doesn't it?

ja...@jamie-aspire:~$ uname -a
Linux jamie-aspire 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16
20:36:48 UTC 2010 i686 GNU/Linux
ja...@jamie-aspire:~$ ocaml -version
The Objective Caml toplevel, version 3.11.2
ja...@jamie-aspire:~$ cat > segfault.ml
let rec ints n = n :: ints (n+1)
let _ = ints 0
ja...@jamie-aspire:~$ ocamlopt segfault.ml
ja...@jamie-aspire:~$ ./a.out
Segmentation fault

[r...@senldogo0183 texsearch-development2]# uname -a
Linux senldogo0183 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007
x86_64 x86_64 x86_64 GNU/Linux
[r...@senldogo0183 texsearch-development2]# ocaml -version
The Objective Caml toplevel, version 3.12.0
[r...@senldogo0183 texsearch-development2]# cat > segfault.ml
let rec ints n = n :: ints (n+1)
let _ = ints 0
[r...@senldogo0183 texsearch-development2]# ocamlopt segfault.ml
[r...@senldogo0183 texsearch-development2]# ./a.out
Segmentation fault

_______________________________________________
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