Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 83638 invoked from network); 20 Feb 2008 12:41:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Feb 2008 12:41:53 -0000 Received: (qmail 34090 invoked by uid 500); 20 Feb 2008 12:41:45 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 33897 invoked by uid 500); 20 Feb 2008 12:41:45 -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 33879 invoked by uid 99); 20 Feb 2008 12:41:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2008 04:41:45 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dirkx@webweaving.org designates 209.132.96.45 as permitted sender) Received: from [209.132.96.45] (HELO skutsje.san.webweaving.org) (209.132.96.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2008 12:41:12 +0000 Received: from skutsje.san.webweaving.org (skutsje.san.webweaving.org [209.132.96.45] (may be forged)) by skutsje.san.webweaving.org (8.12.9/8.12.9) with ESMTP id m1KCfK2Q036449 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 20 Feb 2008 04:41:20 -0800 (PST) (envelope-from dirkx@webweaving.org) Received: from localhost (dirkx@localhost) by skutsje.san.webweaving.org (8.12.9/8.12.9/Submit) with ESMTP id m1KCfKfk036446 for ; Wed, 20 Feb 2008 04:41:20 -0800 (PST) (envelope-from dirkx@webweaving.org) X-Authentication-Warning: skutsje.san.webweaving.org: dirkx owned process doing -bs Date: Wed, 20 Feb 2008 04:41:20 -0800 (PST) From: Dirk-Willem van Gulik X-X-Sender: dirkx@skutsje.san.webweaving.org To: dev@httpd.apache.org Subject: Re: httpd 2.2.8 + mod_cache segfaults In-Reply-To: Message-ID: <20080220042851.G26536@skutsje.san.webweaving.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org On Wed, 20 Feb 2008, Niklas Edmundsson wrote: > Getting a few cycles I thought I should do an easy migration to httpd > 2.2.8, but it seems that the thing is dumping core on me... > > Are anyone else using httpd 2.2.8 together with mod_cache seeing this? > At the moment I'm not sure where the problem is. Our mod_disk_cache > patches are unchanged from 2.2.6 and my patch for mod_cache.c is the > same (the relaxupdates feature, and it's not enabled in config), so > I'm suspecting something changed between httpd 2.2.6 and 2.2.8 that > makes it fall apart on me. Not seeing it - and would love a reproduce test case. While doing my last pass of fiddling - I did notice that we have some apr_bucket_cpy()s which _may_ not do quite the right thing but need to have somethinglike this added rv = apr_bucket_copy(e, &cpy); if (rv == APR_ENOTIMPL) { const char *str; apr_size_t len; /* This takes care of virtual bucket which have * yet not been filled. XXX invocate quick prayer * hoping thre aint no 158Mbyte LANDSAT tiff * lurking in there. */ rv = apr_bucket_read(e, &str, &len, APR_BLOCK_READ); if (rv == APR_SUCCESS) { rv = apr_bucket_copy(e, &cpy); }; }; I did not dare to fix these - as in some cases deeper down such casting has already been done. But my guess is that we may need a more 'omnipotent' bucket copy - and do a pass through most bucket instanciating code at some point. Perhaps an interesting way to testcasing for this would be to make a small module which geguritates, say, a favico.ico as a non mmmaped bucked. That way you'd flush tme out nicely. Dw.