Skip Menu |

This queue is for tickets about the mod_perl CPAN distribution.

Report information
The Basics
Id: 106068
Status: new
Priority: 0/
Queue: mod_perl

People
Owner: Nobody in particular
Requestors: kev [...] brantaero.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: segfault trying to include PerlSwitches statement inside @PerlConfig
Date: Fri, 24 Jul 2015 14:59:07 -0400
To: bug-mod_perl [...] rt.cpan.org
From: Kevin Field <kev [...] brantaero.com>
In a <Perl> section in my httpd.conf, I have this: push @PerlConfig, q~ # PerlSwitches -w PerlOptions +GlobalRequest PerlModule Apache2::Reload PerlInitHandler Apache2::Reload PerlSetVar ReloadAll Off PerlSetVar ReloadModules "MyApp::*" ~; This functions fine. If I uncomment the PerlSwitches line, I can no longer start the server, which says simply "Segmentation fault". This is on mod_perl 2.0.4, the latest supported downstream on CentOS 6.5. It would be nice to be able to include PerlSwitches from within a <Perl> block the same way they work outside a <Perl> block, so that they could be made conditional along with the standard ReloadModules and the like for development only.
Subject: Re: [rt.cpan.org #106068] AutoReply: segfault trying to include PerlSwitches statement inside @PerlConfig
Date: Fri, 24 Jul 2015 15:10:03 -0400
To: bug-mod_perl [...] rt.cpan.org
From: Kevin Field <kev [...] brantaero.com>
I found that if I moved that particular piece of code earlier in the <Perl> section, instead of a segfault, I got a syntax error: $parms->add_config() has failed: mod_perl is already running, too late for PerlSwitches at /usr/lib64/perl5/vendor_perl/Apache2/PerlSections.pm line 215 This is Perl 5.10.1 on CentOS 6.5 64-bit BTW.