[GHC] #11291: DfltProb1(optasm): panic CoreToStg.myCollectArgs

#11291: DfltProb1(optasm): panic CoreToStg.myCollectArgs -------------------------------------+------------------------------------- Reporter: thomie | Owner: Type: bug | Status: new Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 7.11 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: typecheck/should_compile/DfltProb1 | (optasm) | Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- The program looks like this: {{{ module DfltProb1 where import Control.Monad.ST import Prelude hiding (traverse) traverse :: a -> ST s [a] traverse = undefined -- WORKS with signature test :: Num a => [a] test = runST (traverse 1) main = print test }}} This is the failure: {{{ $ ghc-7.11.20151225 -O DfltProb1.hs ghc-stage2: panic! (the 'impossible' happened) (GHC version 7.11.20151224 for x86_64-unknown-linux): CoreToStg.myCollectArgs (case traverse of _ [Occ=Dead] { }) realWorld# }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11291 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11291: DfltProb1(optasm): panic CoreToStg.myCollectArgs -------------------------------------+------------------------------------- Reporter: thomie | Owner: Type: bug | Status: new Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 7.11 (CodeGen) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Compile-time | Test Case: crash | typecheck/should_compile/DfltProb1 | (optasm) Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * failure: None/Unknown => Compile-time crash * component: Compiler => Compiler (CodeGen) Old description:
The program looks like this: {{{ module DfltProb1 where
import Control.Monad.ST import Prelude hiding (traverse)
traverse :: a -> ST s [a] traverse = undefined
-- WORKS with signature test :: Num a => [a] test = runST (traverse 1)
main = print test }}}
This is the failure: {{{ $ ghc-7.11.20151225 -O DfltProb1.hs ghc-stage2: panic! (the 'impossible' happened) (GHC version 7.11.20151224 for x86_64-unknown-linux): CoreToStg.myCollectArgs (case traverse of _ [Occ=Dead] { }) realWorld# }}}
New description: The program looks like this: {{{#!hs module DfltProb1 where import Control.Monad.ST import Prelude hiding (traverse) traverse :: a -> ST s [a] traverse = undefined -- WORKS with signature test :: Num a => [a] test = runST (traverse 1) main = print test }}} This is the failure: {{{ $ ghc-7.11.20151225 -O DfltProb1.hs ghc-stage2: panic! (the 'impossible' happened) (GHC version 7.11.20151224 for x86_64-unknown-linux): CoreToStg.myCollectArgs (case traverse of _ [Occ=Dead] { }) realWorld# }}} -- Comment: I believe this is fixed on `master`. I have a suspicion that this is due to d990354473239943d83ee90f8906f3737b53fe65. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11291#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11291: DfltProb1(optasm): panic CoreToStg.myCollectArgs -------------------------------------+------------------------------------- Reporter: thomie | Owner: Type: bug | Status: new Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 7.11 (CodeGen) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Compile-time | Test Case: crash | typecheck/should_compile/DfltProb1 | (optasm) Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Hmm, well, the test appears to work on 6ec236b589d541e72eea8df84628206d26e93862 as well. Odd. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11291#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11291: DfltProb1(optasm): panic CoreToStg.myCollectArgs -------------------------------------+------------------------------------- Reporter: thomie | Owner: Type: bug | Status: new Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 7.11 (CodeGen) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Compile-time | Test Case: crash | typecheck/should_compile/DfltProb1 | (optasm) Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by thomie): Maybe you forgot `-O`, or `-fforce-recomp`. I just tried with 7.11.20151229 from https://launchpad.net/~hvr/+archive/ubuntu/ghc, and I can still reproduce. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11291#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11291: DfltProb1(optasm): panic CoreToStg.myCollectArgs -------------------------------------+------------------------------------- Reporter: thomie | Owner: Type: bug | Status: new Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 7.11 (CodeGen) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Compile-time | Test Case: crash | typecheck/should_compile/DfltProb1 | (optasm) Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): I'm afraid not, {{{ $ inplace/bin/ghc-stage2 --version The Glorious Glasgow Haskell Compilation System, version 7.11.20151230 $ inplace/bin/ghc-stage2 -O DfltProb1.hs -fforce-recomp [1 of 1] Compiling DfltProb1 ( DfltProb1.hs, DfltProb1.o ) $ }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11291#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11291: DfltProb1(optasm): panic CoreToStg.myCollectArgs -------------------------------------+------------------------------------- Reporter: thomie | Owner: Type: bug | Status: new Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 7.11 (CodeGen) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Compile-time | Test Case: crash | typecheck/should_compile/DfltProb1 | (optasm) Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by thomie): Hmm, Harbormaster also fails on `TEST=DfltProb1 WAY=optasm` (and a bunch of other tests): https://phabricator.haskell.org/D1652#50905 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11291#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11291: DfltProb1(optasm): panic CoreToStg.myCollectArgs -------------------------------------+------------------------------------- Reporter: thomie | Owner: simonpj Type: bug | Status: new Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 7.11 (CodeGen) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Compile-time | Test Case: crash | typecheck/should_compile/DfltProb1 | (optasm) Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonpj): * owner: => simonpj Comment: I know what is happening; patch coming. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11291#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11291: DfltProb1(optasm): panic CoreToStg.myCollectArgs
-------------------------------------+-------------------------------------
Reporter: thomie | Owner: simonpj
Type: bug | Status: new
Priority: highest | Milestone: 8.0.1
Component: Compiler | Version: 7.11
(CodeGen) |
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: Compile-time | Test Case:
crash | typecheck/should_compile/DfltProb1
| (optasm)
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Simon Peyton Jones

#11291: DfltProb1(optasm): panic CoreToStg.myCollectArgs -------------------------------------+------------------------------------- Reporter: thomie | Owner: simonpj Type: bug | Status: closed Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 7.11 (CodeGen) | Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Compile-time | Test Case: crash | typecheck/should_compile/DfltProb1 | (optasm) Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonpj): * status: new => closed * resolution: => fixed Comment: I've fixed this one. Does this fix some of the other bugs in comment:5? If not perhaps open a new ticket? Happy new year. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11291#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11291: DfltProb1(optasm): panic CoreToStg.myCollectArgs -------------------------------------+------------------------------------- Reporter: thomie | Owner: simonpj Type: bug | Status: closed Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 7.11 (CodeGen) | Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Compile-time | Test Case: crash | typecheck/should_compile/DfltProb1 | (optasm) Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by hvr): Replying to [comment:8 simonpj]:
I've fixed this one.
I assume this is supposed to be merged to the GHC-8.0 branch as well? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11291#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11291: DfltProb1(optasm): panic CoreToStg.myCollectArgs -------------------------------------+------------------------------------- Reporter: thomie | Owner: simonpj Type: bug | Status: closed Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 7.11 (CodeGen) | Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Compile-time | Test Case: crash | typecheck/should_compile/DfltProb1 | (optasm) Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by hvr): Merged to GHC 8.0 via ae2c4d8af8b8e2e0e310a7fbfed6bd1d6b43386b -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11291#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC