Summary

heap size > 4GB impossible on 64-bit

Metadata

Attachments

Description

arthurmaciel posted a program which crashed when compiled or hung in csi. Although the original problem was fixed by increasing maximum heap size over 2GB, another problem surfaced: heap resize over 4GB resized to 0, resulting in crash.

 $ ./test -:d -:hm16G
 ...
 [debug] resizing heap dynamically from 2097152k to 4194304k ...
 [debug] resizing heap dynamically from 0k to 1024k ...

This is due to heap_size being unsigned int instead of size_t. Proposed patch posted to chicken-hackers. His program is attached (warning, it requires about 8GB and 15 minutes to run to completion, but problem is demonstrated after a few minutes).

Changes and comments

[2013-02-03 04:20:42 UTC] zbigniew attached h.scm (description=arthurmaciel's original program)

[2013-02-04 21:42:36 UTC] sjamaan changed status from new to closed

[2013-02-04 21:42:36 UTC] sjamaan set resolution to fixed

[2013-02-04 21:42:36 UTC] sjamaan wrote:

Fixed with 623c46bea299fa8fb2e5702661a8e3def1016984