<div class="gmail_quote">On Wed, Oct 5, 2011 at 2:37 PM, Tom Thorne <span dir="ltr"><<a href="mailto:thomas.thorne21@gmail.com">thomas.thorne21@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
The only problem is that now I am getting random occasional segmentation faults that I was not been getting before, and once got a message saying:<div><font face="'courier new', monospace">Main: schedule: re-entered unsafely</font></div>
<div><font face="'courier new', monospace">Perhaps a 'foreign import unsafe' should be 'safe'?</font></div><div>I think this may be something to do with creating a lot of sparks though, since this occurs whether I have the parallel GC on or not.</div>
</blockquote><div><br>Unless you (or some library you're using) is doing what the error message says then you should file a GHC bug here:<br><br><a href="http://hackage.haskell.org/trac/ghc/">http://hackage.haskell.org/trac/ghc/</a><br>
<br>-- Johan<br> <br></div></div>