Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B1E76200C73 for ; Wed, 26 Apr 2017 01:02:35 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B07C3160BB6; Tue, 25 Apr 2017 23:02:35 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 03C08160BB3 for ; Wed, 26 Apr 2017 01:02:34 +0200 (CEST) Received: (qmail 97439 invoked by uid 500); 25 Apr 2017 23:02:34 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 97429 invoked by uid 99); 25 Apr 2017 23:02:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Apr 2017 23:02:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 807A0188C41 for ; Tue, 25 Apr 2017 23:02:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.379 X-Spam-Level: X-Spam-Status: No, score=0.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 47VXUYmmxerA for ; Tue, 25 Apr 2017 23:02:32 +0000 (UTC) Received: from mail-qt0-f172.google.com (mail-qt0-f172.google.com [209.85.216.172]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id CE98C5F5F9 for ; Tue, 25 Apr 2017 23:02:31 +0000 (UTC) Received: by mail-qt0-f172.google.com with SMTP id y33so153137229qta.2 for ; Tue, 25 Apr 2017 16:02:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=5GUJ5UzSzLF2WdVWXvj6ZTLmksorfxN7ZQGHNcovPUY=; b=mSSeipGmKB4iKsPhghWsZv+Rh8re91Y+gb8Ua8AuWWZSpqcvglBvvxL/YC0dIj32AZ 7aZBs1YTz1FHklyCASMj5Z3VakeSjYUUahm0UqETgCBW+gcDki/gn0ggQ0Pyq6JJ23dE tQQsVWQbiHev5503gPKk5p7lCAqYy+GOwDSW4eyfGHuMH5k4abNNJGxt8PkLeEYRuTS/ 9H6bn+DXHFp4zUUyndrIG5mkKbGeeOno538rJ/djcG2ruA2Td62sDe6KijExo8G+dQYK HQu8tYC6hRVnoCQJGe0/1rHA13cEpHfPeOQMyNxYZnLCepaH1HHaPPUM21uqJOk6COzG 3xwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=5GUJ5UzSzLF2WdVWXvj6ZTLmksorfxN7ZQGHNcovPUY=; b=lEl687j7IBXOjsmPiNCJvoM1Y+piUlAGN4WwRGJlf2Ql0R5mqJmlqxf1wruJqACPiB BpRKRRqspPbq2ZSqdnHx+VFAYpyCS0GAS6ZAkjFW/DJ1xYm8wruRPNvEXFzjS8gAspSh 1oaurmTmj5zeJjv+vr9ah6UNycRQNY5q+PZCZm/FD+KE+bdhfE+73YV/WvgF9RGGpgqT fhPnSsFDcS6xC7EUYJ2zmvy2HJOY5GmbvbZX7JYZ1mQklUp3BdSaGTWMItfsMB2yDxf9 xbKPVGaDnuy2bfBdMNkqqlVegT2j2kPgtjzBvh3tMgWq/PPmdjNMiwuRDKhV5jlX1fI8 vLbw== X-Gm-Message-State: AN3rC/5B5+J8Y7eNw9dGXoEz5uHiAkdhLhpPXIKbFHpfG4aL8JPmhPEl 0elosChQvYijHpUQIs9gcoN2HjuzFw== X-Received: by 10.237.61.174 with SMTP id i43mr32283262qtf.103.1493161350513; Tue, 25 Apr 2017 16:02:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.75.136 with HTTP; Tue, 25 Apr 2017 16:02:29 -0700 (PDT) In-Reply-To: References: <20151006163053.95FFE3A0141@svn01-us-west.apache.org> <80b43623-b6f5-88a2-f455-fedb6fff5b14@gmail.com> From: Yann Ylavic Date: Wed, 26 Apr 2017 01:02:29 +0200 Message-ID: Subject: Re: svn commit: r1707087 - /httpd/httpd/trunk/modules/debugging/mod_bucketeer.c To: httpd-dev Content-Type: text/plain; charset=UTF-8 archived-at: Tue, 25 Apr 2017 23:02:35 -0000 Hi Jacob, On Tue, Apr 25, 2017 at 11:58 PM, Jacob Champion wrote: > > Unfortunately the patch just moves the crash to another location. We can't > call APR_BRIGADE_EMPTY() on a brigade that's pointing at junk. I think a > bucket that cleans up the brigade it's a part of is just not a good idea. :) > So moving to c->pool is an option for a quick fix, I suppose... > > ...but I'm more inclined to look at the whole EOR bucket situation -- > specifically eor_bucket_destroy() and its helpers. Why is the EOR bucket > responsible for freeing the request's pool in the first place? It doesn't > own the request. Surely we should be freeing the pool in the same code > context in which we've allocated the pool? > > One of the comments in eor_bucket.c is "eor_bucket_destroy might be called > at a point of time when the request pool had been already destroyed", which > makes me incredibly suspicious of the whole thing. Finalizers are not a > great place to put business logic. Let me remind this a bit, it's been a long time :) Will have a look at it tomorrow hopefully.. Regards, Yann.