[ZODB-Dev] Latest news: core dump with small change to POSException.py
Barry A. Warsaw
barry@zope.com
Wed, 26 Sep 2001 01:03:16 -0400
>>>>> "GW" == Greg Ward <gward@mems-exchange.org> writes:
GW> Managed to pull a bit of gdb trivia out of the far recesses of
GW> my brain: "x/s ((PyStringObject *)co->co_name)->ob_sval"
GW> treats the pointer in question as a pointer to a C string, and
GW> reveals the full string: "test_merge" -- which is the name of
GW> the Python function where the exception is being caught, and
GW> where Python is dumping core.
Don't forget about _PyObject_Dump() which can help debug Python
objects. See Misc/gdbinit
-Barry