← Back to team overview

launchpad-dev team mailing list archive

Re: ec2 hangs - backtrace tool?

 

On 04/21/2010 05:28 PM, Michael Hudson wrote:
Sending to the list this time, sorry about that!

On 21/04/10 21:15, Max Bowsher wrote:
On 21/04/10 04:42, Tim Penhey wrote:
Hi people,

Today both mwhudson and I had hangs on ec2 where the windmill tests
appeared
to fail, and then the tests hung. The log files didn't contain
complete stack
traces, and when we shelled into the instances their load was zero,
and using
mwhudson's python stack queryer it seems it was just waiting for
connections.

Where does this rather useful sounding tool live? :-)

https://code.edge.launchpad.net/~mwhudson/+junk/pygdb

As the branch description says:

"Hacks to get python backtraces out of core files using some code i
found under a rock to talk to gdb's "machine interface"."

It's a bit rough around the edges but it's probably useful. I should
polish a bit and announce it somewhere I guess...

To use it, run "python backtrace.py $pid" or "python backtrace.py -c
$core".

Cheers,
mwh


I have added instructions for using the backtrace.py script to https://dev.launchpad.net/Debugging/GDB. They are simple, and anyone can do this if they find themselves with a similar crash or hang.

That page also has a nice overview and simple How To for debugging python processes with GDB itself, copied from the Python.org wiki.


Maris



References