amnh / PCG

𝙋𝙝𝙮𝙡𝙤𝙜𝙚𝙣𝙚𝙩𝙞𝙘 𝘾𝙤𝙢𝙥𝙤𝙣𝙚𝙣𝙩 𝙂𝙧𝙖𝙥𝙝 ⸺ Haskell program and libraries for general phylogenetic graph search
28 stars 1 forks source link

Segfault while running with multiple threads...? #53

Closed recursion-ninja closed 7 years ago

recursion-ninja commented 7 years ago

Ran PCG on the flu dataset with 6/8 threads on my laptop and got a segfault after 2 minutes of (real) execution time.

Not sure what caused this, but work being aware of and investigating if it is reproducible.

recursion-ninja commented 7 years ago

This seemed to be, almost certainly, probably mostly, related to the Data.Hashable.Memoize module. It used unsafePerformIO in an unsafe way. I thought it would be safe, it wasn't. Oops.

I'll spend a little bit of probing around to make sure the SEGFAULT is no longer occurring now that the Data.Hashable.Memoize module is removed from the codebase.

recursion-ninja commented 7 years ago

Seems that Data.Hashable.Memoize was the cause of the SEGFAULT from my testing.