chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] [PATCH] Fix #892 by causing panic instead of crash/seg


From: Peter Bex
Subject: [Chicken-hackers] [PATCH] Fix #892 by causing panic instead of crash/segfault upon heap exhaustion
Date: Fri, 26 Jul 2013 21:48:22 +0200
User-agent: Mutt/1.4.2.3i

Hi all,

After some digging, it looks like the code in C_rereclaim2 which simply
returns when the heap can't be resized is really really wrong.

I'm unsure what the "proper" fix is, but panicking seems like a good
thing to do in the face of unreclaimable memory!  See ticket #892 for
details.

Attached is a simple patch which inserts said panic(), and fixes a
minor typo in another error (it also adds the word "new" to distinguish
it from the other "out of memory" error on line 3328)

Cheers,
Peter
-- 
http://www.more-magic.net

Attachment: 0001-Panic-when-maximum-heap-size-exhausted-instead-of-cr.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]