#4245: ghci panic: thread blocked indefinitely in an MVar operation
---------------------------------+------------------------------------------
    Reporter:  pturnbull         |        Owner:            
        Type:  bug               |       Status:  new       
    Priority:  normal            |    Milestone:  7.0.2     
   Component:  GHCi              |      Version:  7.0.1     
    Keywords:  MVar              |     Testcase:            
   Blockedby:                    |   Difficulty:            
          Os:  Unknown/Multiple  |     Blocking:            
Architecture:  x86               |      Failure:  GHCi crash
---------------------------------+------------------------------------------
Changes (by Jafet):

  * version:  6.12.3 => 7.0.1
  * os:  MacOS X => Unknown/Multiple


Comment:

 I've encountered the same bug, but in the Windows console with GHC 7.0.1.

 To reproduce:
  1. Start {{{ghci}}} from cmd.exe (or Cygwin bash) in a console.
  2. Press {{{^C}}}.
  3. Hold down the return key.

 {{{
 C:\>ghci
 GHCi, version 7.0.1: http://www.haskell.org/ghc/  :? for help
 Loading package ghc-prim ... linking ... done.
 Loading package integer-gmp ... linking ... done.
 Loading package base ... linking ... done.
 Loading package ffi-1.0 ... linking ... done.
 Prelude> ^C
 C:\>
 Prelude>
 C:\>
 Prelude>
 C:\>

 ... after a moment ...

 Prelude>
 C:\>
 Prelude>
 ghc.exe: panic! (the 'impossible' happened)
   (GHC version 7.0.1 for i386-unknown-mingw32):
         thread blocked indefinitely in an MVar operation

 Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug


 C:\>
 C:\>
 }}}

 After {{{^C}}}, GHC backgrounds itself from cmd.exe and subsequent input
 finds its way to the shell:

 {{{
 Prelude> ^C
 C:\>
 Prelude> input
 'input' is not recognized as an internal or external command,
 operable program or batch file.
 C:\>input
 'nput' is not recognized as an internal or external command,
 operable program or batch file.
 }}}

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

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

Reply via email to