Opened 12 years ago
Closed 12 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)
Change History (2)
Changed 12 years ago by
comment:1 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed with 623c46bea299fa8fb2e5702661a8e3def1016984
Note: See
TracTickets for help on using
tickets.
arthurmaciel's original program