Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 71356 invoked from network); 12 Jan 2010 18:52:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jan 2010 18:52:57 -0000 Received: (qmail 78893 invoked by uid 500); 12 Jan 2010 18:52:55 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 78846 invoked by uid 500); 12 Jan 2010 18:52:55 -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 78838 invoked by uid 99); 12 Jan 2010 18:52:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2010 18:52:55 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.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; Tue, 12 Jan 2010 18:52:43 +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 o0CIqFf9056138 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 12 Jan 2010 13:52:17 -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 o0CIqFiV019271; Tue, 12 Jan 2010 13:52:15 -0500 Received: from localhost (aminoff@localhost) by perlw2.nber.org (8.14.3/8.14.1/Submit) with ESMTP id o0CIqFeQ019267; Tue, 12 Jan 2010 13:52:15 -0500 Date: Tue, 12 Jan 2010 13:52:15 -0500 (EST) From: Alex Aminoff To: Mark Copper cc: modperl@perl.apache.org, feenberg@nber.org Subject: Re: intermittent segfaults, ssl? In-Reply-To: <20100112182417.GF3477@titaninterface.com> Message-ID: References: <20100112182417.GF3477@titaninterface.com> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Anti-Virus: Kaspersky Anti-Virus for Linux Mail Server 5.6.39/RELEASE, bases: 20100112 #3300984, check: 20100112 clean X-Virus-Checked: Checked by ClamAV on apache.org We had a very similar problem. After a lot of effort trying to track down the source, we believe we isolated it to a line of perl code that incorrectly sets $/ without localizing it. mod_backtrace showed that the problem seemed to be happening in modperl_perl_global_request_save Here is the thread that suggested the fix that worked for us: http://www.gossamer-threads.com/lists/modperl/modperl/100066 Here is the thread we posted, not actually any more informative: http://www.gossamer-threads.com/lists/modperl/modperl/100842 The proof is in the pudding. After fixing the line with $/, we went from dozens of seg faults per hour to none. - Alex Aminoff BaseSpace.net National Bureau of Economic Research (nber.org) On Tue, 12 Jan 2010, Mark Copper wrote: > Hi, > > I have a server like this: > Server Version: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g > mod_apreq2-20051231/2.6.0 mod_perl/2.0.4 Perl/v5.10.0 > I'm also using HTML::Mason > > I've been getting intermittent segfaults like this: > child pid 10142 exit signal Segmentation fault (11) > ever since in installed Apache2 in March. > > I am going to try to debug this, but I thought I would ask if anyone > might have a suggestion based on this behavior: > - no segfaults occur with 8 hours of an apache restart; the first fault > can be 8 to 48 hours after restart, the 2nd may occur within seconds; > there have never been more than 5 in a day. > > - I have observed these faults *only* for port 443 (ssl) requests. > > - The simplest case has been when a plain HTML page was served through > mod_perl and mason; e.g. no database call. > > I know probably shouldn't be imposing on list-readers time without doing > more work, but I just wonder is it isn't something really elementary > that I'm missing. > > Mark >