Bug#814080: plack::handler::apache2/plack::util crashes after a while

2016-02-08 Thread Alexander Zangerl
Package: libplack-perl
Version: 1.0033-1
Severity: normal

i've got a few small web applications written in mojolicious that
i run via

 SetHandler perl-script
 PerlResponseHandler Plack::Handler::Apache2
 PerlSetVar psgi_app /path/to/the/app
 PerlSetEnv PLACK_ENV "production"

ie, within the apache and using mod_perl. this starts up just fine, works
a few days, then inevitably crashes with the following error message:

Feb 8 08:19:21  apache2[3425]: [perl:error] [pid 3425:tid...]
[client ...] Error while loading /path/to/the/app: Global symbol
"$_file" requires explicit package name at (eval 8) line 3.\n,
referer: somereferrer

the code in question is _load_sandbox() in plack::util, but it's not clear to
my why this would work once but not more than once.

the mojolicious apps in question have all been cleared of any findbin, by
the way; they only use 'use lib "$ENV{MOJO_HOME}/lib";' because i suspected
findbin as the cause of the problem - but neither findbin with ->again nor
findbin without changed the behaviour any.

even more puzzling is the fact that this very same code and config has been
working reliably for years on wheezy (with its apache2.2 and whatever version
of plack that wheezy came with).

i've been experiencing this problem only  since i upgraded to squeeze and
its perl, plack and apache versions.

regards
az



Bug#814080: plack::handler::apache2/plack::util crashes after a while

2016-02-08 Thread Niko Tyni
On Mon, Feb 08, 2016 at 07:23:27PM +1000, Alexander Zangerl wrote:
> Package: libplack-perl
> Version: 1.0033-1
> Severity: normal
> 
> i've got a few small web applications written in mojolicious that
> i run via
> 
>  SetHandler perl-script
>  PerlResponseHandler Plack::Handler::Apache2
>  PerlSetVar psgi_app /path/to/the/app
>  PerlSetEnv PLACK_ENV "production"
> 
> ie, within the apache and using mod_perl. this starts up just fine, works
> a few days, then inevitably crashes with the following error message:
> 
> Feb 8 08:19:21  apache2[3425]: [perl:error] [pid 3425:tid...]
> [client ...] Error while loading /path/to/the/app: Global symbol
> "$_file" requires explicit package name at (eval 8) line 3.\n,
> referer: somereferrer
> 
> the code in question is _load_sandbox() in plack::util, but it's not clear to
> my why this would work once but not more than once.

Smells like a problem in mod_perl, I think.
 
> i've been experiencing this problem only  since i upgraded to squeeze and
> its perl, plack and apache versions.

I assume you mean s/squeeze/jessie/ here.

Just to double check, do you have libapache2-mod-perl2 2.0.9~1624218-2+deb8u1
installed?  The first version in jessie (without +deb8u1) has known issues.
-- 
Niko Tyni   nt...@debian.org



Bug#814080: plack::handler::apache2/plack::util crashes after a while

2016-02-08 Thread Alexander Zangerl
On Mon, 08 Feb 2016 22:08:11 +0200, Niko Tyni writes:
>> i've been experiencing this problem only  since i upgraded to squeeze and
>> its perl, plack and apache versions.
>
>I assume you mean s/squeeze/jessie/ here.

oh yes, sorry - indeed i do, i just confuzzle the release names occasionally.

>Just to double check, do you have libapache2-mod-perl2 2.0.9~1624218-2+deb8u1
>installed?  The first version in jessie (without +deb8u1) has known issues.

yes, my systems are kept uptodate wrt jessie and jessie-updates weekly.
here are the relevant package versions as installed:

libapache2-mod-perl2 2.0.9~1624218-2+deb8u1
perl 5.20.2-3+deb8u3
libplack-perl1.0033-1

regards
az


-- 
Alexander Zangerl + GPG Key 0xB963BD5F + http://snafu.priv.at/
"Off she goes, gently but flamboyantly launching the oversize walnut 
down the frozen river." -- David Attenborough explains curling


signature.asc
Description: Digital Signature