Re: psycopg2 2.0.8 - segmentation fault

Karsten Hilbert <[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
Just a short thanks for your tracking down such issues.

Karsten

On Mon, Apr 20, 2009 at 02:58:12AM +0530, Gangadharan S.A. wrote:

> > I managed to reproduce and fix the issue. This is happening because when
> > dealloc-ing, the "Py_BEGIN_ALLOW_THREADS;" in conn_close is letting other
> > threads launch the garbage collector which in turn ends up running the
> > dealloc a second time.
> >
> > The fix is to untrack the connnection object from GC, before going ahead
> > with dealloc, as said in http://docs.python.org/c-api/gcsupport.html

...

-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346
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.