From: Brian Pane Date: Sat, 29 Oct 2005 21:11:51 +0000 (+0000) Subject: Allocate the brigade containing the EOR bucket from the connection X-Git-Tag: 2.3.0~2817 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0538ad65c0247c395f40f2d2e751507dd32adcf;p=thirdparty%2Fapache%2Fhttpd.git Allocate the brigade containing the EOR bucket from the connection pool, rather than the request pool, because the core output filter may need to reference the brigade immediately after deleting the EOR bucket (and thus the request pool). This fixes a coredump encountered when running t/TEST on an httpd compiled with "--enable-pool-debug." git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@329484 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_request.c b/modules/http/http_request.c index 43abefc0ebe..adbf4be883e 100644 --- a/modules/http/http_request.c +++ b/modules/http/http_request.c @@ -254,7 +254,7 @@ void ap_process_async_request(request_rec *r) * this bucket is destroyed, the request will be logged and * its pool will be freed */ - bb = apr_brigade_create(r->pool, r->connection->bucket_alloc); + bb = apr_brigade_create(r->connection->pool, r->connection->bucket_alloc); b = ap_bucket_eor_create(r->connection->bucket_alloc, r); APR_BRIGADE_INSERT_HEAD(bb, b); ap_pass_brigade(r->connection->output_filters, bb);