plainblack.com
Username Password
search
Bookmark and Share
View All Tickets
wre 93  (#10502)
Issue

after upgrading from .83 to .93, mod perl would not start, giving the following error in modperl.error.log:


[Wed Jun 10 09:20:17 2009] [error] Integer overflow in hexadecimal number at /data/wre/prereqs/lib/perl5/site_perl/5.10.0/Linux/Smaps.pm line 83, <$f> line 649.\nBEGIN failed--compilation aborted at /data/wre/prereqs/lib/perl5/site_perl/5.10.0/i686-linux/Apache2/SizeLimit.pm line 98.\nCompilation failed in require at /data/wre/etc/modperl.pl line 1.\nBEGIN failed--compilation aborted at /data/wre/etc/modperl.pl line 1.\nCompilation failed in require at (eval 2) line 1.\n
[Wed Jun 10 09:20:17 2009] [error] Can't load Perl file: /data/wre/etc/modperl.pl for server ubuntu21087.aspadmin.net:0, exiting...


haarg and perlDreamer suggested working with the Apache::SizeLimit in modperl.pl.

So I commented all the lines out, restarted modperl and it worked without error.

Haarg thought maybe there was somethign with Linux::Smaps, so we enabled Apache::SizeLimit again and added $Apache2::SizeLimit::USE_SMAPS = 0; to the end of my modperl.pl so the resulting modperl.pl looked like this:

use Apache2::SizeLimit;
$Apache2::SizeLimit::MAX_PROCESS_SIZE = 100000;
$Apache2::SizeLimit::MAX_UNSHARED_SIZE = 75000;
$Apache2::SizeLimit::CHECK_EVERY_N_REQUESTS = 5;
$Apache2::SizeLimit::USE_SMAPS = 0;

however that didnt' work either. - I got the same error for modperl.

I'm running Webgui 7.5.24. This was a step I needed to take to upgrade to latest stable.

 

Comments
elnino
0
6/10/2009 3:07 pm
I'm on ubunto x64

http://perl.apache.org/docs/2.0/api/Apache2/SizeLimit.html (for reference)
elnino
2
6/16/2009 11:41 pm
I've upgraded to webgui 7.6.27, and am getting ther error:
[Tue Jun 16 21:45:07 2009] [error] [client 66.240.210.87] failed to resolve handler `Apache2::SizeLimit': Attempt to reload Apache2/SizeLimit.pm aborted.\nCompilation failed in require at (eval 1305) line 3.\n

It's running my log files amuck.

So I tried uncommenting the lines that Haarg asked me to comment out, and restarted perl, and am getting the same type errors.
elnino
0
6/16/2009 11:47 pm
"same type errors" means that when I uncomment the lines in modperl.pl, I get the same original errors:

[Wed Jun 10 09:20:17 2009] [error] Integer overflow in hexadecimal number at /data/wre/prereqs/lib/perl5/site_perl/5.10.0/Linux/Smaps.pm line 83, <$f> line 649.\nBEGIN failed--compilation aborted at /data/wre/prereqs/lib/perl5/site_perl/5.10.0/i686-linux/Apache2/SizeLimit.pm line 98.\nCompilation failed in require at /data/wre/etc/modperl.pl line 1.\nBEGIN failed--compilation aborted at /data/wre/etc/modperl.pl line 1.\nCompilation failed in require at (eval 2) line 1.\n
[Wed Jun 10 09:20:17 2009] [error] Can't load Perl file: /data/wre/etc/modperl.pl for server ubuntu21087.aspadmin.net:0, exiting...

elnino
0
6/22/2009 11:19 am
I've upgraded to 7.6.28, and am getting the error

[Mon Jun 22 09:08:53 2009] [error] [client 66.240.210.87] failed to resolve handler `Apache2::SizeLimit': Integer overflow in hexadecimal number at /data/wre/prereqs/lib/perl5/site_perl/5.10.0/Linux/Smaps.pm line 83, <$f> line 1505.\nBEGIN failed--compilation aborted at /data/wre/prereqs/lib/perl5/site_perl/5.10.0/i686-linux/Apache2/SizeLimit.pm line 98.\nCompilation failed in require at (eval 1062) line 3.\n

So according to Haarg, I commeted out  PerlCleanupHandler Apache2::SizeLimit on my modperl.conf. Errors are gone for now. but I'm not running SizeLimit.



ehab
1
7/27/2009 6:00 pm

We have the same problem on multiple VPS servers running centOS 4 and 5 when upgrading to .93 when we downgraded to .91 it worked.
perlDreamer
0
8/25/2009 5:26 pm
This URL:

http://www.mail-archive.com/modperl@perl.apache.org/msg20084.html

suggests a patch for fixing the false error/warning.  Please give it a shot on your machine and report back the results.

Note, on RHEL/CentOS, there is a 2nd issue having to do with the file permissions for smap files:

https://bugzilla.redhat.com/show_bug.cgi?id=322881

Feedback Requested by perlDreamer
kimd
0
9/20/2009 5:13 am
Same problem on our site after upgrading to the latest wre (0.9.3) for ubuntu6. None of the above suggestions worked. Only by removing Smaps.pm I was able to make modperl start again (Apache2::SizeLimit detects that it is not there and proceeds withough Smaps.pm). It seems that $Apache2::SizeLimit::USE_SMAPS = 0 does not prevent calls to Smaps.pm even though it may not be used later on.
koen
2
9/20/2009 5:21 am
I would recommend turning it off for now.
pvanthony
3
10/14/2009 1:02 pm
FYI

On Gentoo Hardened 64bit with Hardened kernel 2.6.26, there is no smaps in /proc. The earlier versions had it. It could be my fault as I just copied the config from the old kernel to the new one. Not sure.

Managed to compile wre using gcc hardened for all except, perl, mod_perl and Apache2::Request. For the last three, had to use gcc vanilla. The build script had all what is needed but had to do the --ia64 manually in the script as the variable substitution does not work on my server.

Renamed the file /data/wre/prereqs/lib/perl5/site_perl/5.10.0/Linux/Smaps.pm to Smaps.pm.org.

Currently running for about two days and all is well. This is 64bit system.

In the weekend going from 7.6 to 7.7.
perlDreamer
0
1/13/2010 5:20 pm
Latest update is this suggested patch to Apache2::SizeLimit:

http://www.gossamer-threads.com/lists/modperl/modperl/100757?do=post_view_threaded

Note, however, that the perl maintainers say that the kernel people should fix the problem.
neild
0
9/29/2010 10:13 am
I removed smaps.pm as per Haarg - perlDreamer
and I'm getting this error:

[Wed Sep 29 11:15:15 2010] [error] Can't locate Net/CIDR/Lite.pm in @INC (@INC contains: /data/WebGUI/lib /data/WebGUI/lib /data/wre/prereqs/lib/perl5/5.10.0/i686-linux /data/wre/prereqs/lib/perl5/5.10.0 /data/wre/prereqs/lib/perl5/site_perl/5.10.0/i686-linux /data/wre/prereqs/lib/perl5/site_perl/5.10.0 /data/wre/prereqs) at /data/WebGUI/lib/WebGUI/Utility.pm line 22.\nBEGIN failed--compilation aborted at /data/WebGUI/lib/WebGUI/Utility.pm line 22.\nCompilation failed in require at /data/WebGUI/lib/WebGUI/SQL.pm line 22.\nBEGIN failed--compilation aborted at /data/WebGUI/lib/WebGUI/SQL.pm line 22.\nCompilation failed in require at /data/WebGUI/lib/WebGUI/Session.pm line 20.\nBEGIN failed--compilation aborted at /data/WebGUI/lib/WebGUI/Session.pm line 20.\nCompilation failed in require at /data/WebGUI/lib/WebGUI.pm line 33.\nBEGIN failed--compilation aborted at /data/WebGUI/lib/WebGUI.pm line 33.\nCompilation failed in require at /data/WebGUI/sbin/preload.perl line 36.\nCompilation failed in require at (eval 3) line 1.\n
[Wed Sep 29 11:15:15 2010] [error] Can't load Perl file: /data/WebGUI/sbin/preload.perl for server 192.168.10.41:0, exiting...
daviddelikat
0
10/1/2014 2:01 pm
this issue can be resolved by inserting 'use bignum;' at the beginning of '/data/wre/etc/modperl.pl'
Details
Ticket Status Pending  
Rating2.0 
Submitted Byelnino 
Date Submitted2009-06-10 
Assigned To unassigned  
Date Assigned2023-04-01 
Assigned By 
Severity Critical (mostly not working)  
What's the bug in? WRE  
WebGUI / WRE Version  
URLbugs/tracker/10502
Keywords
Ticket History
9/20/2009
10:13 AM
Pending kimd
8/25/2009
10:26 PM
Feedback Requested perlDreamer
6/10/2009
8:03 PM
Ticket created elnino
© 2023 Plain Black Corporation | All Rights Reserved