My C module crashes

Dima Dorfman dima at trit.invalid
Mon Feb 28 17:58:25 EST 2005


On 2005-02-28, Egil Moeller <redhog at takeit.se> wrote:
> I've written a C-module for Python, and it works as intended, but
> obviously does something wrong with its memmory management (refference
> counting), as it causes Python to segfault now and then (randomly,
> whey :S)

Have you tried compiling Python and your module with debugging
enabled? It might make the crash less random--or it might not help at
all, but it's probably worth a try. Running Python with debugging
enabled is a good idea anyway when developing extension modules.



More information about the Python-list mailing list