Quantcast

[GHC] #4415: ghci crash on Windows 7 64bits when press Ctrl-L

classic Classic list List threaded Threaded
14 messages Options
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[GHC] #4415: ghci crash on Windows 7 64bits when press Ctrl-L

GHC
#4415: ghci crash on Windows 7 64bits when press Ctrl-L
-------------------------------+--------------------------------------------
    Reporter:  isomorphic      |       Owner:            
        Type:  bug             |      Status:  new      
    Priority:  normal          |   Component:  GHCi      
     Version:  6.12.3          |    Keywords:  windows 7
    Testcase:                  |   Blockedby:            
          Os:  Windows         |    Blocking:            
Architecture:  x86_64 (amd64)  |     Failure:  GHCi crash
-------------------------------+--------------------------------------------
 Hi All,

 On Windows 7 64bits, after launching ghci, press Ctrl-L to clear the
 screen, and it's crashed with this message:

 WriteConsole: resource exhausted (Not enough storage is available to
 process this command.)

 Would any body help to fix it?

 Thanks & Regards,
 Harry

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4415>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #4415: ghci crash on Windows 7 64bits when press Ctrl-L

GHC
#4415: ghci crash on Windows 7 64bits when press Ctrl-L
-------------------------------+--------------------------------------------
    Reporter:  isomorphic      |       Owner:            
        Type:  bug             |      Status:  new      
    Priority:  normal          |   Component:  GHCi      
     Version:  6.12.3          |    Keywords:  windows 7
    Testcase:                  |   Blockedby:            
          Os:  Windows         |    Blocking:            
Architecture:  x86_64 (amd64)  |     Failure:  GHCi crash
-------------------------------+--------------------------------------------

Comment(by judahj):

 Do other commands (arrow keys, tab completion, etc.) work for you?

 If you type a long line of text (so that the cursor wraps to the next
 line), then press ctrl-A, then type more text, does it work or also crash?

 One other test: This may be an issue with Haskeline, the library we use
 for command-line input.  Can you please run:
 {{{
 cabal install haskeline
 }}}
 and then build and try to run the following program:
 http://code.haskell.org/haskeline/examples/Test.hs .  Does it have the
 same problem?

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4415#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #4415: ghci crash on Windows 7 64bits when press Ctrl-L

GHC
In reply to this post by GHC
#4415: ghci crash on Windows 7 64bits when press Ctrl-L
-------------------------------+--------------------------------------------
    Reporter:  isomorphic      |       Owner:            
        Type:  bug             |      Status:  new      
    Priority:  normal          |   Component:  GHCi      
     Version:  6.12.3          |    Keywords:  windows 7
    Testcase:                  |   Blockedby:            
          Os:  Windows         |    Blocking:            
Architecture:  x86_64 (amd64)  |     Failure:  GHCi crash
-------------------------------+--------------------------------------------

Comment(by isomorphic):

 The arrow keys, tab completion, and Ctrl-A, ctrl-e all work fine.

 This must be an bug within Haskeline, as I can reproduce the same error
 with your "Test.hs" when I press "Ctrl-L".

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4415#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #4415: ghci crash on Windows 7 64bits when press Ctrl-L

GHC
In reply to this post by GHC
#4415: ghci crash on Windows 7 64bits when press Ctrl-L
-------------------------------+--------------------------------------------
    Reporter:  isomorphic      |        Owner:            
        Type:  bug             |       Status:  new      
    Priority:  normal          |    Milestone:            
   Component:  GHCi            |      Version:  6.12.3    
    Keywords:  windows 7       |     Testcase:            
   Blockedby:                  |   Difficulty:            
          Os:  Windows         |     Blocking:            
Architecture:  x86_64 (amd64)  |      Failure:  GHCi crash
-------------------------------+--------------------------------------------
Description changed by igloo:

Old description:

> Hi All,
>
> On Windows 7 64bits, after launching ghci, press Ctrl-L to clear the
> screen, and it's crashed with this message:
>
> WriteConsole: resource exhausted (Not enough storage is available to
> process this command.)
>
> Would any body help to fix it?
>
> Thanks & Regards,
> Harry

New description:

 Hi All,

 On Windows 7 64bits, after launching ghci, press Ctrl-L to clear the
 screen, and it's crashed with this message:

 !WriteConsole: resource exhausted (Not enough storage is available to
 process this command.)

 Would any body help to fix it?

 Thanks & Regards,
 Harry

--

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4415#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #4415: ghci crash on Windows 7 64bits when press Ctrl-L

GHC
In reply to this post by GHC
#4415: ghci crash on Windows 7 64bits when press Ctrl-L
-------------------------------+--------------------------------------------
    Reporter:  isomorphic      |        Owner:            
        Type:  bug             |       Status:  new      
    Priority:  normal          |    Milestone:  7.0.2    
   Component:  GHCi            |      Version:  6.12.3    
    Keywords:  windows 7       |     Testcase:            
   Blockedby:                  |   Difficulty:            
          Os:  Windows         |     Blocking:            
Architecture:  x86_64 (amd64)  |      Failure:  GHCi crash
-------------------------------+--------------------------------------------
Changes (by igloo):

  * milestone:  => 7.0.2


--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4415#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #4415: ghci crash on Windows 7 64bits when press Ctrl-L

GHC
In reply to this post by GHC
#4415: ghci crash on Windows 7 64bits when press Ctrl-L
-------------------------------+--------------------------------------------
    Reporter:  isomorphic      |        Owner:            
        Type:  bug             |       Status:  new      
    Priority:  normal          |    Milestone:  7.0.2    
   Component:  GHCi            |      Version:  6.12.3    
    Keywords:  windows 7       |     Testcase:            
   Blockedby:                  |   Difficulty:            
          Os:  Windows         |     Blocking:            
