User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch
Tags: patch

Verified patch from upstream fixes the GC segfault for the Time test
described in the bug in ruby1.8=1.8.7.174-2
This patch also fixed related issues when using the chef package on
ubuntu karmic with ruby1.8=1.8.7.174-1

#! /bin/sh /usr/share/dpatch/dpatch-run
## 091125_gc_check.dpatch by Bryan McLellan  <b...@loftninjas.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Expand GC check per upstream issue #2326

@DPATCH@
diff -urNad ruby1.8-1.8.7.174~/gc.c ruby1.8-1.8.7.174/gc.c
--- ruby1.8-1.8.7.174~/gc.c     2009-03-27 10:25:23.000000000 +0000
+++ ruby1.8-1.8.7.174/gc.c      2009-11-25 10:35:42.000000000 +0000
@@ -433,7 +433,7 @@
     if (during_gc)
        rb_bug("object allocation during garbage collection phase");

-    if (ruby_gc_stress || !freelist) garbage_collect();
+    if (ruby_gc_stress || !freelist || !freelist->as.free.next)
garbage_collect();

     obj = (VALUE)freelist;
     freelist = freelist->as.free.next;



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to