Your message dated Mon, 22 Sep 2014 08:47:23 -0400
with message-id <17881319.eyyg3AK5gD@scott-latitude-e6320>
and subject line Re: python-geoip: Segmentation fault with 'invalid database 
type'
has caused the Debian Bug report #682762,
regarding python-geoip: Segmentation fault with 'invalid database type'
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
682762: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=682762
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python-geoip
Version: 1.2.4-2+b2
Severity: important

Hi!

Today while playing with geoip I saw this:

=====
>>> import GeoIP
>>> gi = GeoIP.new(GeoIP.GEOIP_MEMORY_CACHE)
>>> gi.region_by_addr(IP)
Invalid database type GeoIP Country Edition, expected GeoIP Region Edition, Rev 
1
zsh: segmentation fault  python
=====

gdb backtrace is attached.

Note that I am using geoip-database-contrib (from contrib) and not
geoip-database.

Thank you!

Best regards,
Nelson

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-geoip depends on:
ii  geoip-database-contrib [geoip-database]  1.7
ii  libc6                                    2.13-33
ii  libgeoip1                                1.4.8+dfsg-3
ii  python                                   2.7.3~rc2-1
ii  python-support                           1.0.15

python-geoip recommends no packages.

python-geoip suggests no packages.

-- no debconf information
Starting program: /usr/bin/python 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x000000000045303e in do_mkvalue.40681 ()

Thread 1 (Thread 0x7ffff7fcf700 (LWP 9202)):
#0  0x000000000045303e in do_mkvalue.40681 ()
No locals.
#1  0x00000000004538f1 in Py_BuildValue ()
No locals.
#2  0x00007ffff5d5210b in GeoIP_SetItemString ()
   from /usr/lib/pymodules/python2.7/GeoIP.so
No symbol table info available.
#3  0x00007ffff5d521c6 in ?? () from /usr/lib/pymodules/python2.7/GeoIP.so
No symbol table info available.
#4  0x00007ffff5d5229c in ?? () from /usr/lib/pymodules/python2.7/GeoIP.so
No symbol table info available.
#5  0x00000000004eaa3b in PyEval_EvalFrameEx ()
No locals.
#6  0x00000000004f1db0 in PyEval_EvalCodeEx ()
No locals.
#7  0x00000000004f29b5 in PyRun_InteractiveOneFlags ()
No locals.
#8  0x00000000004f2d35 in PyRun_InteractiveLoopFlags ()
No locals.
#9  0x00000000004dac00 in Py_Main ()
No locals.
#10 0x00007ffff6976ead in __libc_start_main (main=<optimized out>, 
    argc=<optimized out>, ubp_av=<optimized out>, init=<optimized out>, 
    fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe438)
    at libc-start.c:228
        result = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, 6720115099058317174, 
                4317448, 140737488348224, 0, 0, -6720115098368858250, 
                -6720135641368352906}, mask_was_saved = 0}}, priv = {pad = {
    0x0, 0x0, 0x580f20, 0x7fffffffe448}, data = {prev = 0x0, cleanup = 0x0, 
              canceltype = 5771040}}}
        not_first_call = <optimized out>
#11 0x000000000041e131 in _start ()
No locals.
A debugging session is active.

        Inferior 1 [process 9202] will be killed.

Quit anyway? (y or n) 

--- End Message ---
--- Begin Message ---
On Wed, 25 Jul 2012 09:07:23 -0300 "Nelson A. de Oliveira" <nao...@debian.org> 
wrote:
> Package: python-geoip
> Version: 1.2.4-2+b2
> Severity: important
> 
> Hi!
> 
> Today while playing with geoip I saw this:
> 
> =====
> >>> import GeoIP
> >>> gi = GeoIP.new(GeoIP.GEOIP_MEMORY_CACHE)
> >>> gi.region_by_addr(IP)
> Invalid database type GeoIP Country Edition, expected GeoIP Region Edition, 
Rev 1
> zsh: segmentation fault  python
> =====
> 
> gdb backtrace is attached.
> 
> Note that I am using geoip-database-contrib (from contrib) and not
> geoip-database.

I was able to replicate this in wheezy.  Once I installed the updated package 
I just uploaded to wheezy-backports, the segfault went away, so I'm going to 
call this fixed.  The fixed version is in jessie/sid and will be available in 
wheezy-backports shortly.

Scott K

--- End Message ---
_______________________________________________
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to