[GHC] #11077: ghc panic: ieName failed pattern match

#11077: ghc panic: ieName failed pattern match -------------------------------------+------------------------------------- Reporter: woehr | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- My custom prelude module is producing the following panic in ghc: {{{ <no location info>: ghc: panic! (the 'impossible' happened) (GHC version 7.10.2 for x86_64-unknown-linux): ieName failed pattern match! Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} The module is as follows: {{{#!hs module Prelude ( module X , tshow ) where import BasePrelude as X import Data.Text as X (Text, pack, unpack) tshow :: Show a => a -> Text tshow = pack . show }}} In my cabal file I depend on base-noprelude and base-prelude and use the above as my custom Prelude module. The panic is triggered by ```tshow```. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11077 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11077: ghc panic: ieName failed pattern match -------------------------------------+------------------------------------- Reporter: woehr | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by woehr): I meant to specify that I depend on base-noprelude in place of base. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11077#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11077: ghc panic: ieName failed pattern match -------------------------------------+------------------------------------- Reporter: woehr | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by thomie): How do I reproduce the bug? I install the packages `base-noprelude` and `base-prelude`, and then..? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11077#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11077: ghc panic: ieName failed pattern match -------------------------------------+------------------------------------- Reporter: woehr | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by woehr): * Attachment "ghc11077.7z" added. Test case -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11077 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11077: ghc panic: ieName failed pattern match -------------------------------------+------------------------------------- Reporter: woehr | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by woehr): I've added a test project that will reproduce the bug when "cabal build" is executed. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11077#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11077: ghc panic: ieName failed pattern match (-fwarn-missing-exported-sigs) -------------------------------------+------------------------------------- Reporter: woehr | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * cc: gridaphobe (added) Comment: Thanks! Reproducible with HEAD. It seems `-fwarn-missing-exported-sigs` (#2526) has something to do with it. {{{ $ cat T11077.hs module T11077 (module X, foo) where import Data.List as X foo = undefined $ ghc -c T11077.hs -fwarn-missing-exported-sigs ghc: panic! (the 'impossible' happened) (GHC version 7.11.20151104 for x86_64-unknown-linux): ieName failed pattern match! }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11077#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11077: ghc panic: ieName failed pattern match (-fwarn-missing-exported-sigs)
-------------------------------------+-------------------------------------
Reporter: woehr | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Austin Seipp

#11077: ghc panic: ieName failed pattern match (-fwarn-missing-exported-sigs) -------------------------------------+------------------------------------- Reporter: woehr | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1551 Wiki Page: | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: new => closed * differential: => Phab:D1551 * resolution: => fixed * milestone: => 8.0.1 Comment: Merged, thanks for the patch Eric! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11077#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC