#3112: GHCI Crashes on self referential local variable
--------------------+-------------------------------------------------------
Reporter: dvs | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.10.1 | Severity: normal
Keywords: | Testcase:
Os: Windows | Architecture: x86
--------------------+-------------------------------------------------------
{{{
f :: Int -> Int
f x =
let p = x*x
in
let p = p*x
in p
}}}
Causes a segfault of GHCI on Windows XP Service Pack 2, and unbounded
memory consumption on Linux. There is no output when the crash occurs,
after invoking the function (for example f 7) it just immediately drops
back to a command prompt in Windows. I would expect some sort of error
message to be printed, perhaps <loop>, and then return gracefully to the
GHCI prompt.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3112>
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