Opened 16 months ago

Closed 3 months 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 3 months ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 9 months ago by sjamaan

  • Estimated difficulty set to hard

Changed 3 months ago by LemonBoy

comment:2 Changed 3 months ago by LemonBoy

  • Milestone changed from someday to 5.0

comment:3 Changed 3 months ago by evhan

  • Resolution set to fixed
  • Status changed from new to closed

Fixed by 31d154d and a75a11e.

Note: See TracTickets for help on using tickets.