In ghci, loadObj fails after :cd for compiled module
I am using ghc 6.10.1 from MacPorts, upgraded recently from 6.8.?.
To cause the bug, enter: mkdir bug && pushd bug && echo 'module Bug where number = 12' >Bug.hs && ghc -c Bug.hs && popd && ghci
Inside ghci, do
:cd bug
:l Bug
number
This produces:
GHCi, version 6.10.1: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
Prelude> :cd bug
Prelude> :l Bug
Ok, modules loaded: Bug.
Prelude Bug> number
ghc: panic! (the 'impossible' happened)
(GHC version 6.10.1 for i386-apple-darwin):
loadObj: failed
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
Trac metadata
Trac field | Value |
---|---|
Version | 6.10.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |