This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, farshad
Date 2008-11-19.23:15:02
SpamBayes Score 6.694567e-08
Marked as misclassified No
Message-id <1227136504.32.0.564190405144.issue4358@psf.upfronthosting.co.za>
In-reply-to
Content
This is difficult: the backtrace only show plain python operations.
Some hints though:

One backtrace shows a memory corruption in the obmalloc data. This may come from a 
buffer overrun.

You initially selected ctypes in "Components", does this mean that your program 
also use ctypes?
With ctypes it is easy to be caught with a python string converted to a (mutable) 
char* pointer.

For example, on Windows:
>>> import ctypes
>>> c = ctypes.CDLL('msvcrt')
>>> a = "    "
>>> c.strcpy(a, "X" * 50)
50
>>> a
'XXXX'
... and the crash is not far.

Another case of corruption in obmalloc is to try to allocate python objects while 
the GIL is not held. This may happen if you wrote a C function that uses the 
Python API, and call this with ctypes.

In any case, I suggest that you build and a use a debug-enabled version of python 
(configure with --with-pydebug). It catches some errors earlier and sometimes more 
reliably.
History
Date User Action Args
2008-11-19 23:15:04amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, farshad
2008-11-19 23:15:04amaury.forgeotdarcsetmessageid: <1227136504.32.0.564190405144.issue4358@psf.upfronthosting.co.za>
2008-11-19 23:15:03amaury.forgeotdarclinkissue4358 messages
2008-11-19 23:15:02amaury.forgeotdarccreate