Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 87913 invoked from network); 31 Dec 2009 17:52:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Dec 2009 17:52:39 -0000 Received: (qmail 54124 invoked by uid 500); 31 Dec 2009 17:52:37 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 54068 invoked by uid 500); 31 Dec 2009 17:52:36 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 54060 invoked by uid 99); 31 Dec 2009 17:52:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Dec 2009 17:52:36 +0000 X-ASF-Spam-Status: No, hits=-5.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [66.251.72.79] (HELO mail2.nber.org) (66.251.72.79) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Dec 2009 17:52:28 +0000 Received: from perlw2.nber.org (perlw2.nber.org [66.251.72.197]) by mail2.nber.org (8.14.3/8.13.8) with ESMTP id nBVHq2DO007195 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 31 Dec 2009 12:52:03 -0500 (EST) (envelope-from aminoff@perlw2.nber.org) Received: from perlw2.nber.org (localhost [127.0.0.1]) by perlw2.nber.org (8.14.3/8.12.8) with ESMTP id nBVHq2rF029072; Thu, 31 Dec 2009 12:52:02 -0500 Received: from localhost (aminoff@localhost) by perlw2.nber.org (8.14.3/8.14.1/Submit) with ESMTP id nBVHq2Ng029069; Thu, 31 Dec 2009 12:52:02 -0500 Date: Thu, 31 Dec 2009 12:52:02 -0500 (EST) From: Alex Aminoff To: "Philippe M. Chiasson" cc: modperl@perl.apache.org Subject: Re: seg fault in modperl_perl_global_request_save In-Reply-To: <4B3BC8BB.1000706@ectoplasm.org> Message-ID: References: <4B3BC8BB.1000706@ectoplasm.org> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Anti-Virus: Kaspersky Anti-Virus for Linux Mail Server 5.6.39/RELEASE, bases: 20091231 #3419383, check: 20091231 notchecked > Most certainly, yes. A stack trace without debugging symbols is not > very useful in trying to pin down the source of a segfault bug. OK, I compiled mod_perl with MP_DEBUG and MP_TRACE, and got apache to produce a core dump (kern.sugid_coredump=1 appears to be needed on FreeBSD): (gdb) bt #0 0x28384eb4 in strncpy () from /lib/libc.so.7 #1 0x287af9ee in modperl_perl_global_avcv_clear () from /usr/local/libexec/apache22/mod_perl.so #2 0x287afacf in modperl_perl_global_avcv_clear () from /usr/local/libexec/apache22/mod_perl.so #3 0x287afbed in modperl_perl_global_request_save () from /usr/local/libexec/apache22/mod_perl.so #4 0x2879bf7e in modperl_response_handler_cgi () from /usr/local/libexec/apache22/mod_perl.so #5 0x0807bc66 in ap_run_handler (r=0x28eb6058) at config.c:157 #6 0x0807c42f in ap_invoke_handler (r=0x28eb6058) at config.c:372 #7 0x0808c503 in ap_process_request (r=0x28eb6058) at http_request.c:282 #8 0x080890c1 in ap_process_http_connection (c=0x28afe1f0) at http_core.c:190 #9 0x080846a6 in ap_run_process_connection (c=0x28afe1f0) at connection.c:43 #10 0x08084af8 in ap_process_connection (c=0x28afe1f0, csd=0x28afe058) at connection.c:178 #11 0x08092b7f in child_main (child_num_arg=6) at prefork.c:662 #12 0x08092d6c in make_child (s=0x28410f10, slot=6) at prefork.c:758 #13 0x08092fc4 in perform_idle_server_maintenance (p=0x2840f018) at prefork.c:893 #14 0x080934e8 in ap_mpm_run (_pconf=0x2840f018, plog=0x2843d018, s=0x28410f10) at prefork.c:1097 #15 0x08064389 in main (argc=0, argv=0x0) at main.c:740