Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 93590 invoked from network); 21 Dec 2005 10:21:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Dec 2005 10:21:44 -0000 Received: (qmail 32102 invoked by uid 500); 21 Dec 2005 10:21:38 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 31138 invoked by uid 500); 21 Dec 2005 10:21:34 -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 31112 invoked by uid 99); 21 Dec 2005 10:21:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2005 02:21:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [212.247.154.33] (HELO swip.net) (212.247.154.33) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2005 02:21:33 -0800 X-T2-Posting-ID: z6CTg4UKY4XIoW9YO11DDQ== X-Cloudmark-Score: 0.000000 [] Received: from [83.72.96.33] (HELO [192.168.44.101]) by mailfe02.swip.net (CommuniGate Pro SMTP 5.0.2) with ESMTP id 60447575 for modperl@perl.apache.org; Wed, 21 Dec 2005 11:31:07 +0100 Message-ID: <43A92C9A.5090003@mutex.dk> Date: Wed, 21 Dec 2005 11:21:14 +0100 From: Peter Mogensen User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050927 Debian/1.7.8-1sarge3 X-Accept-Language: da, en-us MIME-Version: 1.0 To: modperl@perl.apache.org Subject: MIME::Lite / mod_perl2 segfault X-Enigmail-Version: 0.91.0.0 Content-Type: multipart/mixed; boundary="------------060609030007050106090607" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. --------------060609030007050106090607 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I think I have the signs of a bug somewhere. I'm building a mod_per2 application and lately the apache2 process has started to sigfault. It seems to be after I started "use"ing MIME::Lite. I've isolated the problem to the 3 small files included. If I use MIME::Lite it apache will segfault on the first or second request. (Also if I run /usr/sbin/apache2 -X ) If I don't use MIME::Lite, everything works. My system is Debian Sarge, kernel 2.6.12.5 (custom compiled) The rest is standard Sarge: ii apache2 2.0.54-5 ii apache2-common 2.0.54-5 ii apache2-mpm-pr 2.0.54-5 ii apache2-utils 2.0.54-5 ii libapache2-mod 1.999.21-1 ii libmime-lite-p 3.01-4 ii libmodule-buil 0.26-1 ii libperl5.6 5.6.1-8.3 ii libperl5.8 5.8.4-8 ii perl 5.8.4-8 I've seen one other post with the same problem: http://www.spanner.org/lists/mod_perl/2005/04/20/9c183e04.html But have have not been able to find an explanation. If I try to locate the cause with the perl-debugger it freezes. regards, Peter Mogensen --------------060609030007050106090607 Content-Type: application/x-perl; name="MP.pm" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="MP.pm" package MP; use warnings; use strict; use MIME::Lite; use Apache::RequestRec ; use Apache::Const -compile => qw(REDIRECT OK SERVER_ERROR); sub handler : method { my $class = shift; my $r = shift; print STDERR "DEBUG REQUEST\n"; $r->content_type('text/plain'); print "Debugtest"; return Apache::OK; } 1; --------------060609030007050106090607 Content-Type: application/x-perl; name="startup.pl" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="startup.pl" # Template for modperl startup ... in -*- perl -*- use lib qw(/home/apm/debugtest); print STDERR "Debugtest startet\n"; print STDERR join(':', @INC), "\n"; 1; --------------060609030007050106090607 Content-Type: text/plain; name="apache.conf" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="apache.conf" # This is an -*- apache -*- conf file ...(or template) ServerName debugtest DocumentRoot /home/apm/debugtest # # # PerlRequire /home/apm/debugtest/db.pl # # # PerlFixupHandler Apache::DB # # # # PerlModule Apache2 PerlPostConfigRequire /home/apm/debugtest/startup.pl SetHandler perl-script PerlResponseHandler MP ErrorLog /home/apm/debugtest/log/error CustomLog /home/apm/debugtest/log/access combined --------------060609030007050106090607--