looking for a debugging tip....

Gregory Trubetskoy grisha at ispol.com
Mon May 1 15:38:19 EDT 2000


A question to C-API gurus:

I'm getting a segafult that I cannot very reliably reproduce, don't really
have any potential theory on what's causing it because careful study of
the code shows that everything is fine, but...

Program received signal SIGSEGV, Segmentation fault.
PyObject_Hash (v=0x81c773f) at object.c:349
349		if (tp->tp_hash != NULL)

If I at least knew what it is that Python is trying to do, e.g. the name
of the object whose type seems to have dissapeared, I'd have a clue on
what's going on.

I saw that there is a Py_DEBUG value in the code - are there any
instructions on how to use it? What is the best way to troubleshoot this
sort of thing?

Thanks,

Grisha





More information about the Python-list mailing list