Bug#684290: Unable to use Apache2::SizeLimit

Ernesto Hernández-Novich emhn at usb.ve
Mon May 13 16:19:37 UTC 2013


On Mon, 2013-05-06 at 09:01 -0430, Ernesto Hernández-Novich wrote:
> After upgrading from Squeeze to Wheezy, I'm unable to use my mod_perl
> based application again. Apache's error log shows
> 
> [Mon May 06 08:36:18 2013] [error] [client 192.168.0.202] failed to
> resolve handler `Apache2::SizeLimit': You must install Linux::Pid for
> Apache::SizeLimit to work on your platform.
> at /usr/lib/perl5/Apache/SizeLimit/Core.pm line 128.\nBEGIN
> failed--compilation aborted at /usr/lib/perl5/Apache/SizeLimit/Core.pm
> line 171.\nCompilation failed in require
> at /usr/lib/perl5/Apache2/SizeLimit.pm line 48.\nBEGIN
> failed--compilation aborted at /usr/lib/perl5/Apache2/SizeLimit.pm line
> 48.\nCompilation failed in require at (eval 1489) line 2.\n
> 
> Application works fine after removing the reference to
> Apache2::SizeLimit in Apache's configuration file and restarting.
> Working without Apache2::SizeLimit makes it very hard to control the
> resource consumption of the mod_perl application, so it's not an
> acceptable workaround.

After installing Linux::Pid everything works.

Looking at /usr/lib/perl5/Apache/SizeLimit/Core.pm, there's a BEGIN
block (line 134) having 

elsif ($Config{'osname'} eq 'linux') {
      _load('Linux::Pid');

so it does use Linux::Pid. It also *tries* to use Linux::Smaps a couple
of lines after, but this time it's optional and doesn't fail if it isn't
there.

Neither Linux::Pid nor Linux::Smaps is available on Debian Wheezy nor
Sid, at the time of this writing. I believe Linux::Pid should've been a
part of Debian Wheezy for Apache2::SizeLimit to work properly.
-- 
Prof. Ernesto Hernández-Novich - MYS-220C - @iamemhn
Geek by nature, Linux by choice, Debian of course.
If you can't aptitude it, it isn't useful or doesn't exist.
GPG Key Fingerprint = 438C 49A2 A8C7 E7D7 1500 C507 96D6 A3D6 2F4C 85E3



More information about the pkg-perl-maintainers mailing list