[GHC] #10758: the 'impossible' happened

#10758: the 'impossible' happened -------------------------------------------+------------------------------- Reporter: martinmr | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.10.2 Keywords: | Operating System: Linux Architecture: Unknown/Multiple | Type of failure: GHCi crash Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | -------------------------------------------+------------------------------- I was working on solving problems 64 and 65 of the Euler project. When I was working on problem 64 I was able to load the file into ghci. I finished the problem and moved on to problem 65. When I tried to load 65.hs in ghci I got ghc: panic! (the 'impossible' happened) (GHC version 7.10.2 for x86_64-unknown-linux): floatExpr tick break<6>() Same thing happened when I tried to load 64.hs (which used to work fine) and a number of other files from problems I had previously solved. Not all files trigger this issue and I have not changed ghc or cabal at all apart from installing the arithmoi and parallel packages. I am attaching my code for problems 64 and 65 in case my code is somehow triggering the bug (you can look at the problem statement at https://projecteuler.net/problem=64 and https://projecteuler.net/problem=65) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10758 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10758: the 'impossible' happened -------------------------------+------------------------------------------- Reporter: martinmr | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.10.2 Resolution: | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------+------------------------------------------- Changes (by martinmr): * Attachment "64.hs" added. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10758 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10758: the 'impossible' happened -------------------------------+------------------------------------------- Reporter: martinmr | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.10.2 Resolution: | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------+------------------------------------------- Changes (by martinmr): * Attachment "65.hs" added. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10758 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10758: the 'impossible' happened -------------------------------+----------------------------------------- Reporter: martinmr | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.10.2 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------+----------------------------------------- Changes (by martinmr): * architecture: Unknown/Multiple => x86_64 (amd64) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10758#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10758: the 'impossible' happened -------------------------------+----------------------------------------- Reporter: martinmr | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.10.2 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------+----------------------------------------- Comment (by martinmr): running :set -fobject-code in ghci seems to fix the problem for now. I am still not sure why it used to work without having to set the flag. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10758#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10758: the 'impossible' happened -------------------------------+----------------------------------------- Reporter: martinmr | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: GHCi | Version: 7.10.2 Resolution: duplicate | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: #10549 | Differential Revisions: -------------------------------+----------------------------------------- Changes (by thomie): * status: new => closed * resolution: => duplicate * related: => #10549 Comment: This is a duplicate of #10549, which has been fixed in HEAD. As a workaround: remove the `OPTIONS_GHC -O` pragma from your files. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10758#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC