albertz/pydbattach

pydbattach.sh: gdb fails to import gdb.backtrace

TauPan opened this issue · 0 comments

I get a failure, when I try to attach to a python process with pydbattach.sh:

Loaded symbols for /usr/lib64/pango/1.8.0/modules/pango-basic-fc.so
Reading symbols from /afs/dfn-cert.de/user/delgado/.virtualenvs/marvin/lib/python2.7/site-packages/meliae/_intset.so...done.
Loaded symbols for /afs/dfn-cert.de/user/delgado/.virtualenvs/marvin/lib/python2.7/site-packages/meliae/_intset.so
Reading symbols from /afs/dfn-cert.de/user/delgado/.virtualenvs/marvin/lib/python2.7/site-packages/meliae/_scanner.so...done.
Loaded symbols for /afs/dfn-cert.de/user/delgado/.virtualenvs/marvin/lib/python2.7/site-packages/meliae/_scanner.so
0x00007f7ad963b443 in epoll_wait () from /lib64/libc.so.6
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.3800.2-gdb.py", line 9, in <module>
    from gobject import register
  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
ImportError: No module named backtrace
(gdb) (gdb) (gdb) Invalid data type for function to be called.
(gdb) A debugging session is active.

        Inferior 1 [process 2963] will be detached.

Quit anyway? (y or n) [answered Y; input not from terminal]
Detaching from program: /afs/dfn-cert.de/user/delgado/nobackup/virtualenvs/qtile/bin/python, process 2963
done, you should have a Pdb shell in the Python process now

And I'm back in my shell. This seems to be related to https://bugzilla.gnome.org/show_bug.cgi?id=623552

I'm using meliae===0.4.0.final.0 compiled with Cython==0.23.4 on Python 2.7.6, openSUSE 13.1 (x86_64). gdb version is gdb-7.6.50.20130731-3.1.2.x86_64