Cannot escape from a black hole in ghci 6.10.1
Ahn, Ki Yung
kyagrd at gmail.com
Tue Nov 18 02:37:18 EST 2008
Dear GHC users
I have both GHC 6.8.2 (debian unstable package) and
GHC 6.8.10 (binary distribution from ghc homepage) installed.
I was able to escape from a black hole in ghci 6.8.2 with Ctrl-C.
For example,
GHCi, version 6.8.2: http://www.haskell.org/ghc/ :? for help
Loading package base ... linking ... done.
Prelude> let x = x + x
Prelude> x
^CInterrupted.
Prelude> x
*** Exception: stack overflow
Prelude>
Interestingly, you will get a stack overflow when you try to escape from
the black home for the second time.
In ghci 6.10.1, I am not able to escape from a black hole with Ctrl-C.
GHCi, version 6.10.1: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
Prelude> let x = x + x
Prelude> x
^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C ... (doesn't work)
You can't escape from the black hole and ghci will start
eating up your memory unless kill the ghci process.
Now the black hole behaves like a real black hole :-)
Is this a ticketed bug, or should we make a new ticket?
--
Ahn, Ki Yung
More information about the Glasgow-haskell-users
mailing list