Thanks, I would except that my code, whilst pure, uses hmatrix, and hmatrix uses lapack internally and so presumably calls FFI functions. As far as I know lapack ought to be thread safe, but potentially the way it interfaces with haskell in hmatrix isn&#39;t. I don&#39;t want to blame hmatrix since it is an excellent library but I can&#39;t rule it out and I&#39;m not sure how to pinpoint where exactly it is happening.<div>
<br></div><div>I&#39;m going to try and modify my code to use a pure haskell implementation and see if the segfaults go away..</div><div><br><div class="gmail_quote">On Mon, Oct 10, 2011 at 4:25 PM, Simon Marlow <span dir="ltr">&lt;<a href="mailto:marlowsd@gmail.com">marlowsd@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br></div>
Please report the bug.  General rule: if in doubt, report it.  We&#39;ll decide whether it&#39;s a bug or not.  If it&#39;s a segfault, and you&#39;re not doing any FFI or unsafe stuff, and your hardware isn&#39;t faulty, then it&#39;s definitely a bug.<br>

<br>
Cheers,<br>
        Simon<br><br></blockquote></div></div>