[GHC] #13210: Can't run terminfo code in GHCi on Windows
GHC
ghc-devs at haskell.org
Tue Nov 21 14:07:34 UTC 2017
#13210: Can't run terminfo code in GHCi on Windows
-------------------------------------+-------------------------------------
Reporter: RyanGlScott | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.2.1
Component: Runtime System | Version: 8.0.2
(Linker) |
Resolution: | Keywords:
Operating System: Windows | Architecture:
Type of failure: GHC rejects | Unknown/Multiple
valid program | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D3154
Wiki Page: | Phab:D3155
-------------------------------------+-------------------------------------
Changes (by RyanGlScott):
* owner: Phyx- => (none)
* status: closed => new
* resolution: fixed =>
Comment:
Alas, it seems like this code is once again broken. On GHC 8.2.1 and
8.2.2-rc3, running:
{{{
$ runghc -lncursesw Terminfo.hs
}}}
In MSYS2 simply exits early with exit code 127, and in PowerShell, it
crashes with the following pop-up window:
{{{
[Window Title]
ghc.exe
[Main Instruction]
ghc.exe has stopped working
[Content]
A problem caused the program to stop working correctly. Windows will close
the program and notify you if a solution is available.
[Close program]
}}}
Using Phyx-'s modified GHC 8.3 build, running that same command produces a
stack trace:
{{{
$ ..\..\..\Software\ghc-8.3.20171021\bin\runghc -lncursesw .\Terminfo.hs
Access violation in generated code when reading 0xffffffffffffffff
Attempting to reconstruct a stack trace...
Frame Code address
* 0x87af500 0x7ffa30adefc4 C:\WINDOWS\System32\msvcrt.dll+0x2efc4
* 0x87af540 0x7ffa30adf074 C:\WINDOWS\System32\msvcrt.dll+0x2f074
* 0x87af548 0xa275038
C:\msys64\mingw64\lib\libncursesw.a(db_iterator.o)+0x68
(_nc_tic_dir+0x118)
* 0x87af550 0x10
* 0x87af558 0x398
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13210#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list