[GHC] #8062: Panic "Lookup local fingerprint main:Main.main{v r6xE}"

#8062: Panic "Lookup local fingerprint main:Main.main{v r6xE}" ------------------------------------+--------------------------------- Reporter: tommd | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Keywords: | Operating System: Linux Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+--------------------------------- When compiling some quickcheck tests for a larger internal project I receive the following error on my x86-64 Linux 3.10 system: {{{ ghc: panic! (the 'impossible' happened) (GHC version 7.6.3 for x86_64-unknown-linux): urk! lookup local fingerprint main:Main.main{v r6xE} Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} System info: {{{ $ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.6.3 $ uname -a Linux Vodka 3.9.6-200.fc18.x86_64 #1 SMP Thu Jun 13 18:56:55 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux $ gcc --version gcc (GCC) 4.7.2 20121109 (Red Hat 4.7.2-8) Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ ld --version GNU ld version 2.23.51.0.1-6.fc18 20120806 Copyright 2012 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty. }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8062 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8062: Panic "Lookup local fingerprint main:Main.main{v r6xE}" ---------------------------------+------------------------------------ Reporter: tommd | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Comment (by tommd): A slight modification of the code yields: {{{ ghc: panic! (the 'impossible' happened) (GHC version 7.6.3 for x86_64-unknown-linux): cgLookupPanic (probably invalid Core; try -dcore-lint) $dOneOfMyClasses{v a3yU} [lid] static binds for: local binds for: }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8062#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8062: Panic "Lookup local fingerprint main:Main.main{v r6xE}" ---------------------------------+------------------------------------ Reporter: tommd | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Comment (by simonpj): That is a bug, but we can't fix it without a way to reproduce it, sadly. `-dcore-lint` will probably give a more informative error than the `cgLookupPanic` but I doubt it'll be enough to nail it. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8062#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8062: Panic "Lookup local fingerprint main:Main.main{v r6xE}" ---------------------------------+------------------------------------ Reporter: tommd | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Changes (by tommd): * status: new => closed * resolution: => fixed Comment: This is fixed in head, though the error message is a bit odd. For the curious, a working example is: {{{ {-# LANGUAGE FlexibleInstances, MultiParamTypeClasses, TypeFamilies #-} main = do bench bar :: IO Int return () -- Run the monad, applying the value bench :: Pr c -> IO c bench = undefined -- Protocol monad newtype Pr a = Pr a -- Shared newtype Cont a = Cont a type family S (m :: * -> *) :: * -> * type instance S Pr = Cont bar :: Pr (S Pr a) bar = undefined }}} I'll close the ticket now. Thanks to emertens for working to build the example and test HEAD. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8062#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8062: Panic "Lookup local fingerprint main:Main.main{v r6xE}" ---------------------------------+------------------------------------ Reporter: tommd | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Comment (by simonpj): Interesting. What's the sequence that produces the odd message, and in what way is it odd? Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8062#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC