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.
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