[GHC] #9329: GHC panics when Cmm-compiling `STK_CHK_GEN_N (8);`

#9329: GHC panics when Cmm-compiling `STK_CHK_GEN_N (8);` -------------------------------------+------------------------------------- Reporter: hvr | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.1 Component: Compiler | Version: 7.8.3 Keywords: | Differential Revisions: Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- The following Cmm code snippet compiles fine {{{#!c foo () { STK_CHK_GEN_N (((1)*8)); /* works */ return (0); } }}} The following one, however, only compiles with `-O0`, but panics with `-O1` or more: {{{#!c foo () { STK_CHK_GEN_N (8); /* panics */ return (0); } }}} {{{ ghc: panic! (the 'impossible' happened) (GHC version 7.8.3 for x86_64-unknown-linux): bundle c1 foo [(c1, label: block{v c1}_info rep:StackRep [])] [(c0, {}), (c3, {})] foo() // [] { info_tbl: [(c1, label: block{v c1}_info rep:StackRep [])] stack_info: arg_space: 8 updfr_space: Just 8 } {offset c0: R1 = 0; call (P64[Sp])(R1) args: 8, res: 0, upd: 8; } } Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9329 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9329: GHC panics when Cmm-compiling `STK_CHK_GEN_N (8);` -------------------------------------+------------------------------------- Reporter: hvr | Owner: simonmar Type: bug | Status: new Priority: normal | Milestone: 7.10.1 Component: Compiler | Version: 7.8.3 Resolution: | Keywords: Differential Revisions: | Operating System: Unknown/Multiple Architecture: | Type of failure: Compile-time Unknown/Multiple | crash Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | -------------------------------------+------------------------------------- Changes (by simonmar): * owner: => simonmar -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9329#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9329: GHC panics when Cmm-compiling `STK_CHK_GEN_N (8);` -------------------------------------+------------------------------------- Reporter: hvr | Owner: simonmar Type: bug | Status: new Priority: normal | Milestone: 7.8.4 Component: Compiler | Version: 7.8.3 Resolution: | Keywords: Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Unknown Type of failure: Compile- | Blocked By: time crash | Related Tickets: Test Case: | Blocking: | Differential Revisions: | https://phabricator.haskell.org/D105| -------------------------------------+------------------------------------- Changes (by simonmar): * differential: => https://phabricator.haskell.org/D105 * milestone: 7.10.1 => 7.8.4 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9329#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9329: GHC panics when Cmm-compiling `STK_CHK_GEN_N (8);`
-------------------------------------+-------------------------------------
Reporter: hvr | Owner: simonmar
Type: bug | Status: new
Priority: normal | Milestone: 7.8.4
Component: Compiler | Version: 7.8.3
Resolution: | Keywords:
Operating System: | Architecture: Unknown/Multiple
Unknown/Multiple | Difficulty: Unknown
Type of failure: Compile- | Blocked By:
time crash | Related Tickets:
Test Case: |
Blocking: |
Differential Revisions: |
https://phabricator.haskell.org/D105|
-------------------------------------+-------------------------------------
Comment (by Simon Marlow

#9329: GHC panics when Cmm-compiling `STK_CHK_GEN_N (8);` -------------------------------------+------------------------------------- Reporter: hvr | Owner: simonmar Type: bug | Status: merge Priority: normal | Milestone: 7.8.4 Component: Compiler | Version: 7.8.3 Resolution: | Keywords: Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Unknown Type of failure: Compile- | Blocked By: time crash | Related Tickets: Test Case: | Blocking: | Differential Revisions: | https://phabricator.haskell.org/D105| -------------------------------------+------------------------------------- Changes (by simonmar): * status: new => merge -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9329#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9329: GHC panics when Cmm-compiling `STK_CHK_GEN_N (8);` -------------------------------------+------------------------------------- Reporter: hvr | Owner: simonmar Type: bug | Status: closed Priority: normal | Milestone: 7.8.4 Component: Compiler | Version: 7.8.3 Resolution: fixed | Keywords: Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Unknown Type of failure: Compile- | Blocked By: time crash | Related Tickets: Test Case: | Blocking: | Differential Revisions: | https://phabricator.haskell.org/D105| -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: merge => closed * resolution: => fixed Comment: Merged. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9329#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC