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't. I don't want to blame hmatrix since it is an excellent library but I can't rule it out and I'm not sure how to pinpoint where exactly it is happening.<div>
<br></div><div>I'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"><<a href="mailto:marlowsd@gmail.com">marlowsd@gmail.com</a>></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'll decide whether it's a bug or not. If it's a segfault, and you're not doing any FFI or unsafe stuff, and your hardware isn't faulty, then it's definitely a bug.<br>
<br>
Cheers,<br>
Simon<br><br></blockquote></div></div>