A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/306203.html below:

Help! Python either hangs or core dumps when calling C malloc

Help! Python either hangs or core dumps when calling C malloc Help! Python either hangs or core dumps when calling C mallocMike Meyer mwm at mired.org
Thu Sep 8 20:35:35 EDT 2005
"Fredrik Lundh" <fredrik at pythonware.com> writes:

> Lil wrote:'
>
>>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"
>
> so triple-check it.
>
> if your code overwrites the malloc buffer, it's perfectly possible
> that it appears to run fine when you run it standalone or under the
> debugger, but that doesn't mean that your code is fine.

The appropriate aphorism is: "Testing can never reveal the absence of
bugs."

        <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4