Skip to content

Segfaulting binary only with modules

tgz with 2 files attached: Math.hs and Main.hs. Math.hs contains some utility functions and Main.hs uses them. When compiling this (ghc --make Main) and running ./Main, it segfaults. But when putting everything from Math.hs in Main.hs (and hence eliminating the Math module) and compiling again, it does not segfault.

Note removing that the PRAGMA's in the Math.hs file does not change this behaviour.

Trac metadata
Trac field Value
Version 6.8.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information