[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 <austin@…>): In [changeset:3bd786147fc9eff8d03ec9ac2697ada826282b08/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="3bd786147fc9eff8d03ec9ac2697ada826282b08" Fix BCO bitmap generation on 32-bit platforms (#8377) On 32-bit platforms, the bitmap should be an array of 32-bit words, not Word64s. Signed-off-by: Austin Seipp <austin@well-typed.com> }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8377#comment:3> 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 <austin@…>): In [changeset:b499ed1ea71f58c02d5b71e147b938ca0b96f8a1/testsuite]: {{{ #!CommitTicketReference repository="testsuite" revision="b499ed1ea71f58c02d5b71e147b938ca0b96f8a1" Test Trac #8377 Signed-off-by: Austin Seipp <austin@well-typed.com> }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8377#comment:4> 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: ------------------------------------------+--------------------------- 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