Opened 11 years ago

Closed 11 years ago

#974 closed defect (fixed)

heap size > 4GB impossible on 64-bit

Reported by: Jim Ursetto Owned by: Jim Ursetto
Priority: major Milestone: someday
Component: core libraries Version: 4.8.x
Keywords: Cc:
Estimated difficulty:

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).

Attachments (1)

h.scm (698 bytes) - added by Jim Ursetto 11 years ago.
arthurmaciel's original program

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by Jim Ursetto

Attachment: h.scm added

arthurmaciel's original program

comment:1 Changed 11 years ago by sjamaan

Resolution: fixed
Status: newclosed

Fixed with 623c46bea299fa8fb2e5702661a8e3def1016984

Note: See TracTickets for help on using tickets.