[GHC] #13359: GHCi crash in a standard Windows console (cmd.exe) after Control-c

#13359: GHCi crash in a standard Windows console (cmd.exe) after Control-c ------------------------------+------------------------------- Reporter: vanto | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 8.0.2 Keywords: | Operating System: Windows Architecture: x86 | Type of failure: GHCi crash Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: ------------------------------+------------------------------- When you press and hold Ctrl-c, after a few seconds, sometimes > 60 sec, GHCi crash and we can read a message on the screen (of the console) who says: {{{ ghc.exe : failed to create OS thread }}} On the task manager we can read: {{{ ghc memory : 36920K }}} initially, then the memory grows about {{{ ghc memory : 43480K }}} and stay until the crash. I repeated it several times. With Linux if you repeat this, GHCi do not crash. Idem with only the Windows console. Hope this help! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13359 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13359: GHCi crash in a standard Windows console (cmd.exe) after Control-c
-------------------------------+----------------------------------------
Reporter: vanto | Owner: (none)
Type: bug | Status: upstream
Priority: normal | Milestone:
Component: GHCi | Version: 8.0.2
Resolution: | Keywords:
Operating System: Windows | Architecture: Unknown/Multiple
Type of failure: GHCi crash | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------+----------------------------------------
Changes (by Phyx-):
* status: new => upstream
* architecture: x86 => Unknown/Multiple
Comment:
Thanks for the report, this seems to be an issue with the mingw-w64
runtime. I haven't narrowed it down yet, but essentially something seems
to be eating the events and it never reaches ghci.
`CtrlHandler` is never called.
The following example shows the issue. It works when compiled using the
Microsoft compiler but doesn't with mingw-w64's GHC.
{{{
#include

#13359: GHCi crash in a standard Windows console (cmd.exe) after Control-c -------------------------------+---------------------------------------- Reporter: vanto | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 8.0.2 Resolution: | Keywords: Operating System: Windows | Architecture: Unknown/Multiple Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------+---------------------------------------- Changes (by Phyx-): * status: upstream => new Comment: It seems that the issue is not GCC, but the trigger does still not fire in GHC for some reason. Need to investigate further. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13359#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13359: GHCi crash in a standard Windows console (cmd.exe) after Control-c -------------------------------+---------------------------------------- Reporter: vanto | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: Component: GHCi | Version: 8.0.2 Resolution: | Keywords: Operating System: Windows | Architecture: Unknown/Multiple Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3292 Wiki Page: | -------------------------------+---------------------------------------- Changes (by Phyx-): * status: new => patch * differential: => Phab:D3292 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13359#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13359: GHCi crash in a standard Windows console (cmd.exe) after Control-c -------------------------------+---------------------------------------- Reporter: vanto | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 8.0.2 Resolution: | Keywords: Operating System: Windows | Architecture: Unknown/Multiple Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------+---------------------------------------- Changes (by Phyx-): * status: patch => new * differential: Phab:D3292 => Comment: Accidentally assigned patch here. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13359#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC