#1583: GHCi + large Integer arithmetic + Ctrl-C = bad
---------------------------+------------------------------------------------
Reporter: Isaac Dupree | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 6.6.1
Severity: normal | Keywords:
Difficulty: Unknown | Os: Linux
Testcase: | Architecture: Multiple
---------------------------+------------------------------------------------
Now detected and mostly repeatable on x86, not just powerpc.
{{{
$ ghci
Prelude> product [1..50000]
[press control-C repeatedly, without pausing the assault,
until the following line appears:]
3347320509<interactive>: exception :: GhcException
[sometimes this line appears instead, in which case try
again until GhcException reproduced:
3347320509Interrupted.]
}}}
The exact number of digits printed can vary - they ARE the initial digits
of 50000! (factorial), by the way. The `GhcException` can happen whether
this expression is the first thing to be entered into the ghci prompt
session or not. Once it happens, the terminal is rather frozen, although
control-Z to suspend ghci and regain a shell prompt, seems to make the
terminal usable again, and `kill (ghc's pid)` or `kill -9 (ghc's pid)` (I
needed the -9/-KILL once and not another time I tried, inexplicably) also
returns from ghci to my shell.
Even when not so many control-C's are used and it just says Interrupted,
ghci takes an awfully long time before returning to the ghci prompt, which
is undesirable.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1583>
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