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

Vincent Veyron <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Wed, 16 Sep 2015 09:40:43 -0500
Michael Schout <[email protected]> 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 was not installed. I suppose that because your test module was also named TryCatch, Apache used it instead in the dependency? I don't understand why the try function works, but anyhow...

I installed TryCatch with 

cpan TryCatch

And renamed your test module to crash.pm 

Now Apache won't start, here is the error :
[Wed Sep 16 18:26:39.331849 2015] [perl:error] [pid 15699:tid 139626838587264] Can't locate TryCatch.pm in @INC (you may need to install the TryCatch module) (@INC contains: /home/lib @ServerRoot/../lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl /etc/apache2) at (eval 85) line 2.\n

Even though 'locate TryCatch.pm' outputs :
/usr/local/lib/x86_64-linux-gnu/perl/5.20.2/TryCatch.pm

and the directory is in @INC. Also :

perl -MTryCatch

works from the command line

Not sure what to do now?

-- 
					Bien à vous, Vincent Veyron

https://marica.fr/
Gestion des contentieux, des dossiers de sinistres assurance et des contrats pour le service juridique
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.