My C module crashes

Egil Moeller redhog at takeit.se
Mon Feb 28 12:52:29 EST 2005


Hi!

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)

The module source code is available at
http://grimoire.takeit.se/files/CReader.c

The code isn't _that_ long, so someone experienced with writing Python C
modules should probably not have that hard a time finding what I do
wrong :)

Thanks in advance,
Egil Möller





More information about the Python-list mailing list