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.

I'm going to try and modify my code to use a pure haskell implementation and see if the segfaults go away..

On Mon, Oct 10, 2011 at 4:25 PM, Simon Marlow <marlowsd@gmail.com> wrote:

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.

Cheers,
       Simon