[GHC] #9155: allocateRegsAndSpill: Cannot read from uninitialized register %vI_s154O (GHC version 7.8.2 for x86_64-unknown-linux)

#9155: allocateRegsAndSpill: Cannot read from uninitialized register %vI_s154O (GHC version 7.8.2 for x86_64-unknown-linux) ------------------------------------+------------------------------------- Reporter: slyfox | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- When building all world with '''-O2''' I've stuck on wxhaskell (all versions): {{{ [11 of 16] Compiling Graphics.UI.WX.Controls ( src/Graphics/UI/WX/Controls.hs, dist/build/Graphics/UI/WX/Controls.o ) <no location info>: ghc: panic! (the 'impossible' happened) (GHC version 7.8.2 for x86_64-unknown-linux): allocateRegsAndSpill: Cannot read from uninitialized register %vI_s154O }}} I've stripped it down to minimal complete example (but it significantly changed error message) {{{ ghc: panic! (the 'impossible' happened) (GHC version 7.8.2 for x86_64-unknown-linux): RegAlloc.Liveness.computeLivenss SCCs aren't in reverse dependent order bad blockId c1tU [NONREC c1uc: movq $-8,%rbx andq $main:M.AlignLeft{v rb}_closure+1,%rbx addq $8,%rbp jmp *(%rbx), NONREC ... }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9155 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9155: O2: allocateRegsAndSpill: Cannot read from uninitialized register %vI_s154O (GHC version 7.8.2 for x86_64-unknown-linux) -------------------------------------+------------------------------------ Reporter: slyfox | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by slyfox): Compile as: {{{ ghc -c --make -hide-all-packages -package base -O2 M }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9155#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9155: O2: allocateRegsAndSpill: Cannot read from uninitialized register %vI_s154O (GHC version 7.8.2 for x86_64-unknown-linux) -------------------------------------+------------------------------------ Reporter: slyfox | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by slyfox): -HEAD has the same disease: {{{ [sf] ~/dev/git/ghc:inplace/bin/ghc-stage2 --make -O2 /tmp/M.hs [1 of 1] Compiling M ( /tmp/M.hs, /tmp/M.o ) ghc-stage2: panic! (the 'impossible' happened) (GHC version 7.9.20140531 for x86_64-unknown-linux): RegAlloc.Liveness.computeLivenss SCCs aren't in reverse dependent order bad blockId c1cG ... }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9155#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9155: O2: allocateRegsAndSpill: Cannot read from uninitialized register %vI_s154O (GHC version 7.8.2 for x86_64-unknown-linux) ---------------------------------------+---------------------------------- Reporter: slyfox | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler (NCG) | Version: 7.8.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: x86_64 (amd64) Type of failure: Compile-time crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------------+---------------------------------- Changes (by slyfox): * cc: simonmar (added) * failure: None/Unknown => Compile-time crash * component: Compiler => Compiler (NCG) * architecture: Unknown/Multiple => x86_64 (amd64) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9155#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9155: O2: allocateRegsAndSpill: Cannot read from uninitialized register %vI_s154O (GHC version 7.8.2 for x86_64-unknown-linux) ---------------------------------------+---------------------------------- Reporter: slyfox | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler (NCG) | Version: 7.8.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: x86_64 (amd64) Type of failure: Compile-time crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------------+---------------------------------- Comment (by niklasl): The issue disappears when I revert commit f5879acd018494b84233f26fba828ce376d0f81d -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9155#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9155: O2: allocateRegsAndSpill: Cannot read from uninitialized register %vI_s154O (GHC version 7.8.2 for x86_64-unknown-linux) ---------------------------------------+---------------------------------- Reporter: slyfox | Owner: simonmar Type: bug | Status: new Priority: highest | Milestone: 7.8.3 Component: Compiler (NCG) | Version: 7.8.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: x86_64 (amd64) Type of failure: Compile-time crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------------+---------------------------------- Changes (by simonmar): * owner: => simonmar * priority: normal => highest * milestone: => 7.8.3 Comment: Investigating. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9155#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9155: O2: allocateRegsAndSpill: Cannot read from uninitialized register %vI_s154O (GHC version 7.8.2 for x86_64-unknown-linux) ---------------------------------------+---------------------------------- Reporter: slyfox | Owner: simonmar Type: bug | Status: new Priority: highest | Milestone: 7.8.3 Component: Compiler (NCG) | Version: 7.8.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: x86_64 (amd64) Type of failure: Compile-time crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------------+---------------------------------- Comment (by simonmar): I have a fix for this, indeed f5879acd018494b84233f26fba828ce376d0f81d was buggy. I'll do some more testing and measurement before I push. This is a blocker for 7.8.3. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9155#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9155: O2: allocateRegsAndSpill: Cannot read from uninitialized register %vI_s154O (GHC version 7.8.2 for x86_64-unknown-linux) ---------------------------------------+---------------------------------- Reporter: slyfox | Owner: simonmar Type: bug | Status: new Priority: highest | Milestone: 7.8.3 Component: Compiler (NCG) | Version: 7.8.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: x86_64 (amd64) Type of failure: Compile-time crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------------+---------------------------------- Comment (by simonmar): Just to let you know I'm still working on this, hope to have it done today or tomorrow. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9155#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9155: O2: allocateRegsAndSpill: Cannot read from uninitialized register %vI_s154O
(GHC version 7.8.2 for x86_64-unknown-linux)
---------------------------------------+----------------------------------
Reporter: slyfox | Owner: simonmar
Type: bug | Status: new
Priority: highest | Milestone: 7.8.3
Component: Compiler (NCG) | Version: 7.8.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: x86_64 (amd64)
Type of failure: Compile-time crash | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
---------------------------------------+----------------------------------
Comment (by Simon Marlow

#9155: O2: allocateRegsAndSpill: Cannot read from uninitialized register %vI_s154O (GHC version 7.8.2 for x86_64-unknown-linux) ---------------------------------------+---------------------------------- Reporter: slyfox | Owner: simonmar Type: bug | Status: merge Priority: highest | Milestone: 7.8.3 Component: Compiler (NCG) | Version: 7.8.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: x86_64 (amd64) Type of failure: Compile-time crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------------+---------------------------------- Changes (by simonmar): * status: new => merge -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9155#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9155: O2: allocateRegsAndSpill: Cannot read from uninitialized register %vI_s154O (GHC version 7.8.2 for x86_64-unknown-linux) ---------------------------------------+---------------------------------- Reporter: slyfox | Owner: simonmar Type: bug | Status: closed Priority: highest | Milestone: 7.8.3 Component: Compiler (NCG) | Version: 7.8.2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: x86_64 (amd64) Type of failure: Compile-time crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------------+---------------------------------- Changes (by thoughtpolice): * status: merge => closed * resolution: => fixed Comment: Merged. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9155#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC