httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53609] Apache hangs with terminated signal 6
Date Fri, 27 Jul 2012 14:31:20 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53609

Ruediger Pluem <rpluem@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|mpm_worker                  |APR
            Version|2.4.2                       |HEAD
            Product|Apache httpd-2              |APR

--- Comment #5 from Ruediger Pluem <rpluem@apache.org> ---
I guess this is a bug in APR:

Can you please test the following patch:

Index: tables/apr_tables.c
===================================================================
--- tables/apr_tables.c (revision 1366342)
+++ tables/apr_tables.c (working copy)
@@ -730,15 +730,18 @@
     apr_table_entry_t *next_elt;
     apr_table_entry_t *end_elt;
     apr_uint32_t checksum;
+    apr_pool_t *pool;
     int hash;

 #if APR_POOL_DEBUG
     {
-       if (!apr_pool_is_ancestor(apr_pool_find(key), t->a.pool)) {
+    pool = apr_pool_find(key);
+       if ((pool != key) && (!apr_pool_is_ancestor(pool, t->a.pool))) {
            fprintf(stderr, "apr_table_mergen: key not in ancestor pool of
t\n");
            abort();
        }
-       if (!apr_pool_is_ancestor(apr_pool_find(val), t->a.pool)) {
+    pool = apr_pool_find(val);
+       if ((pool != val) && (!apr_pool_is_ancestor(pool, t->a.pool))) {
            fprintf(stderr, "apr_table_mergen: val not in ancestor pool of
t\n");
            abort();
        }

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message