GHC running out of memory, surprisingly.
George Russell
ger at tzi.de
Mon Jun 16 10:52:05 EDT 2003
Yes, I know functional languages are memory hogs, but really!
The following is on linux
# ghci
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 6.0, for Hask
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Loading package base ... linking ... done.
Prelude> :module + Foreign.Marshal.Alloc
Prelude Foreign.Marshal.Alloc> b1 <- mallocBytes 1000
Prelude Foreign.Marshal.Alloc> b2 <- reallocBytes b1 0
*** Exception: resource exhausted
Action: realloc
Reason: out of memory
More information about the Glasgow-haskell-bugs
mailing list