Opened 8 years ago

Closed 7 years ago

#1257 closed defect (fixed)

out-of-memory sometimes causes infinite loop

Reported by: kristianlm Owned by:
Priority: major Milestone: 5.0
Component: unknown Version: 4.10.x
Keywords: Cc:
Estimated difficulty: hard

Description

Following the "discussion" on http://paste.call-cc.org/paste?id=efbe6a448b152968694221b82b299181f28925a3#a12 we see that, sometimes, running

$ csi -s oom.scm -:hm8M -:g 2>&1 | grep resize
[GC] resized heap to 3145728 bytes
[GC] resized heap to 6291456 bytes
[GC] resized heap to 8388608 bytes
[GC] resized heap to 8388608 bytes
[GC] resized heap to 8388608 bytes
[GC] resized heap to 8388608 bytes
[GC] resized heap to 8388608 bytes
[GC] resized heap to 8388608 bytes
[GC] resized heap to 8388608 bytes
[GC] resized heap to 8388608 bytes
[GC] resized heap to 8388608 bytes
[GC] resized heap to 8388608 bytes
...

triggers an infine heap-resize loop

with oog.scm being

(define state '())

(let loop ()

(set! state (alist-update (random 10000) (make-string 1000) state))
(loop))

this has been reproduced on 4.10.1 a 4.10.0

Attachments (1)

gc.patch (671 bytes) - added by LemonBoy 7 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 8 years ago by sjamaan

Estimated difficulty: hard

Changed 7 years ago by LemonBoy

Attachment: gc.patch added

comment:2 Changed 7 years ago by LemonBoy

Milestone: someday5.0

comment:3 Changed 7 years ago by evhan

Resolution: fixed
Status: newclosed

Fixed by 31d154d and a75a11e.

Note: See TracTickets for help on using tickets.