From: <gh...@gh...> - 2003-04-22 14:15:06
|
Craig Main wrote: > On Sat, 2003-04-19 at 11:37, Gerhard Häring wrote:> >>Craig Main wrote: >>>Hi all, >>> >>>Can anyone point me in the right direction for solving this? I am >>>running Gentoo. Running python test/PgSQLTestCases.py gives a segfault. >>>I have narrowed it down to the "from pyPgSQL import PgSQL" line. >>> >>>Any ideas? >> >>Does "from pyPgSQL import libpq" segfault already, too? > > yes > > This is what I get in the backtrace: > > (gdb) core core > Core was generated by `python PgSQLTestCases.py'. > Program terminated with signal 11, Segmentation fault. > #0 0x402a6637 in ?? () > #0 0x402a6637 in ?? () > #1 0x402aa7dc in ?? () > [...] Ouch. This isn't useful :-( To debug these kind of crashes we'll need to add diagnostic output to the C sources. Could you please apply the attached patch to libpqmodule.c (the patch is against pyPgSQL 2.3) and post the output of a "from pyPgSQL import libpq" ? Thanks, -- Gerhard |