FS#37145 - [python2-geoip] segfaults Python on import

Attached to Project: Arch Linux
Opened by Marti (intgr) - Monday, 30 September 2013, 16:34 GMT
Last edited by Jan de Groot (JGC) - Monday, 30 September 2013, 16:47 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: After upgrading to python2-geoip package version 1.2.8, the binary will segfault Python. Tested on 2 Arch testing machines.

However, if I build the package manually from svn://svn.archlinux.org/packages/python-geoip/trunk (revision 195467), I cannot reproduce the problem. Possibly a simple rebuild will fix this problem.

(I have [testing] repositoroes enabled, which may have something to do with it).

Here's how I can reproduce this problem:

% gdb -ex r python2
[...]
Python 2.7.5 (default, Sep 6 2013, 09:55:21)
[GCC 4.8.1 20130725 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import GeoIP

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff74d4aea in strlen () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff74d4aea in strlen () from /usr/lib/libc.so.6
#1 0x00007ffff7ab1400 in PyString_FromString () from /usr/lib/libpython2.7.so.1.0
#2 0x00007ffff6212193 in initGeoIP () from /usr/lib/python2.7/site-packages/GeoIP.so
#3 0x00007ffff7b0cb39 in _PyImport_LoadDynamicModule () from /usr/lib/libpython2.7.so.1.0
#4 0x00007ffff7b0ad19 in import_submodule () from /usr/lib/libpython2.7.so.1.0
#5 0x00007ffff7b0af5d in load_next () from /usr/lib/libpython2.7.so.1.0
#6 0x00007ffff7b0b88e in PyImport_ImportModuleLevel () from /usr/lib/libpython2.7.so.1.0
#7 0x00007ffff7af259f in builtin___import__ () from /usr/lib/libpython2.7.so.1.0
#8 0x00007ffff7a65c13 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
#9 0x00007ffff7af40d7 in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.7.so.1.0
#10 0x00007ffff7af7174 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#11 0x00007ffff7afa290 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
#12 0x00007ffff7afa392 in PyEval_EvalCode () from /usr/lib/libpython2.7.so.1.0
#13 0x00007ffff7b1308f in run_mod () from /usr/lib/libpython2.7.so.1.0
#14 0x00007ffff7b14fb0 in PyRun_InteractiveOneFlags () from /usr/lib/libpython2.7.so.1.0
#15 0x00007ffff7b1519e in PyRun_InteractiveLoopFlags () from /usr/lib/libpython2.7.so.1.0
#16 0x00007ffff7b157fe in PyRun_AnyFileExFlags () from /usr/lib/libpython2.7.so.1.0
#17 0x00007ffff7b25c2f in Py_Main () from /usr/lib/libpython2.7.so.1.0
#18 0x00007ffff7474bc5 in __libc_start_main () from /usr/lib/libc.so.6
#19 0x0000000000400741 in _start ()


Additional info:
* package version(s)
python2 2.7.5-2
python2-geoip 1.2.8-1
This task depends upon

Closed by  Jan de Groot (JGC)
Monday, 30 September 2013, 16:47 GMT
Reason for closing:  Duplicate
Additional comments about closing:  Already reported and fixed today by releasing python2-geoip 1.2.8-2.

Loading...