By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,846 Members | 1,872 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,846 IT Pros & Developers. It's quick & easy.

Forcing a stack trace from the command line?

P: n/a

I'm working on Orca, a screen reader for the GNOME platform,
and it's being done in Python. Python is working really for
us right now and I'm quite happy with many aspects of it.

Is there a function like CTRL-Backspace in Python? There is
a hang in my code somewhere and I'm unable to find it. When
the hang occurs, all "print" commands seem to stop and I can
only recover by killing the app via Ctrl-Z and kill. In these
cases, Ctrl-C doesn't work even though I've registered signal

signal.signal(signal.SIGINT, shutdownAndExit)
signal.signal(signal.SIGQUIT, shutdownAndExit)

What I'd really like to be able to do is to use something like
Java's CTRL-Backspace to dump a stack trace in these instances
just to give me a clue about where my code is during the hang.

I've tried using sys.settrace() to track things, but it seems
to introduce something into the system that prevents me from
being able to reproduce the hang.

Any advice would be greatly appreciated.



Oct 13 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Willie Walker wrote:
Any advice would be greatly appreciated.

Perhaps strace will tell you something.

Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl)

'Not all who wander are lost.' - J.R.R. Tolkien, The Fellowship of the Ring
Oct 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.