Ticket #2973 (closed merge: fixed)
In ghci, loadObj fails after :cd for compiled module
| Reported by: | sanders_n | Owned by: | igloo |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.10.2 |
| Component: | Compiler | Version: | 6.10.1 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.
