Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Geo-IP CPAN distribution.

Report information
The Basics
Id: 46082
Status: resolved
Priority: 0/
Queue: Geo-IP

People
Owner: Nobody in particular
Requestors: DIEGOK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.37
Fixed in: (no value)



Subject: Bus error / Segfault in a wird situation
I've found that passing an undefined value to open() produce a not managed error. I've tested on two different environments (perl 5.8.8 and 5.10) having the same results. See attached script to reproduce the error.
Subject: geoip_crash.pl
#!/usr/bin/perl use Geo::IP; my $geoip = Geo::IP->open( undef ) || die 'Error: ' . $!;
Hi Diego, much thanks for the report. However, this bug is already fixed in the cvs tree. Revision history for Perl extension Geo::IP. - Fix Pureperl handling of GEOIP_REGION_EDITION_REV0 ( Boris Zentner ) - Fix segfault when undef is supplied as filename to open ( Boris Zentner ) - Fix PP GEOIP_ISP_EDITION handling ( Boris Zentner ) - Add PP support for GEOIP_DOMAIN_EDITION ( Boris Zentner ) - Handle database types in the same way, as the CAPI does ( Boris Zentner ) - Remove Australia double timezones entries. ( Boris Zentner ) 1.37 March 6th 2009 You might find a copy here: http://geoip.cvs.sourceforge.net/viewvc/geoip/perl/ Anyway, I'll release a fixed version soon, thanks! Have a nice day! -- Boris