Return-Path: Delivered-To: apmail-perl-dev-archive@www.apache.org Received: (qmail 57450 invoked from network); 29 Nov 2004 16:55:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 29 Nov 2004 16:55:20 -0000 Received: (qmail 93102 invoked by uid 500); 29 Nov 2004 16:55:12 -0000 Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 93080 invoked by uid 500); 29 Nov 2004 16:55:12 -0000 Mailing-List: contact dev-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@perl.apache.org Received: (qmail 93063 invoked by uid 99); 29 Nov 2004 16:55:12 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from secure.exclamationlabs.net (HELO secure.exclamationlabs.net) (66.77.29.165) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 29 Nov 2004 08:55:10 -0800 Received: from [192.168.2.160] (pcp0010804675pcs.walngs01.pa.comcast.net [69.142.163.148]) (authenticated (0 bits)) by secure.exclamationlabs.net (8.11.6/8.11.6) with ESMTP id iATGt4u01908; Mon, 29 Nov 2004 10:55:04 -0600 Message-ID: <41AB5463.8080600@modperlcookbook.org> Date: Mon, 29 Nov 2004 11:54:59 -0500 From: Geoffrey Young User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040927 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Stas Bekman CC: mod_perl Dev Subject: Re: per-server cleanups core dump? geoff? References: <41A6051B.7080602@stason.org> In-Reply-To: <41A6051B.7080602@stason.org> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary="------------070302060107090606090906" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --------------070302060107090606090906 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Stas Bekman wrote: > Geoff, why there is no thread pointer at this entry? > > * per-server cleanups core dump or are otherwise ineffective > Apache->server->process->pconf->cleanup_register(sub { ... }); > Report: geoff > > could you please give me the info needed to reproduce the problem and > I'll try to fix it? Thanks. see the attached file, which exercises Apache->server->process->pconf->cleanup_register(sub { ... }); when I try to start the server I get a core dump: #0 0x001e5744 in ?? () #1 0x00aff901 in run_cleanups (cref=0x92b10b8) at apr_pools.c:1951 #2 0x00afedb0 in apr_pool_clear (pool=0x92b10a8) at apr_pools.c:693 #3 0x08070cf6 in main (argc=9, argv=0xbfebcbe4) at main.c:574 from my read of the situation, pconf is the proper pool to use here, since it gets destroyed whenever httpd.conf is reparsed (eg restarts), which is typically when you need to do per-server cleanups. --Geoff --------------070302060107090606090906 Content-Type: application/x-gzip; name="My-Cleanup-test.tar.gz" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="My-Cleanup-test.tar.gz" H4sICG1Tq0ECA015LUNsZWFudXAtdGVzdC50YXIA7VhRb+JGEOY1/hWDeDgiHcY2NlRGRYoq KkU60oik174hY49hFeN1dtdHUNX/3lnbBNLctapUiKLbT6BdZmbN2jPfzoxnu95PGUZ5WfQU StVvnQCO4zujIKDRcUZD/8XYoOU6buANAzfQdq6n1RC0zoBSqkgAtFbI0/Qf7P5N/04x+5v/ Z1c31z9P7+7/V/+7jjP0/W/63/UGR/73yN53nUELHOP/k6Nxvl1srFn0gCnL0L79ZO3D4OLi 4n7NJGRMKuApaL20ZtP7K3u3ySzVj3me9vFJicjWU5vlVsvgHfO/ce05+e8PRkf89zX/vUFg +H8OdGCtVBH2+xuelBn2liXLElvyUsSYcrFCO8c6KnqywNheK6J95/caUJ0N9ImgEFxxtSuw 3W4DXCvYsiyDeB3lKwSWg1ojpKUqRWVQre5YebTBEPY4hKL1BYVkPG90OjD3okUq+CYEi+Xk tyxLmJBkJZlCS+BjyQTK0LISOq4EW5ZKr9C7CqG+P2uFOYpIYbJY7kKYPqlfFctkGOrDT38F NH8EQ9sdWd8d/09RAf73+m/geSNT/72N/6uM/sb+993A1P9v6f8XFd2p87/jHfK/7w/JfhjQ YPL/GXCLIptVqZHybxjuE7ApjL/T+v/QD56v/h8OvWf+e8FAn/8jx9T/Z0ERxQ/R6gX5x5ZV SoTAdpwfmvkVma0xDO9QUHk8xxi6l+OvaHQx/Up1K3iMUh7kt3MScl5bViJdrceKfnQgjgrd JVQNg2IbPaEGo67edauR8SjBhAwrecx1uU5Dgk2zsbeALyx63sIctZAWMVW1K5nk1LOsOE+g S10C5FxBgSLFWF1St5KwOFJcAE9pyXaNOehj8g7VZwoViUqxfEVXoV1m7AGzHSgOS7oLnrGE pYy2V/9xbyKrx9KbFPUzoInOqb1JXD/qhcAVtSoourJcwh/w+NROqDmByQT6alP0G7P2GBz4 Uz8sd2ydlv9HL4HO1/8PD+//BiO34v/AM/w/S//fprjPvsV475m0VCNoDlCjPHtF8HsKHBI/ brs6hKAK2q+YzMtcX6Jm/cu1YUgxRzRYRGIlX+mbhb3JvnlfyFiwQlWGHSLv9iNsBSPecOKy Pjj2UWwdbTsMf9M2e1XXAri5mk3rVww/TuDD0RH44SNpP0/nd9e/3DRafWskvhyb2sjAwMDA wMDAwMDAwMDg/eEvAkV1IAAoAAA= --------------070302060107090606090906 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org --------------070302060107090606090906--