#2973: In ghci, loadObj fails after :cd for compiled module
-----------------------------+----------------------------------------------
Reporter: sanders_n | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.10.1 | Severity: normal
Keywords: | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
-----------------------------+----------------------------------------------
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
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2973>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs