#5303: GHC crash (panic) with -O2 and nonexistent .hi -------------------------+-------------------------------------------------- Reporter: mornfall | Owner: Type: bug | Status: merge Priority: high | Milestone: 7.2.1 Component: Compiler | Version: 7.0.3 Keywords: | Testcase: simplCore/should_compile/T303 Blockedby: | Difficulty: Os: Linux | Blocking: Architecture: x86 | Failure: Compile-time crash -------------------------+-------------------------------------------------- Description changed by igloo:
Old description: > 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) New description: {{{ 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) -- -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5303#comment:7> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs