Opened 3 years ago

Closed 3 years ago

#5368 closed bug (duplicate)

GHCi crash: thread blocked indefinitely in an MVar operation

Reported by: dmitriev200 Owned by: simonmar
Priority: high Milestone: 7.4.1
Component: GHCi Version: 7.0.3
Keywords: Cc:
Operating System: Windows Architecture: x86
Type of failure: GHCi crash Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description (last modified by simonmar)

This is my session with ghci:

C:\a_haskell>ghci
GHCi, version 7.0.3: 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> 1+5
6
Prelude> main = interact wordCount

<interactive>:1:6: parse error on input `='
Prelude> main = interact wordCount

<interactive>:1:6: parse error on input `='
Prelude> main = interact wordCount where wordCount input = show (length (lines i
nput)) ++ "\n"

<interactive>:1:6: parse error on input `='
Prelude> runghc WC < quux.txt

<interactive>:1:1: Not in scope: `runghc'

<interactive>:1:8: Not in scope: data constructor `WC'

<interactive>:1:13: Not in scope: `quux'

<interactive>:1:18: Not in scope: `txt'
Prelude> runghc WC < quux.txt

<interactive>:1:1: Not in scope: `runghc'

<interactive>:1:8: Not in scope: data constructor `WC'

<interactive>:1:13: Not in scope: `quux'

<interactive>:1:18: Not in scope: `txt'
Prelude> Q

<interactive>:1:1: Not in scope: data constructor `Q'
Prelude> X

<interactive>:1:1: Not in scope: data constructor `X'
Prelude>
Prelude> :opt -t
unknown command ':opt'
use :? for help.
Prelude> :set +t
Prelude> succ 7
8
it :: Integer

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

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

Change History (5)

comment:1 Changed 3 years ago by simonmar

  • Description modified (diff)

comment:2 Changed 3 years ago by simonmar

  • Architecture changed from x86_64 (amd64) to x86
  • Component changed from Compiler to GHCi
  • Milestone set to 7.4.1
  • Owner set to simonmar
  • Priority changed from normal to high
  • Type of failure changed from None/Unknown to GHCi crash

Thanks for reporting this.

comment:3 Changed 3 years ago by Y_Less

I managed to get this same error, but for entirely different reasons (it seems). I also (out of interest) tried replicating the code above and didn't get the issue. I can post the code if you like, but it is quite odd - I wrote a Sudoku solver in pure Haskell types, tried running it on a larger size data set than I had been using to test but gave up after a long time (at 50% CPU and 1.2Gb usage solid) and got this issue after I tried something else.

comment:4 Changed 3 years ago by simonmar

  • Summary changed from ghc.exe; panic! (the 'impossible' happened) to GHCi crash: thread blocked indefinitely in an MVar operation

comment:5 Changed 3 years ago by simonmar

  • Resolution set to duplicate
  • Status changed from new to closed

dup of #4245

Note: See TracTickets for help on using tickets.