REPOST: how to get traceback from segfault signal handler?

Pete Shinners pete at shinners.org
Mon Dec 31 00:07:58 EST 2001


i'd really-really like to get the python traceback from inside my own 
installed signal handler. i have a semi-big set of c extension modules, 
and it's sadly not too shocking for things to crash. (nothing of 
python's fault, for sure). but it would really aid everyone involved if 
a stacktrace could be printed, similar to a normal exception.

the main problem it seems to come down to, i can't get ahold of the 
interpreter lock, because the thread execution is stopped. something 
like "PyThreadState_Get_VoidWarranty()" would really help me out?

========= WAS CANCELLED BY =======:
Path: news.sol.net!spool0-milwwi.newsops.execpc.com!newsfeeds.sol.net!newspump.sol.net!news.maxwell.syr.edu!feeder.kornet.net!news1.kornet.net!ua4canc3ll3r
From: Pete Shinners <pete at shinners.org>
Newsgroups: comp.lang.python
Subject: cmsg cancel <3C2FF490.9080307 at shinners.org>
Control: cancel <3C2FF490.9080307 at shinners.org>
Date: Mon, 31 Dec 2001 03:21:12 GMT
Organization: Korea Telecom
Lines: 2
Message-ID: <cancel.3C2FF490.9080307 at shinners.org>
NNTP-Posting-Host: 211.57.49.2
X-Trace: news1.kornet.net 1009779265 8801 211.57.49.2 (31 Dec 2001 06:14:25 GMT)
X-Complaints-To: usenet at feeder.kornet.net
NNTP-Posting-Date: Mon, 31 Dec 2001 06:14:25 +0000 (UTC)
X-No-Archive: yes
X-Unac4ncel: yes
X-Commentary: I love NewsAgent 1.10 and the Sandblaster Cancel Engine Build 74 (19 March 1999)

This message was cancelled from within Mozilla.



More information about the Python-list mailing list