#58 ✓ resolved
Psycopg website

Apparent race condition in psycopg2

Reported by Psycopg website | June 6th, 2011 @ 08:29 PM

Submitted by: tgl@sss.pgh.pa.us

There's a report at https://bugzilla.redhat.com/show_bug.cgi?id=711095 of an apparent race condition in psycopg2: it neglects to increment a refcount while waiting for a query to execute, which means that a python garbage collection in another thread can cause a crash. Or at least that's Dave Malcolm's theory of what's happening. I'd appreciate your opinion on it. (If you can, please either add a comment to that bugzilla entry, or reply to me by email.)

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Psycopg is the most used PostgreSQL adapter for the Python programming language. At the core it fully implements the Python DB API 2.0 specifications. Several extensions allow access to many of the features offered by PostgreSQL.

Shared Ticket Bins

Pages