[GHC] #4415: ghci crash on Windows 7 64bits when press Ctrl-L
GHC
cvs-ghc at haskell.org
Thu Jul 19 01:44:03 CEST 2012
#4415: ghci crash on Windows 7 64bits when press Ctrl-L
-------------------------------+--------------------------------------------
Reporter: isomorphic | Owner: judahj
Type: bug | Status: patch
Priority: normal | Milestone: 7.6.1
Component: GHCi | Version: 6.12.3
Keywords: windows 7 | Os: Windows
Architecture: x86_64 (amd64) | Failure: GHCi crash
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
-------------------------------+--------------------------------------------
Comment(by judahj):
I've pushed some patches to code.haskell.org/haskeline which fix this and
a couple related issues:
{{{
Wed Jul 18 13:59:56 PDT 2012 Judah Jacobson <judah.jacobson at gmail.com>
* Fix ctrl-L on Windows with large console window sizes (GHC ticket
#4415).
Here "large" means an area of >2^15 cells, e.g., 200x200.
Original patch by fryguybob at gmail.com.
Wed Jul 18 14:03:25 PDT 2012 Judah Jacobson <judah.jacobson at gmail.com>
* Prevent crash on Windows when writing many characters at once.
A couple cases which are known to have triggered this are:
- Entering a long (>2^15) input line
- Tab-completing a folder containing many files, with
completionPaging:False
}}}
The problem turned out not to be related to the version of Windows.
Instead, It is caused by haskeline's use of the WriteConsoleW API
function, which can only handle inputs of up to to ~2^15 bytes. You can
reproduce this issue by expanding your console window to 200x200
characters, starting ghci, and then pressing ctrl-L.
I've tested the above patches on Windows Vista, but they should also fix
the problem on Windows 7. Would someone else be able to confirm that the
issue has been resolved on that OS?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4415#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list