[GHC] #8377: GHCi crashes with unboxed values on 32-bit platforms

#8377: GHCi crashes with unboxed values on 32-bit platforms ---------------------------+------------------------------------- Reporter: akio | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.7 Keywords: | Operating System: Unknown/Multiple Architecture: x86 | Type of failure: GHCi crash Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ---------------------------+------------------------------------- The following program causes GHCi to crash, on x86 Linux and x86 Windows. {{{ {-# LANGUAGE MagicHash #-} import System.Mem import GHC.Base main = do let list = concatMap buildThunk [0..10000] length list `seq` performGC print $ last list buildThunk :: Int -> [Int] buildThunk (I# k) = [f k] f :: Int# -> Int f x = I# x }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8377 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8377: GHCi crashes with unboxed values on 32-bit platforms -------------------------------------+--------------------------- Reporter: akio | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: x86 Type of failure: GHCi crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+--------------------------- Comment (by akio): I'm preparing a patch. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8377#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8377: GHCi crashes with unboxed values on 32-bit platforms -------------------------------------+--------------------------- Reporter: akio | Owner: Type: bug | Status: patch Priority: normal | Milestone: Component: GHCi | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: x86 Type of failure: GHCi crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+--------------------------- Changes (by akio): * status: new => patch Comment: The patch validates on x86 Linux. The testsuite patch may not be needed because some existing tests also seem to catch the error (T1288_ghci dynbrk009 print020 ghcilink002 ghcilink004 ghcilink005). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8377#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8377: GHCi crashes with unboxed values on 32-bit platforms
-------------------------------------+---------------------------
Reporter: akio | Owner:
Type: bug | Status: patch
Priority: normal | Milestone:
Component: GHCi | Version: 7.7
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: x86
Type of failure: GHCi crash | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+---------------------------
Comment (by Austin Seipp

#8377: GHCi crashes with unboxed values on 32-bit platforms
-------------------------------------+---------------------------
Reporter: akio | Owner:
Type: bug | Status: patch
Priority: normal | Milestone:
Component: GHCi | Version: 7.7
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: x86
Type of failure: GHCi crash | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+---------------------------
Comment (by Austin Seipp

#8377: GHCi crashes with unboxed values on 32-bit platforms ------------------------------------------+--------------------------- Reporter: akio | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: GHCi | Version: 7.7 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: x86 Type of failure: GHCi crash | Difficulty: Unknown Test Case: ghci/should_run/T8377 | Blocked By: Blocking: | Related Tickets: ------------------------------------------+--------------------------- Changes (by thoughtpolice): * status: patch => closed * testcase: => ghci/should_run/T8377 * resolution: => fixed Comment: Merged (with a test - too many can't hurt) - thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8377#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8377: GHCi crashes with unboxed values on 32-bit platforms ------------------------------------------+--------------------------- Reporter: akio | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: GHCi | Version: 7.7 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: x86 Type of failure: GHCi crash | Difficulty: Unknown Test Case: ghci/should_run/T8377 | Blocked By: Blocking: | Related Tickets: ------------------------------------------+--------------------------- Comment (by simonmar): Good catch. This must have broke when `StgWord` was changed to be `Word64`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8377#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC