Re: panic: attempt to copy freed scalar caused by calling cgi->param with TryCatch since perl 5.19.7

2015-09-16 Thread Michael Schout
Here is a backtrace from the call to Perl_croak() that is triggered, from perl 5.19.7, mod_perl 2.0.9 both built with debugging enabled. > * thread #1: tid = 0x841d66, 0x000102b058af > mod_perl.so`Perl_croak(pat=0x000102c48681) + 95 at util.c:1581, queue = > 'com.apple.main-thread', sto

Dynamically setting Domain during authentication while using Apache2::AuthCookieDBI

2015-09-16 Thread Tosh Cooey
I need an auth cookie to be valid across all subdomains I have, so it makes sense to set the cookie domain to .domain.com However setting that in the Apache config via: PerlSetVar MyDomain .domain.com Isn't what I need since I want to be able to use: domain2.com domain3.com etc depending on w

Re: panic: attempt to copy freed scalar caused by calling cgi->param with TryCatch since perl 5.19.7

2015-09-16 Thread Michael Schout
On 9/16/15 12:06 PM, Steve Hay wrote: > Thanks for the detective work, Michael. I've logged this on > rt.perl.org since it isn't yet clear whether the optimization has a > problem, or whether mod_perl (or maybe TryCatch / Devel::Declare) is > doing anything naughty: Thanks Steve. Wouldn't surpri

Re: panic: attempt to copy freed scalar caused by calling cgi->param with TryCatch since perl 5.19.7

2015-09-16 Thread Michael Schout
On 9/16/15 12:26 PM, Vincent Veyron wrote: > Ha! It was not installed. I suppose that because your test module was also > named TryCatch, Probably. > Not sure what to do now? Rename the crash module as /home/lib/Apache/TryCatch.pm make sure the "package" line still reads "package Apache::TryC

Re: panic: attempt to copy freed scalar caused by calling cgi->param with TryCatch since perl 5.19.7

2015-09-16 Thread Vincent Veyron
On Wed, 16 Sep 2015 09:40:43 -0500 Michael Schout wrote: > On 9/16/15 9:22 AM, Vincent Veyron wrote: > > apt-get install apache2-mpm-prefork libapache2-request-perl > > libapache2-mod-perl2 libapache2-mod-apreq2 > > How did you install TryCatch (the only dependency my module uses)? > Ha! It

Re: panic: attempt to copy freed scalar caused by calling cgi->param with TryCatch since perl 5.19.7

2015-09-16 Thread Michael Schout
On 9/16/15 7:08 AM, Vincent Veyron wrote: > I put your test handler on a machine running Debian 8 (jessie), it works just > fine. I cannot reproduce this at all. I tried on Debian 8 jessie running in virtualbox. perl, modperl, apache all from debian packages. using prefork MPM. TryCatch inst

Re: panic: attempt to copy freed scalar caused by calling cgi->param with TryCatch since perl 5.19.7

2015-09-16 Thread Steve Hay
On 15 September 2015 at 23:15, Michael Schout wrote: > As reported in other thread, I've seen mod_perl emit panic warnings such > as the following ever since 5.19.7: > > panic: attempt to copy freed scalar 7fb2264ffde0 to 7fb2264ffd08 at > /Users/mschout/Sync/Apache-TryCatch/blib/lib/Apache/TryCa

Re: panic: attempt to copy freed scalar caused by calling cgi->param with TryCatch since perl 5.19.7

2015-09-16 Thread Michael Schout
On 9/16/15 9:22 AM, Vincent Veyron wrote: > apt-get install apache2-mpm-prefork libapache2-request-perl > libapache2-mod-perl2 libapache2-mod-apreq2 How did you install TryCatch (the only dependency my module uses)? Regards, Michael Schout

Re: panic: attempt to copy freed scalar caused by calling cgi->param with TryCatch since perl 5.19.7

2015-09-16 Thread Vincent Veyron
On Wed, 16 Sep 2015 08:33:33 -0500 Michael Schout wrote: > Are you using debian packages for the CPAN modules at all? Yes, this is what I use : apt-get install apache2-mpm-prefork libapache2-request-perl libapache2-mod-perl2 libapache2-mod-apreq2 I doubt this makes a difference, but I als

Re: panic: attempt to copy freed scalar caused by calling cgi->param with TryCatch since perl 5.19.7

2015-09-16 Thread John Dunlap
I use the Debian apreq package from apt, to install mod_perl, but the rest of my dependencies I install through cpan On Sep 16, 2015 9:33 AM, "Michael Schout" wrote: > On 9/16/15 7:08 AM, Vincent Veyron wrote: > > > I put your test handler on a machine running Debian 8 (jessie), it works > just f

Re: panic: attempt to copy freed scalar caused by calling cgi->param with TryCatch since perl 5.19.7

2015-09-16 Thread Michael Schout
On 9/16/15 7:08 AM, Vincent Veyron wrote: > I put your test handler on a machine running Debian 8 (jessie), it works just > fine. Fails for me on both CentOS 7 and Darwin (OS X 10.10.5). I see you are using Apache 2.4 (I was using 2.2). I tested with Apache 2.4.16 and it also fails for me on th

Re: panic: attempt to copy freed scalar caused by calling cgi->param with TryCatch since perl 5.19.7

2015-09-16 Thread Vincent Veyron
On Tue, 15 Sep 2015 17:18:06 -0500 Michael Schout wrote: > On 9/15/15 5:15 PM, Michael Schout wrote: > > > Reverting the change to op.c completely fixes the problem. I cannot > > reproduce the panic after this change, and I do not get any segmentation > > faults either in a large codebase that