<?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="2005/05/20438c0b2e980762a54275f588cde59a"
  from="Sami Liedes &lt;sliedes@c...&gt;"
  author="Sami Liedes"
  date="2005-05-31T01:15:39"
  subject="Re: [Caml-list] Assertion failure in ocamlrund"
  prev="2005/05/d298027f22c532037195c387de551c13"
  next="2005/05/1ca9bd6f3b9a39adfd50b76211716499"
  prev-in-thread="2005/05/ef899d958bf37b18084216cd3f3f5fd6"
  prev-thread="2005/05/0863ff06ae4cdb1a42c798a087362566"
  next-thread="2005/05/57f7e4b214ba52d8604a52ced7ef69ad"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Assertion failure in ocamlrund">
<msg 
  url="2005/05/83cd9b8e27af58d813bc4a1fbc7d22bd"
  from="Sami Liedes &lt;sliedes@c...&gt;"
  author="Sami Liedes"
  date="2005-05-27T19:31:15"
  subject="Assertion failure in ocamlrund">
<msg 
  url="2005/05/36a7c7e6b681bcc3183e9f8c2f890eda"
  from="Damien Doligez &lt;damien.doligez@i...&gt;"
  author="Damien Doligez"
  date="2005-05-27T21:13:18"
  subject="Re: [Caml-list] Assertion failure in ocamlrund">
<msg 
  url="2005/05/ef899d958bf37b18084216cd3f3f5fd6"
  from="Sami Liedes &lt;sliedes@c...&gt;"
  author="Sami Liedes"
  date="2005-05-27T22:10:54"
  subject="Re: [Caml-list] Assertion failure in ocamlrund">
</msg>
</msg>
<msg 
  url="2005/05/20438c0b2e980762a54275f588cde59a"
  from="Sami Liedes &lt;sliedes@c...&gt;"
  author="Sami Liedes"
  date="2005-05-31T01:15:39"
  subject="Re: [Caml-list] Assertion failure in ocamlrund">
</msg>
</msg>
</thread>

<contents>
On Fri, May 27, 2005 at 10:26:31PM +0300, Sami Liedes wrote:

&gt; After having ocamlrun segfault on my program (only when running with
&gt; OCAMLRUNPARAM=b, without b it reports an uncaught Not_found exception)
&gt; I compiled the debugging version of it, and this is what I get:
&gt; 
&gt; file freelist.c; line 123 ### Assertion failed: wo_sz &gt;= 1

Hi again,

I think I have narrowed down at least part of the problem now. It is
related to a file descriptor leak in the code; why this would cause
the above-mentioned assertion failure, I don't know, but I'd guess
it's not handled somewhere (symbol loading?).

Or perhaps that assertion failure is unrelated to the crash that
happens when running the non-debug version of ocamlrun with
OCAMLRUNPARAM=b. Somehow it seems that ocamlrund gets the assertion
failure _much_ quicker than the non-debug version segfaults.

Apparently this also causes the confusing claim by the runtime that in
the event of an unhandled exception a backtrace cannot be produced
because the program was compiled without debug symbols.

	Sami

</contents>

</message>

