Help! Python either hangs or core dumps when calling C malloc
Christian Stapfer
nil at dev.nul
Fri Sep 9 00:43:13 EDT 2005
"Lil" <lily.poon at gmail.com> wrote in message
news:1126203439.152057.78210 at o13g2000cwo.googlegroups.com...
>I already double checked my C code. It runs perfectly fine in C without
> any errors. So in my python program, I added a pdb.set_trace()
> and step through the program and it did not dump. But when i took out
> the tracing, the core dump came back. "sigh"
Check your program for _uninitialized_variables_.
(Just a guess: but what other side-effect than
changing the values of uninitialized variables
- and the program's timing, of course - might
the stepping through with a debugger have?)
Regards,
Christian
More information about the Python-list
mailing list