Ticket #5303 (closed bug: fixed)
GHC crash (panic) with -O2 and nonexistent .hi
| Reported by: | mornfall | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | 7.2.1 |
| Component: | Compiler | Version: | 7.0.3 |
| Keywords: | Cc: | dimitris@… | |
| Operating System: | Linux | Architecture: | x86 |
| Type of failure: | Compile-time crash | Difficulty: | |
| Test Case: | simplCore/should_compile/T5303 | Blocked By: | |
| Blocking: | Related Tickets: |
Description (last modified by igloo) (diff)
14:13:47 | morn@ald:~/dev/darcs/prims-v3 -> ghc test.hs
[1 of 1] Compiling Test ( test.hs, test.o )
14:13:51 | morn@ald:~/dev/darcs/prims-v3 -> ghc -O2 test.hs
14:13:52 | morn@ald:~/dev/darcs/prims-v3 -> rm test.{hi,o}
14:14:03 | morn@ald:~/dev/darcs/prims-v3 -> ghc -O2 test.hs
[1 of 1] Compiling Test ( test.hs, test.o )
ghc: panic! (the 'impossible' happened)
(GHC version 7.0.3 for i386-unknown-linux):
funResultTy
<pred>main:Test.ApplyState{tc rrv} p{tv aBn} [sk]
~
hashed-storage-0.5.7:Storage.Hashed.Tree.Tree{tc r4Y}
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
I am attaching the test.hs that causes this. It needs hashed-storage and mtl from hackage to build, but otherwise it should be fairly minimal. I suppose I could cut it down further to only need mtl, but I already spent an hour tracking this down instead of getting work done. If you do need a further cutdown, let me know though, and I can try.
14:12:26 | morn@ald:~ -> ghc --version The Glorious Glasgow Haskell Compilation System, version 7.0.3
(GHC installed from Debian packages)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

