[GHC] #12148: GHC 8 crash when building "chatter" library

#12148: GHC 8 crash when building "chatter" library --------------------------------------+--------------------------------- Reporter: varosi | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Keywords: | Operating System: Windows Architecture: x86_64 (amd64) | Type of failure: None/Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: --------------------------------------+--------------------------------- While I try to build "chatter" library from GitHub with Stack with GHC 8.0 resolver I got that crash: [ 9 of 23] Compiling NLP.Corpora.Brown ( src\NLP\Corpora\Brown.hs, .stack- work\dist\b7fec021\build\NLP\Corpora\Brown.o ) ghc.exe: panic! (the 'impossible' happened) (GHC version 8.0.1 for x86_64-unknown-mingw32): Simplifier ticks exhausted When trying RuleFired Class op unsafeShiftR To increase the limit, use -fsimpl-tick-factor=N (default 100) If you need to do this, let GHC HQ know, and what factor you needed To see detailed counts use -ddump-simpl-stats Total ticks: 11403800 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12148 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12148: GHC 8 crash when building "chatter" library ---------------------------------+-------------------------------------- Reporter: varosi | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+-------------------------------------- Changes (by varosi): * Attachment "stack.yaml" added. Modified file from master branch -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12148 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12148: GHC 8 crash when building "chatter" library ---------------------------------+-------------------------------------- Reporter: varosi | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+-------------------------------------- Comment (by varosi): With -fsimpl-tick-factor=200 it worked just fine. I don't know if it should be considered bug? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12148#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12148: GHC 8 crash when building "chatter" library ---------------------------------+-------------------------------------- Reporter: varosi | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+-------------------------------------- Changes (by thomie): * Attachment "InstanceSerialize.hs" added. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12148 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12148: GHC 8 crash when building "chatter" library ---------------------------------+-------------------------------------- Reporter: varosi | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+-------------------------------------- Comment (by thomie): Thanks for reporting. Can you try upgrading cereal to version `0.5.2`? I think that fixes it. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12148#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12148: GHC 8 crash when building "chatter" library -------------------------------------+------------------------------------- Reporter: varosi | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #10852 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * os: Windows => Unknown/Multiple * architecture: x86_64 (amd64) => Unknown/Multiple * related: => #10852 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12148#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12148: GHC 8 crash when building "chatter" library -------------------------------------+------------------------------------- Reporter: varosi | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #10852 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by varosi): It is working fine with 0.5.2 without need of that option. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12148#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12148: GHC 8 crash when building "chatter" library -------------------------------------+------------------------------------- Reporter: varosi | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: worksforme | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #10852 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => closed * resolution: => worksforme Comment: It works for me as well, using GHC 8.0.1 and http://www.stackage.org/snapshot/nightly-2016-06-02, which contains cereal 0.5.2.0. This seems to have fixed it, from the cereal 0.5.2.0 release notes:
Split the GSerialize class in two, to deal with a GHC bug (thanks Austin Seipp!)
The GHC bug they refer to is #5642, and it is still open. Thanks again for reporting. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12148#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12148: GHC 8 crash when building "chatter" library -------------------------------------+------------------------------------- Reporter: varosi | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: worksforme | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #10852 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by varosi): Thank you, too! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12148#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC