[GHC] #7965: The 'impossible' happened!

#7965: The 'impossible' happened! -------------------------------+-------------------------------------------- Reporter: adit | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.4.1 | Keywords: Os: MacOS X | Architecture: x86_64 (amd64) Failure: Compile-time crash | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- I'm working on a haskell package (code here: https://github.com/egonschiele/rdioh) and when I try to build it I get this error consistently: In order, the following will be installed: rdioh-0.1.1 (reinstall) changes: hspec-1.4.4 added Warning: Note that reinstalls are always dangerous. Continuing anyway... Configuring rdioh-0.1.1... Building rdioh-0.1.1... Preprocessing executable 'rdioh' for rdioh-0.1.1... [2 of 5] Compiling Rdioh.Models ( src/Rdioh/Models.hs, dist/build/rdioh/rdioh-tmp/Rdioh/Models.o ) ghc: panic! (the 'impossible' happened) (GHC version 7.4.1 for x86_64-apple-darwin): nameModule show{tv a1rK} Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug Failed to install rdioh-0.1.1 cabal: Error: some packages failed to install: rdioh-0.1.1 failed during the building phase. The exception was: ExitFailure 1 make: *** [all] Error 1 I'm on OSX v 10.8.2. Darwin Kernel Version 12.2.1: Thu Oct 18 12:13:47 PDT 2012; root:xnu-2050.20.9~1/RELEASE_X86_64 x86_64 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7965 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7965: The 'impossible' happened! -------------------------------+-------------------------------------------- Reporter: adit | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.4.1 | Keywords: Os: MacOS X | Architecture: x86_64 (amd64) Failure: Compile-time crash | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Comment(by adit): Ok, I was able to narrow it down to two lines: data Color = Red | Blue deriving (show) main = print Red see that `deriving (show)` with `show` lowercase? That's what's causing the bug. I haven't tried this with 7.6, so apologies if it was already fixed. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7965#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7965: The 'impossible' happened! ---------------------------------+------------------------------------------ Reporter: adit | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.4.1 Resolution: duplicate | Keywords: Os: MacOS X | Architecture: x86_64 (amd64) Failure: Compile-time crash | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: ---------------------------------+------------------------------------------ Changes (by simonpj): * status: new => closed * difficulty: => Unknown * resolution: => duplicate Comment: Thanks. Yes, it's GHC's most often-reported bug (just search the Trac), and is long fixed. It's impressive how often people stumble upon it. "deriving" is clearly a useful feature! Simon -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7965#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7965: The 'impossible' happened! ---------------------------------+------------------------------------------ Reporter: adit | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.4.1 Resolution: duplicate | Keywords: Os: MacOS X | Architecture: x86_64 (amd64) Failure: Compile-time crash | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: ---------------------------------+------------------------------------------ Comment(by Fuuzetsu): Ironically, I had the impossible happen when installing the dependencies for the OP's project with GHC 7.7.20130531. {{{ [1 of 1] Compiling Data.Digest.Pure.SHA ( Data/Digest/Pure/SHA.hs, dist/build/Data/Digest/Pure/SHA.o ) ghc: panic! (the 'impossible' happened) (GHC version 7.7.20130531 for i386-unknown-linux): regSpill: out of spill slots! regs to spill = 1099 slots left = 677 }}} Do you want a separate bug report? -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7965#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7965: The 'impossible' happened! ---------------------------------+------------------------------------------ Reporter: adit | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.4.1 Resolution: duplicate | Keywords: Os: MacOS X | Architecture: x86_64 (amd64) Failure: Compile-time crash | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: ---------------------------------+------------------------------------------ Comment(by simonpj): Hmm. At first it looks like a dup of #5869 and #5361, but those are allegedly fixed, whereas you say this happens in HEAD. So yes, please open a ticket with repro instructions. Thanks Simon -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7965#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7965: The 'impossible' happened! ---------------------------------+------------------------------------------ Reporter: adit | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.4.1 Resolution: duplicate | Keywords: Os: MacOS X | Architecture: x86_64 (amd64) Failure: Compile-time crash | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: ---------------------------------+------------------------------------------ Comment(by Fuuzetsu): You're right, this is actually a dupe of #5361. #5361 was marked as fixed but it was re-opened by someone with the same issue. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7965#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC