[Xcb] Small bug in xpyb (dir(connection))

Julien Danjou julien at danjou.info
Wed Sep 9 08:02:05 PDT 2009


Hi,

I was curious so I tried stupidly to use and introspect pxyb.
Unfortunately it made my Python segfault!

>>> import xcb
>>> dir(xcb.Connection())

Program received signal SIGSEGV, Segmentation fault.
0x0000000000446d66 in PyDict_GetItem ()
(gdb) bt
#0  0x0000000000446d66 in PyDict_GetItem ()
#1  0x00007ffff66d6685 in xpybConn_getattro (self=0x7ffff7f6eb90, obj=0x7ffff7f9d7d8) at conn.c:221
#2  0x000000000044b654 in ?? ()
#3  0x000000000044c164 in PyObject_Dir ()
#4  0x000000000048a918 in ?? ()
#5  0x00000000004911d5 in PyEval_EvalFrameEx ()
#6  0x00000000004924cd in PyEval_EvalCodeEx ()
#7  0x00000000004926c2 in PyEval_EvalCode ()
#8  0x00000000004b1c08 in PyRun_InteractiveOneFlags ()
#9  0x00000000004b1e3e in PyRun_InteractiveLoopFlags ()
#10 0x00000000004b251e in PyRun_AnyFileExFlags ()
#11 0x0000000000414572 in Py_Main ()
#12 0x00007ffff72095c6 in __libc_start_main () from /lib/libc.so.6
#13 0x00000000004139b9 in _start ()

I'm now it's not the way to use it but anyway that should not happen. :-)

-- 
Julien Danjou
// ᐰ <julien at danjou.info>   http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
// Don't give up.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/xcb/attachments/20090909/70133bb4/attachment.pgp 


More information about the Xcb mailing list