<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2002/07/3998b4f8a6bcd42dfd813bab6ceab773"
  from="Yaron M. Minsky &lt;yminsky@C...&gt;"
  author="Yaron M. Minsky"
  date="2002-07-11T23:52:33"
  subject="[Caml-list] Out-of-memory faults and other cygwin issues"
  prev="2002/07/a21a051c2bda69072eb264609e3ff056"
  next="2002/07/dbfec6e6c78b9bded48851c3df37c4cd"
  next-in-thread="2002/07/dbfec6e6c78b9bded48851c3df37c4cd"
  prev-thread="2002/07/f73aa69f24206e81ba402635bcb20ea7"
  next-thread="2002/07/4e07fd5ea13c7b76f164f1ee5265fa6c"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Out-of-memory faults and other cygwin issues">
<msg 
  url="2002/07/3998b4f8a6bcd42dfd813bab6ceab773"
  from="Yaron M. Minsky &lt;yminsky@C...&gt;"
  author="Yaron M. Minsky"
  date="2002-07-11T23:52:33"
  subject="[Caml-list] Out-of-memory faults and other cygwin issues">
<msg 
  url="2002/07/dbfec6e6c78b9bded48851c3df37c4cd"
  from="Yaron M. Minsky &lt;yminsky@C...&gt;"
  author="Yaron M. Minsky"
  date="2002-07-12T00:15:39"
  subject="Re: [Caml-list] Out-of-memory faults and other cygwin issues">
</msg>
<msg 
  url="2002/07/1cae46f000eae6265af63fc4f16d7bc5"
  from="Basile STARYNKEVITCH &lt;basile@s...&gt;"
  author="Basile STARYNKEVITCH"
  date="2002-07-12T06:05:59"
  subject="[Caml-list] Out-of-memory faults and other cygwin issues">
<msg 
  url="2002/07/b24ddcb6b77c10a5bc5756a44a502865"
  from="Yaron M. Minsky &lt;yminsky@C...&gt;"
  author="Yaron M. Minsky"
  date="2002-07-12T01:22:35"
  subject="Re: [Caml-list] Out-of-memory faults and other cygwin issues">
</msg>
</msg>
<msg 
  url="2002/07/b6e4e7a43ccd8fc154fb4bdd8fc4711e"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2002-07-12T13:58:18"
  subject="Re: [Caml-list] Out-of-memory faults and other cygwin issues">
</msg>
</msg>
</thread>

<contents>
Does anyone know what triggers ocaml to crash on an "out-of-memory"
error?  I'm currently using ocaml on cygwin, and I find that my program
often crashes after the memory size reaches about ~200 megs.  This
happened on a machine with a gig of ram and that didn't have all that
much else running.

Another thing I've noticed is that ocaml doesn't seem to collect memory
at the times I expect it to.  In particular, after clearing all
references to the big memory structures and running Gc.full_major and
Gc.collect (in that order), the memory size (as measured by the Windows
task manager) doesn't immediately go down.  It's possible that I've
neglected to clear my memory references, but I don't think that's it. 

Another odd and regrettable thing I've noticed about ocaml-on-cygwin is
that when it crashes with a stack error, on cygwin it does so
silently--no error message at all.  Anyone know if this is something
that can be worked around?

Thanks in advance,
y

-- 
|--------/            Yaron M. Minsky              \--------|
|--------\ http://www.cs.cornell.edu/home/yminsky/ /--------|

Open PGP --- KeyID B1FFD916 (new key as of Dec 4th)
Fingerprint: 5BF6 83E1 0CE3 1043 95D8 F8D5 9F12 B3A9 B1FF D916

-------------------
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

</contents>

</message>

