This program makes Python segfault - no other does

Michael Hudson mwh at python.net
Mon May 17 13:54:32 EDT 2004


Juho Saarikko <sorry at but.no.spam> writes:

> I did, that's why the print lines are there. I'm sorry I didn't think to
> include the info from the start... Anyway, here's gdb stacktrace, if
> anyone's interested. The problem is not in unQuoteBytea, which works fine
> untill it tries to discard some temporary variables, at which point,
> kaboom. That would seem to indicate either line #2 or #3, but this is the
> first time I've used a debugger, so I might be quite wrong.
> 
> #0  0x400c4c1b in free () from /lib/libc.so.6
> #1  0x400c4aa3 in free () from /lib/libc.so.6
> #2  0x0807ff2e in PyObject_Free (p=0x81d7240) at Objects/obmalloc.c:774
> #3  0x0807f5a6 in PyMem_Free (p=0x81d7240) at Objects/object.c:2111
> #4  0x4023a2d4 in unQuoteBytea (sin=0x81dd2ec ">nemo wrote:") at libpqmodule.c:417

Oh look, this is clearly inside the libpq extension module!  What
evidence do you have for a bug in Python itself?

Cheers,
mwh

-- 
    . <- the point                                your article -> .
    |------------------------- a long way ------------------------|
                                       -- Christophe Rhodes, ucam.chat



More information about the Python-list mailing list