uh oh, another bug report :) (it and big computations)
Hal Daume III
hdaume at ISI.EDU
Tue Sep 24 13:34:24 EDT 2002
Me again :)
Here's the offending code:
> module Foo where
> foo :: Int -> [((Int,Int), Int)]
> foo width = [((i,j),if i==j then 0 else 1) | i <- [1..50], j <-
> [1..width]]
largely arbitrary, the point is to make something that takes a while to
compute.
now, using ghci (5.04.1, sparc solaris, from binaries), we load Foo. now,
if we execute "foo 5" and then when it's done, type "it", it correctly
reproduces what it had. however, if we do something which will take a
while (say "foo 100") and then pound control-c to get it to be
"Interrupted!", then type "it", we get:
...43,4),1),((43,5),1),((43,6),1),((43,7),1),((43,8),1),((43,9),1),((43,10),Interrupted.
*Foo> it
ghc-5.04.1: panic! (the `impossible' happened, GHC version 5.04.1):
rdrNameModule it
Please report it as a compiler bug to glasgow-haskell-bugs at haskell.org,
or http://sourceforge.net/projects/ghc/.
Should be pretty easy to reproduce. Happens on things other than lists,
too (for example, arrays -- which is where i noticed it).
--
Hal Daume III
"Computer science is no more about computers | hdaume at isi.edu
than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume
More information about the Glasgow-haskell-bugs
mailing list