google / pyringe

Debugger capable of attaching to and injecting code into python processes.
Other
1.63k stars 78 forks source link

Failed to automatically load symbol file #21

Open albertz opened 9 years ago

albertz commented 9 years ago

I get this output:

 % python -m pyringe         
Pyringe (Python 2.7.3) on linux2
For a list of debugger commands, try "help()". (python's help is available as pyhelp.)
==> pid:[None] #threads:[0] current thread:[None]
>>> attach(30375)
WARNING:root:Failed to automatically load symbol file, some functionality will be unavailable until symbol file is provided.
==> pid:[30375] #threads:[0] current thread:[None]
>>> threads()
PositionError: Not attached to any process.
WARNING:root:Failed to automatically load symbol file, some functionality will be unavailable until symbol file is provided.
==> pid:[30375] #threads:[0] current thread:[None]
>>> 

How can I get more info about why it failed? There is too less information to debug this.

TehMillhouse commented 9 years ago

This looks like a case of gdb dying on the symbol file sanity check. Sorry for asking the obvious question, but... do you have a suitable symbol file for the build of python you're trying to debug? (see the readme for pointers for some distributions)