Bugs item #833624, was opened at 2003-10-31 08:43
Message generated for change (Comment added) made by rscottmcintire
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=833624&group_id=8032

Category: Runtime System
Group: 6.0.1
Status: Open
Resolution: Fixed
Priority: 5
Submitted By: Roland Scott McIntire (rscottmcintire)
Assigned to: Nobody/Anonymous (nobody)
Summary: RTS Exhausted max heap size

Initial Comment:
I've lost the exact error message. But basically, the 
message said to report the error to this project. The 
message said that the RTS system went over the 
maximum heap size of roughly 268000000 bytes. 

The machine I'm running on is running windows 2000 and 
has 1GB of memory. The version of GHC is 6.0.1. The 
code was run with the following compiler switches: 
ghc -O -fvia-c prob.hs -o prob.

I've attached the file prob.hs.



----------------------------------------------------------------------

>Comment By: Roland Scott McIntire (rscottmcintire)
Date: 2004-01-03 00:09

Message:
Logged In: YES 
user_id=847023

The last message is not complete. The runtime error message 
is now: 'Heap Exhausted: Current maximum heap size is 
(256Mb); use +RTS -M<size> to increase it.' 

I compiled the sample program from ghci as 
:!ghc -O -fvia-c +RTS -M500m -RTS prob.hs -o prob     
and then ran it from the ghci shell as 
:!prob.

My expectations are that the program prob should run or it 
should fail and complain that 500Meg is not enough.


----------------------------------------------------------------------

Comment By: Roland Scott McIntire (rscottmcintire)
Date: 2004-01-03 00:03

Message:
Logged In: YES 
user_id=847023

I am now using GHC version 6.2. The error message is 


----------------------------------------------------------------------

Comment By: Sigbjorn Finne (sigbjorn)
Date: 2003-10-31 11:25

Message:
Logged In: YES 
user_id=232905

Thanks for a fine report. The heap overflow wasn't reported 
as gracefully as it could be. Fixed now.

You can change the default max heap size to be greater than 
256M via the -M RTS option. You do seem to have a space 
leak on your hands, though.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=833624&group_id=8032
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to