Re: segfaults

Craig Main <[email protected]>
Newsgroups gmane.comp.python.db.pypgsql.user
Organization ST Solutions
Message-ID <1051077667.3714.2.camel@localhost>
On Tue, 2003-04-22 at 16:16, Gerhard Häring wrote:

> 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" ?
> 
With the patch compiled in, and using a this file test.py containing:

#!/usr/bin/python

from pyPgSQL import libpq

I get this output:

laptop test # python test.py 
FILE: libpqmodule.c, LINE: 950
FILE: libpqmodule.c, LINE: 952
FILE: libpqmodule.c, LINE: 954
FILE: libpqmodule.c, LINE: 956
FILE: libpqmodule.c, LINE: 963
FILE: libpqmodule.c, LINE: 965
FILE: libpqmodule.c, LINE: 967
FILE: libpqmodule.c, LINE: 969
FILE: libpqmodule.c, LINE: 971
FILE: libpqmodule.c, LINE: 973
FILE: libpqmodule.c, LINE: 975
FILE: libpqmodule.c, LINE: 980
FILE: libpqmodule.c, LINE: 982
FILE: libpqmodule.c, LINE: 1101
FILE: libpqmodule.c, LINE: 1162

Regards
Craig


-- 
Craig Main
RHCE
ST Solutions
Cell: 082-323-4670
Home Tel: 011-760-1900
AIM: SATuxman; ICQ: 75815570
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA+piwjJroSkVVrhL4RAhUzAJ0eEJoYuAdM6OAPXtM/ZrtH4UEcuACeNSvN
W0Brs/XBEntGiP+K1/620cY=
=H78o
-----END PGP SIGNATURE-----
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.