Segfault (core dump) on geoip_db_get_all_info() method call

Bug #1153008 reported by Kian-Meng, Ang
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php-geoip (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

To reproduce the bug

$ sudo apt-get install php5 php5-geoip geoip-database
$ php --version
PHP 5.4.6-1ubuntu1.1 (cli) (built: Nov 15 2012 01:18:34)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

$ php -r "print_r(geoip_db_get_all_info());"
Segmentation fault (core dumped)

php5-geoip need to upgrade from 1.0.7 to 1.0.8. Still haven't apply the fix for php bug 60066 (fixed in version 1.0.8)

Temporary solution is to install the package using PHP's PECL.
$ sudo apt-get install php-pear php5-dev libgeoip-dev geoip-database
$ sudo pecl install geoip
$ echo "extension=geoip.so" | sudo tee -a /etc/php5/conf.d/geoip.ini

See
1. http://pecl.php.net/package-changelog.php?package=geoip&release=1.0.8
2. https://bugs.php.net/bug.php?id=60066

Tags: geoip php
description: updated
description: updated
Revision history for this message
Benjamin Kerensa (bkerensa) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command, as it will automatically gather debugging information, in a terminal:

  apport-collect 1153008

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in php-geoip (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for php-geoip (Ubuntu) because there has been no activity for 60 days.]

Changed in php-geoip (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.