Skip site navigation (1) Skip section navigation (2)

BUG #1736: endless loop in PQconnectdb

From: "Karsten Desler" <pgsql(at)soohrt(dot)org>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1736: endless loop in PQconnectdb
Date: 2005-06-28 15:39:49
Message-ID: 20050628153949.8AAAFF0AC8@svr2.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      1736
Logged by:          Karsten Desler
Email address:      pgsql(at)soohrt(dot)org
PostgreSQL version: 7.4.7
Operating system:   debian sarge
Description:        endless loop in PQconnectdb
Details: 

I've got a pretty flaky tcpip connection to a Postgres 7.4.7 database server
and often times (once or twice a day) my program gets stuck in an endless
busy-loop in PGconnectdb.

An excerpt from a strace:
poll([{fd=389, events=POLLIN|POLLERR, revents=POLLIN|POLLERR|POLLHUP}], 1,
-1) = 1
recv(389, "", 1, 0)                     = 0
poll([{fd=389, events=POLLIN|POLLERR, revents=POLLIN|POLLERR|POLLHUP}], 1,
-1) = 1
recv(389, "", 1, 0)                     = 0
...

SSL is not involved. Sadly I can't say how far along in the connection
process the bug is triggered, but I could install a libpq3 with debugging
symbols and add a few strategically placed gdb watch/break points, if
needed.

Responses

pgsql-bugs by date

Next:From: Andreas PflugDate: 2005-06-28 16:59:51
Subject: Re: row number -1 is out of range 0..-1
Previous:From: Tom LaneDate: 2005-06-28 14:41:08
Subject: Re: row number -1 is out of range 0..-1

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group