Hi Bulat and others,<br><br>&nbsp;&nbsp;&nbsp;&nbsp; Basically I am testing my Posix timer bindings. When a timer is created via timer_create( <a href="http://www.opengroup.org/onlinepubs/009695399/functions/timer_create.html">http://www.opengroup.org/onlinepubs/009695399/functions/timer_create.html</a>), it is possible to pass a sigevent struct. When I specify sigev_notify as NONE OR SIGNAL, all is well. When I specify sigev_notify as THREAD which causes a callback to a Haskell function that I specify, then sometimes I get a core dump due to SIGABRT or an internal error in the Haskell run time library. Many times when I run as sigev_notify==THREAD every thing seems to be OK. I am trying to come up with ideas of what is wrong. I know there are constraints on what can be called from a sigevent callback function. Unfortunately I don&#39;t know anything about the ghc runtime model. ???<br>
<br>Vasili <br><br><div class="gmail_quote">On Mon, Jun 30, 2008 at 10:19 AM, Bulat Ziganshin &lt;<a href="mailto:bulat.ziganshin@gmail.com">bulat.ziganshin@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Vasili,<br>
<div class="Ih2E3d"><br>
Sunday, June 29, 2008, 11:09:51 AM, you wrote:<br>
<br>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; When I run my test case, I get<br>
<br>
&gt; timer: internal error: scavenge: unimplemented/strange closure type 60 @ 0x76a28400<br>
<br>
</div>if you run low-level code that directly modifies memory via FFI<br>
functions, it&#39;s more probable that error is just in your code<br>
<font color="#888888"><br>
--<br>
Best regards,<br>
&nbsp;Bulat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mailto:<a href="mailto:Bulat.Ziganshin@gmail.com">Bulat.Ziganshin@gmail.com</a><br>
<br>
</font></blockquote></div><br>