Architecture:  x86_64 (amd64)  |      Failure:  GHCi crash
-------------------------------+--------------------------------------------

Comment(by fryguybob):

 I have all the changes needed to make Ctrl-L work in haskeline for me (on
 Windows 7 64-bit) based on the second technique listed here
 [http://support.microsoft.com/kb/99261].  The haskeline trac page lists
 http://code.haskell.org/haskeline as the source location, but that project
 isn't up right now, so I'm not sure how to go about making a patch.  It
 also seems like it should be an issue in the haskeline trac.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4415#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #4415: ghci crash on Windows 7 64bits when press Ctrl-L

GHC
In reply to this post by GHC
#4415: ghci crash on Windows 7 64bits when press Ctrl-L
-------------------------------+--------------------------------------------
    Reporter:  isomorphic      |        Owner:            
        Type:  bug             |       Status:  patch    
    Priority:  normal          |    Milestone:  7.0.2    
   Component:  GHCi            |      Version:  6.12.3    
    Keywords:  windows 7       |     Testcase:            
   Blockedby:                  |   Difficulty:            
          Os:  Windows         |     Blocking:            
Architecture:  x86_64 (amd64)  |      Failure:  GHCi crash
-------------------------------+--------------------------------------------
Changes (by fryguybob):

  * status:  new => patch


--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4415#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #4415: ghci crash on Windows 7 64bits when press Ctrl-L

GHC
In reply to this post by GHC
#4415: ghci crash on Windows 7 64bits when press Ctrl-L
-------------------------------+--------------------------------------------
    Reporter:  isomorphic      |        Owner:  judahj    
        Type:  bug             |       Status:  patch    
    Priority:  normal          |    Milestone:  7.4.1    
   Component:  GHCi            |      Version:  6.12.3    
    Keywords:  windows 7       |     Testcase:            
   Blockedby:                  |   Difficulty:            
          Os:  Windows         |     Blocking:            
Architecture:  x86_64 (amd64)  |      Failure:  GHCi crash
-------------------------------+--------------------------------------------
Changes (by igloo):

  * owner:  => judahj
  * milestone:  7.2.1 => 7.4.1


Comment:

 Hi Judah, are you able to review Windows patches, or will someone else
 need to look at this?

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4415#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #4415: ghci crash on Windows 7 64bits when press Ctrl-L

GHC
In reply to this post by GHC
#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:                  |  
-------------------------------+--------------------------------------------
Changes (by simonpj):

 * cc: judah.jacobson@… (added)
  * difficulty:  => Unknown


Comment:

 Judah, any progress?  Thanks.

 Simon

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4415#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #4415: ghci crash on Windows 7 64bits when press Ctrl-L

GHC
In reply to this post by GHC
#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 did some more investigation on this issue today;  I should be able to
 push a fix within the next couple of days.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4415#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #4415: ghci crash on Windows 7 64bits when press Ctrl-L

GHC
In reply to this post by GHC
#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 <[hidden email]>
   * 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 [hidden email].

 Wed Jul 18 14:03:25 PDT 2012  Judah Jacobson <[hidden email]>
   * 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

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #4415: ghci crash on Windows 7 64bits when press Ctrl-L

GHC
In reply to this post by GHC
#4415: ghci crash on Windows 7 64bits when press Ctrl-L
-------------------------------+--------------------------------------------
    Reporter:  isomorphic      |       Owner:  igloo    
        Type:  bug             |      Status:  patch    
    Priority:  highest         |   Milestone:  7.6.2    
   Component:  GHCi            |     Version:  6.12.3    
    Keywords:  windows 7       |          Os:  Windows  
Architecture:  x86_64 (amd64)  |     Failure:  GHCi crash
  Difficulty:  Unknown         |    Testcase:            
   Blockedby:                  |    Blocking:            
     Related:                  |  
-------------------------------+--------------------------------------------
Changes (by igloo):

  * owner:  judahj => igloo
  * priority:  normal => highest
  * milestone:  7.6.1 => 7.6.2


Comment:

 I can check on Windows 7.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4415#comment:13>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #4415: ghci crash on Windows 7 64bits when press Ctrl-L

GHC
In reply to this post by GHC
#4415: ghci crash on Windows 7 64bits when press Ctrl-L
-------------------------------+--------------------------------------------
    Reporter:  isomorphic      |       Owner:  igloo    
        Type:  bug             |      Status:  patch    
    Priority:  highest         |   Milestone:  7.6.2    
   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):

 The above patches should fix the issue, and were released in
 haskeline-0.7.0.0.  Was that version (or later) used in ghc-7.6.1?  If so,
 was the issue resolved?

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4415#comment:14>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #4415: ghci crash on Windows 7 64bits when press Ctrl-L

GHC
In reply to this post by GHC
#4415: ghci crash on Windows 7 64bits when press Ctrl-L
-------------------------+--------------------------------------------------
  Reporter:  isomorphic  |          Owner:  igloo        
      Type:  bug         |         Status:  closed        
  Priority:  highest     |      Milestone:  7.6.2        
 Component:  GHCi        |        Version:  6.12.3        
Resolution:  fixed       |       Keywords:  windows 7    
        Os:  Windows     |   Architecture:  x86_64 (amd64)
   Failure:  GHCi crash  |     Difficulty:  Unknown      
  Testcase:              |      Blockedby:                
  Blocking:              |        Related:                
-------------------------+--------------------------------------------------
Changes (by igloo):

  * status:  patch => closed
  * resolution:  => fixed


Comment:

 I couldn't get it to crash in any sort of terminal on Windows 7, so I
 believe this is fixed. Thanks Judah!

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4415#comment:15>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Loading...