Interesting. I can't replicate this on a stock ocaml toplevel. It does occur, however, on a toplevel with vmthreads compiled in. I've attached the file foo.ml, as well as the output file with the appropriate OCAMLRUNPARAM value. I created the toplevel with this command: ocamlfind ocamlmktop -linkpkg -package threads -vmthread -o foocaml And then I got the error by running the command "./foocaml foo.ml". y On Mon, 26 Jul 2004 19:12:05 +0200, Xavier Leroy wrote: > > So, I've investigated this a little further, and it's a definite > > regression. Here's the function I used: > > [...] > > On 3.08, I get this: > > # run ~save:true ~load:true 1000000;; > > Out of memory during evaluation. > > # run ~save:true ~load:false 1000000;; > > Out of memory during evaluation. > > # run ~save:false ~load:false 1000000;; > > - : unit = () > > I cannot reproduce this behavior with 3.08 here. All three phrases > evaluate without Out_of_memory conditions. > > There have been no significant changes in the code for output_value > and input_value between 3.07 and 3.08. > > Could you investigate some more where the Out_of_memory comes from? > strace and OCAMLRUNPARAM='v=63' could give useful clues. > > Please use caml@inria.fr or caml-bugs@inria.fr to continue this discussion. > > - Xavier Leroy >