Use of uninitialized value $_[0] in pattern match (m//) at /usr/share/perl5/Geo/IPfree.pm line 80.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
awstats (Debian) |
Fix Released
|
Unknown
|
|||
awstats (Ubuntu) |
Fix Released
|
Low
|
Kees Cook | ||
Jaunty |
Fix Released
|
Low
|
Kees Cook | ||
Karmic |
Fix Released
|
Low
|
Kees Cook |
Bug Description
% /usr/lib/
Use of uninitialized value $_[0] in pattern match (m//) at /usr/share/
# lsb_release -rd
/usr/bin/
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://
100 /var/lib/
IMPACT: every execution of awstats spews warnings (filling logs, cron email, etc)
ADDRESSED: fixed in Debian to correctly initialize Geo::IPfree
PATCH: attached
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
sudo sed -i -e 's/^SiteDomain=
/usr/lib/
expected output: (none)
currently:
Use of uninitialized value $_[0] in pattern match (m//) at /usr/share/
Related branches
affects: | libgeo-ipfree-perl (Ubuntu) → awstats (Ubuntu) |
Changed in awstats (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in awstats (Ubuntu Karmic): | |
assignee: | nobody → Kees Cook (kees) |
description: | updated |
Changed in awstats (Debian): | |
status: | Unknown → Fix Released |
This is actually a bug with awstats. Specifically the geoipfree plugin.
Line 54 calls:
$gi = Geo::IPfree::new();
It should really be
$gi = Geo::IPfree->new();