[GHC] #8717: Segfault in 64-bit Windows GHCi
GHC
ghc-devs at haskell.org
Fri Jan 31 15:07:40 UTC 2014
#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
More information about the ghc-tickets
mailing list