bisect-runner.pl now builds 42 more 5.005_5x releases.
authorNicholas Clark <nick@ccl4.org>
Wed, 7 Dec 2011 17:42:00 +0000 (18:42 +0100)
committerNicholas Clark <nick@ccl4.org>
Wed, 7 Dec 2011 21:17:31 +0000 (22:17 +0100)
Commit 455ece5e082708b1, which added the SSNEW() macro, was buggy and needs
a fix from commit 3c8a44569607336e in order to avoid strange seemingly
unrelated SEGVs.

Porting/bisect-runner.pl

index af37f77..7b2bc34 100755 (executable)
@@ -2559,6 +2559,16 @@ index d60c8dc..867dee4 100644
 EOPATCH
     }
 
+    if ($major == 5
+        && extract_from_file('mg.c', qr/If we're still on top of the stack, pop us off/)
+        && extract_from_file('mg.c', qr/PL_savestack_ix -= 2/)) {
+        # Fix up commit 455ece5e082708b1:
+        # SSNEW() API for allocating memory on the savestack
+        # Message-Id: <tqemtae338.fsf@puma.genscan.com>
+        # Subject: [PATCH 5.005_51] (was: why SAVEDESTRUCTOR()...)
+        apply_commit('3c8a44569607336e', 'mg.c');
+    }
+
     if ($major < 6 && $^O eq 'netbsd'
         && !extract_from_file('unixish.h',
                               qr/defined\(NSIG\).*defined\(__NetBSD__\)/)) {