Re: Infinite loop on error

Daniele Varrazzo <[email protected]> Mon, 9 Aug 2010 11:00:26 +0100
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
On Thu, Aug 5, 2010 at 2:31 AM, Daniele Varrazzo
<[email protected]> wrote:
>
> I did, but I've not been able to reproduce a loop (I've produced
> segfaults, crashes... but not an infinite loop). Do you have a recipe
> to reproduce it? I have a patch adding the proposed check to the loops
> (http://tinyurl.com/3463bql). If you can test it (or propose how to
> test it) it would be great.

An update on this issue: PostgreSQL developers are not convinced that
the issue was caused by the PQgetResult loop and that the pattern we
use in psycopg is sane - at least as sane as many other programs using
libpq and for which no bug has been reported about such loop
<http://archives.postgresql.org/pgsql-docs/2010-08/msg00007.php>.

Marko, I think we should look for the cause of the infinite close()
loop elsewhere.

-- Daniele