[GHC] #8484: Compile-time panic

#8484: Compile-time panic ----------------------------------+--------------------------------------- Reporter: Taymon | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Keywords: | Operating System: Linux Architecture: x86_64 (amd64) | Type of failure: Compile-time crash Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ----------------------------------+--------------------------------------- I attempted to build a program (using make) and got the following output: {{{ ghc -odir binaries -hidir binaries --make Main.hs -optl-w ghc: panic! (the 'impossible' happened) (GHC version 7.6.3 for x86_64-unknown-linux): While parsing "/home/taymonbeal/.ghc/x86_64-linux-7.6.3/package.conf.d/package.cache": too few bytes. Failed reading at byte position 8 Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug make: *** [build] Error 1 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8484 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8484: Compile-time panic ---------------------------------------+---------------------------------- Reporter: Taymon | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: Compile-time crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------------+---------------------------------- Comment (by hvr): what filesize does `/home/taymonbeal/.ghc/x86_64-linux-7.6.3/package.conf.d/package.cache` have? This kind of error usually occurs when the `package.cache` file is truncated to size 0 for some reason. (and calling `ghc-pkg recache --user` should fix this) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8484#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8484: Compile-time panic -------------------------------------+------------------------------------- Reporter: Taymon | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: worksforme | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: Compile- | Difficulty: Unknown time crash | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => closed * resolution: => worksforme Comment: Taymon: please re-open if you run into this problem again, ideally with a small testfile and steps to reproduce it. See [wiki:ReportABug]. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8484#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8484: Compile-time panic -------------------------------------+------------------------------------- Reporter: Taymon | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 Type of failure: Compile-time | (amd64) crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by zilinc): * status: closed => new * resolution: worksforme => Comment: {{{ zilinc@zilinc-dell-xps:~/research/haskell/panic-parsing$ cabal build --with-ghc=ghc-7.8.4 Building panic-parsing-0.1.0.0... Preprocessing executable 'panic-parsing' for panic-parsing-0.1.0.0... ghc: panic! (the 'impossible' happened) (GHC version 7.8.4 for x86_64-unknown-linux): While parsing "/home/zilinc/research/haskell/panic-parsing/.cabal- sandbox/x86_64-linux-ghc-7.10.2-packages.conf.d/package.cache": demandInput: not enough bytes Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} To reproduce it, I did: * create a new cabal package (`cabal init`), with a sandbox (`cabal sandbox init`) * create a Main module, can be as simple as: {{{#!hs module Main where main = putStrLn "done" }}} * create a `cabal.config` file, with {{{ with-compiler: ghc-7.10.2 with-hc-pkg: ghc-pkg-7.10.2 }}} * `cabal configure && cabal build`. everything should be okay so far * do `cabal build --with-ghc=ghc-7.8.4`, then I got panic What I did may not be correct, but either way `impossible` should not happen. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8484#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8484: Compile-time panic -------------------------------------+------------------------------------- Reporter: Taymon | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 Type of failure: Compile-time | (amd64) crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by bgamari): Ideally the package cache format would include a version number so we can fail more gracefully (if it doesn't already). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8484#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC