#3787: GHC 6.12.1 panic
---------------------------------+------------------------------------------
Reporter: blamario | Owner: simonmar
Type: bug | Status: new
Priority: high | Milestone: 6.12.2
Component: Compiler | Version: 6.12.1
Resolution: | Keywords: panic
Difficulty: | Os: Linux
Testcase: | Architecture: x86_64 (amd64)
Failure: Compile-time crash |
---------------------------------+------------------------------------------
Comment (by blamario):
I found a slightly different way to panic. This one is more bothersome
because it occurs when I try compiling (what I hope is) a correct and
usable module. Furthermore, the panic happens with or without
optimization. Even GHCi panics, though not when it loads the module but
later, when I try to run tests.
Here's what I get:
{{{
$ ghc --make Test.hs -o test -threaded -hidir obj -odir obj
[1 of 8] Compiling Control.Concurrent.SCC.Trampoline (
Control/Concurrent/SCC/Trampoline.hs,
obj/Control/Concurrent/SCC/Trampoline.o )
ghc: panic! (the 'impossible' happened)
(GHC version 6.12.1 for x86_64-unknown-linux):
initC: srt_lbl
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
$
$ ghci '*Test'
GHCi, version 6.12.1: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
[1 of 8] Compiling Control.Concurrent.SCC.Trampoline (
Control/Concurrent/SCC/Trampoline.hs, interpreted )
[2 of 8] Compiling Control.Concurrent.SCC.Types (
Control/Concurrent/SCC/Types.hs, interpreted )
[3 of 8] Compiling Control.Concurrent.SCC.Combinators (
Control/Concurrent/SCC/Combinators.hs, interpreted )
[4 of 8] Compiling Control.Concurrent.SCC.Primitives (
Control/Concurrent/SCC/Primitives.hs, interpreted )
[5 of 8] Compiling Control.Concurrent.SCC.XML (
Control/Concurrent/SCC/XML.hs, interpreted )
[6 of 8] Compiling Control.Concurrent.Configuration (
Control/Concurrent/Configuration.hs, interpreted )
[7 of 8] Compiling Control.Concurrent.SCC.Components (
Control/Concurrent/SCC/Components.hs, interpreted )
[8 of 8] Compiling Main ( Test.hs, interpreted )
Ok, modules loaded: Main, Control.Concurrent.Configuration,
Control.Concurrent.SCC.Trampoline, Control.Concurrent.SCC.Types,
Control.Concurrent.SCC.Combinators, Control.Concurrent.SCC.Components,
Control.Concurrent.SCC.XML, Control.Concurrent.SCC.Primitives.
*Main> main
Loading package syb-0.1.0.2 ... linking ... done.
Loading package base-3.0.3.2 ... linking ... done.
Loading package old-locale-1.0.0.2 ... linking ... done.
Loading package time-1.1.4 ... linking ... done.
Loading package random-1.0.0.2 ... linking ... done.
Loading package QuickCheck-1.2.0.0 ... linking ... done.
Loading package array-0.3.0.0 ... linking ... done.
Loading package containers-0.3.0.0 ... linking ... done.
Loading package mtl-1.1.0.2 ... linking ... done.
Loading package parallel-1.1.0.1 ... linking ... done.
ghc: panic! (the 'impossible' happened)
(GHC version 6.12.1 for x86_64-unknown-linux):
nameModule ds_d1YX{v}
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
}}}
I'll attach the modified module. It still contains lots of irrelevant
code, but it should be easy to trim. To reproduce the GHCi panic, you'll
need to get the current code from the Darcs repository at
[http://code.haskell.org/SCC/] and then replace the
Control.Concurrent.SCC.Trampoline module by the attached one.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3787#comment:3>
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