[Bug 336554] Re: Use of uninitialized value $_[0] in pattern match (m//) at /usr/share/perl5/Geo/IPfree.pm line 80.
Kees Cook
kees at ubuntu.com
Thu Aug 13 20:19:11 BST 2009
** Description changed:
% /usr/lib/cgi-bin/awstats.pl -config=awstats -update > /dev/null
Use of uninitialized value $_[0] in pattern match (m//) at
/usr/share/perl5/Geo/IPfree.pm line 80.
# lsb_release -rd
/usr/bin/lsb_release:81: DeprecationWarning: the sets module is deprecated
import sets
Description: Ubuntu jaunty (development branch)
Release: 9.04
# apt-cache policy libgeo-ipfree-perl
libgeo-ipfree-perl:
Installiert: 0.4-1
Kandidat: 0.4-1
Versions-Tabelle:
*** 0.4-1 0
500 http://de.archive.ubuntu.com jaunty/universe Packages
100 /var/lib/dpkg/status
IMPACT: every execution of awstats spews warnings (filling logs, cron email, etc)
ADDRESSED: fixed in Debian to correctly initialize Geo::IPfree
PATCH: attached
- TEST CASE: /usr/lib/cgi-bin/awstats.pl -config=awstats -update > /dev/null
REGRESSION POTENTIAL: very low: 1 line patch to correct the initialization
+ TEST CASE:
+ sudo apt-get -y install awstats libgeo-ipfree-perl
+ sudo sed -i -e 's/^#LoadPlugin="geoipfree"/LoadPlugin="geoipfree"/' /etc/awstats/awstats.conf
+ sudo sed -i -e 's/^SiteDomain=""/SiteDomain="localhost"/' /etc/awstats/awstats.conf
+ /usr/lib/cgi-bin/awstats.pl -config=awstats -update > /dev/null
+ expected output: (none)
+ currently:
+ Use of uninitialized value $_[0] in pattern match (m//) at /usr/share/perl5/Geo/IPfree.pm line 80.
--
Use of uninitialized value $_[0] in pattern match (m//) at /usr/share/perl5/Geo/IPfree.pm line 80.
https://bugs.launchpad.net/bugs/336554
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to awstats in ubuntu.
More information about the Ubuntu-server-bugs
mailing list