Browse thread
[Caml-list] stack overflow
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | brogoff@s... |
| Subject: | Re: [Caml-list] stack overflow |
The most likely explanation is that you created a very large list, say of length over 50_000, and tried to apply some non-tail-recursive operation to it, perhaps even implicitly. There was a very recent thread on this topic. The second explanation is that you wrote some (non-tail) recursive function and it blew the stack. If you switch to the bytecode compiler and run with stack trace, you'll find out pretty quickly. -- Brian On Wed, 9 Apr 2003, Yang Shouxun wrote: > Dear OCaml users, > > I've written a modified version of C4.5 program in OCaml. However, when the > input is big, say over 50000, the program (native code on Debian) died for > stack overflow. Otherwise, it runs as expected. > > Can anybody explain possible reasons causing stack overflow in OCaml? > > Thanks for your time! > shouxun > > ------------------- > To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr > Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners