[Python-Dev] Decoding libpython frame information on the stack
varmaa at gmail.com
Thu Jun 28 15:54:52 CEST 2007
Because python-dev is a mailing list for the development *of* Python
rather than development *with* Python, I believe you may not have
posted to the best list. Further information about this distinction,
and some discussion about potentially setting up a special-interest
list exclusively for Python/C interactions, can be found in this
Regarding your question, I'll try to answer it as best I can: on our
Windows application, we use Microsoft minidumps  instead of core
dumps. At the time that a crash occurs and a minidump is written, we
have some code that digs into the Python interpreter state to get a
text traceback for every Python thread currently in execution at the
time of the crash, which is appended to the log file that is sent with
the minidump in the automated bug report. Doing this is a bit risky
because it assumes that the relevant parts of the Python interpreter
state aren't corrupt at the time of the crash, but precautions can be
made to deal with this edge case. So while I can't help you get a
bead on debugging core files, you may want to consider a similar
solution on the Unix platform.
On 6/28/07, Mithun R N <mithun_rn at yahoo.co.in> wrote:
> Hi All,
> Am a new subscriber to this list.
> Am facing an issue in deciphering core-files of
> applications with mixed C and libpython frames in it.
> I was thinking of knowing any work that has been done
> with respect to getting into the actual python line
> (file-name.py:<line number>) from the libpython frames
> on the stack while debugging such core-files. If
> anybody knows some information on this, please let me
> know. I could not get any link on the web that talks
> about this feature.
> Looking forward for your reply.
> Thanks and regards,
> Bollywood, fun, friendship, sports and more... you name it, we have it at http://in.groups.yahoo.com
> Python-Dev mailing list
> Python-Dev at python.org
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/varmaa%40gmail.com
More information about the Python-Dev