Summary
out-of-memory sometimes causes infinite loop
Metadata
- Id: ef5195b2673b9e7602185b68faea548bf9cee133
- Trac id: 1257
- Type: defect
- Reporter: kristianlm
- Owner:
- Cc:
- Status: closed
- Component: unknown
- Estimated difficulty: hard
- Resolution: fixed
- Priority: major
- Milestone: 5.0
- Version: 4.10.x
- Changetime: 2017-03-12 23:52:26 UTC
- Created: 2016-02-05 13:17:18 UTC
- Keywords:
Attachments
- ef5195b2673b9e7602185b68faea548bf9cee133/attachments/gc.patch
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
Changes and comments
[2016-08-25 20:29:47 UTC] sjamaan set difficulty to hard
[2017-03-03 16:55:39 UTC] LemonBoy attached gc.patch (description=#f)
[2017-03-03 17:00:40 UTC] LemonBoy changed milestone from someday to 5.0
[2017-03-12 23:52:26 UTC] evhan changed status from new to closed
[2017-03-12 23:52:26 UTC] evhan set resolution to fixed
[2017-03-12 23:52:26 UTC] evhan wrote:
Fixed by 31d154d and a75a11e.