segfaults

"Robert Coup" <[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
Hey folks,

I've had some random segfaults in psycopg over the last week in a few
systems. Previously they've been fine, and other systems configured
the same run fine. Building a small testcase is tricky, the problem
comes and goes and there's a number of other C modules loaded in the
application. So, I'm looking for ideas. We're running psycopg2 from
r921 under Python2.5, on Ubuntu Feisty under amd64 & i386 (errors
occur on both) against Postgres8.2.

Traceback is below. #1/#2 is interesting, line 701 of pqpath suggests
PyTuple_New() should be called with size=7 statically.

Ringing any bells for anyone?

Rob :)

Program terminated with signal 11, Segmentation fault.
#0  PyErr_Occurred () at ../Python/errors.c:77
#1  0x080997ea in PyTuple_New (size=144071552) at ../Objects/tupleobject.c:68
#2  0xb7b225ef in _pq_fetch_tuples (curs=0x87aa978) at psycopg/pqpath.c:701
#3  0xb7b2391d in pq_fetch (curs=0x87aa978) at psycopg/pqpath.c:1115
#4  0xb7b22393 in pq_execute (curs=0x87aa978,
    query=0x88dc5f4 "\n", ' ' <repeats 14 times>, "SELECT conname,
pg_catalog.pg_get_constraintdef(oid, true) as condef \n", ' ' <repeats
14 times>, "FROM  pg_catalog.pg_constraint r \n", ' ' <repeats 14
times>, "WHERE r.conrelid = 33149 AND r.contype = 'f' \n       "...,
async=0)
    at psycopg/pqpath.c:630
#5  0xb7b2a705 in _psyco_curs_execute (self=0x87aa978,
operation=0x88dc490, vars=0x87e713c, async=0) at
psycopg/cursor_type.c:428
#6  0xb7b2a995 in psyco_curs_execute (self=0x87aa978, args=0x87fb4ec,
kwargs=0x0) at psycopg/cursor_type.c:483
#7  0x080c8a7c in PyEval_EvalFrameEx (f=0x88d68ec, throwflag=0) at
../Python/ceval.c:3564
#8  0x080c9ca5 in PyEval_EvalCodeEx (co=0x86f5140, globals=0x86f224c,
locals=0x0, args=0x88d68b4, argcount=4, kws=0x88d68c4, kwcount=1,
    defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:2831
#9  0x080c8169 in PyEval_EvalFrameEx (f=0x88d6764, throwflag=0) at
../Python/ceval.c:3660
#10 0x080c9ca5 in PyEval_EvalCodeEx (co=0x86e6260, globals=0x86de79c,
locals=0x0, args=0x88d6714, argcount=4, kws=0x88d6724, kwcount=1,
    defs=0x86eafd8, defcount=1, closure=0x0) at ../Python/ceval.c:2831
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.