tags 589956 + confirmed
thanks

* Piotr Lewandowski <piotr.lewandow...@gmail.com>, 2010-07-22, 16:37:
~$ gdb --quiet --args python -c "import pcapy; 
help(pcapy.open_offline('/tmp/dump').next()[0])"
Reading symbols from /usr/bin/python...Reading symbols from 
/usr/lib/debug/usr/bin/python2.6...done.
(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/python -c import\ pcapy\;\ 
help\(pcapy.open_offline\(\'/tmp/pcap\'\).next\(\)\[0\]\)
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
PyObject_GetAttr (v=<unknown at remote 0x7ffff6856be0>, name='__name__') at 
../Objects/object.c:1195
1195    ../Objects/object.c: No such file or directory.
       in ../Objects/object.c
(gdb) info args
v = <unknown at remote 0x7ffff6856be0>
name = '__name__'
(gdb) print (Py_ssize_t)(PyObject*)v->ob_refcnt
$1 = 2
(gdb) print (PyObject*)v->ob_type
$2 = 0x0
(gdb)

(Hrm... the file magically changes its name from "dump" to "pcamp"...)

Thanks for your bugreport, I can reproduce this bug. BTW, you could use "print type(...)" instead of "help(...)" to trigger it, too.

--
Jakub Wilk

Attachment: signature.asc
Description: Digital signature

Reply via email to