GHC running out of memory, surprisingly.
Simon Marlow
simonmar at microsoft.com
Thu Jun 19 09:21:04 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
Fixed, thanks for the report.
Cheers,
Simon
More information about the Glasgow-haskell-bugs
mailing list