GHCi eats all my memory, even when loading a blank file
My system is a slightly complicated setup -- I have GHC 6.8.2 installed on my system via my package manager (portage), but I have GHC 6.10.1 installed in my home directory. The system is a x86-64 Gentoo machine, 3GB RAM (plus 2GB swap).
I can use this system just fine with the ghc executable, building code, running code, installing packages via cabal and so on.
But I went to run ghci earlier, seemingly for the first time. If I run ghci on any file (including a blank .hs file), ghci promptly eats up all my physical RAM and swap (5GB total) and grinds the system to a halt. If I run it with -v5 (or without flags), the last lines are:
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
I accept this may be an artifact of my odd configuration, but I figure eating 5GB of RAM rather than giving an error message should count as a bug :-) I'm happy to run more tests as necessary.
Trac metadata
Trac field | Value |
---|---|
Version | 6.10.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |