[GHC] #8717: Segfault in 64-bit Windows GHCi

#8717: Segfault in 64-bit Windows GHCi ----------------------------------------+------------------------------- Reporter: awson | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: GHCi | Version: 7.8.1-rc1 Keywords: | Operating System: Windows Architecture: x86_64 (amd64) | Type of failure: GHCi crash Difficulty: Difficult (2-5 days) | Test Case: Blocked By: | Blocking: Related Tickets: | ----------------------------------------+------------------------------- This code: {{{ module Bug where import Data.Data c :: Constr c = toConstr False }}} gives segfault when trying to evaluate {{{c}}}. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8717 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8717: Segfault in 64-bit Windows GHCi -------------------------------+---------------------------------------- Reporter: awson | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: GHCi | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: GHCi crash | Difficulty: Difficult (2-5 days) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------+---------------------------------------- Comment (by awson): Phew. That was a nightmarish debugging experience. At last, I've found that some code in {{{base}}} wants to access {{{GetCommandLineW}}} not at an exact trampolined address but with {{{+1}}} offset. I am extremely tired, so I've decided to not dig further in {{{GHCi}}} with {{{base}}} interaction and simply exposed {{{GetCommandLineW}}} to {{{GHCi}}} statically. Thus, {{{GetCommandLineW}}} is loaded by a system linker and is not trampolined anymore. This is ugly hack, but it works and makes {{{GHC}}} build, for example, {{{llvm-general}}} package - impossible thing before. This patch applies to 7.8 and HEAD. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8717#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8717: Segfault in 64-bit Windows GHCi -------------------------------+---------------------------------------- Reporter: awson | Owner: Type: bug | Status: patch Priority: high | Milestone: 7.8.1 Component: GHCi | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: GHCi crash | Difficulty: Difficult (2-5 days) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------+---------------------------------------- Changes (by awson): * priority: normal => high * status: new => patch -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8717#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8717: Segfault in 64-bit Windows GHCi -------------------------------+---------------------------------------- Reporter: awson | Owner: Type: bug | Status: patch Priority: high | Milestone: 7.8.1 Component: GHCi | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: GHCi crash | Difficulty: Difficult (2-5 days) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------+---------------------------------------- Comment (by awson): Disregard the whole ticket. It was a weird artifact of #7134. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8717#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8717: Segfault in 64-bit Windows GHCi -------------------------------+---------------------------------------- Reporter: awson | Owner: Type: bug | Status: closed Priority: high | Milestone: 7.8.1 Component: GHCi | Version: 7.8.1-rc1 Resolution: invalid | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: GHCi crash | Difficulty: Difficult (2-5 days) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------+---------------------------------------- Changes (by awson): * status: patch => closed * resolution: => invalid -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8717#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8717: Segfault in 64-bit Windows GHCi
-------------------------------+----------------------------------------
Reporter: awson | Owner:
Type: bug | Status: closed
Priority: high | Milestone: 7.8.1
Component: GHCi | Version: 7.8.1-rc1
Resolution: invalid | Keywords:
Operating System: Windows | Architecture: x86_64 (amd64)
Type of failure: GHCi crash | Difficulty: Difficult (2-5 days)
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------+----------------------------------------
Comment (by Austin Seipp
participants (1)
-
GHC