pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrea Grassi <andreagrassi@sogeasoft.com>
Cc: harrywr2@comcast.net
Cc: 'Craig Ringer' <ringerc@ringerc.id.au>
Cc: 'Pg Bugs' <pgsql-bugs@postgresql.org>
Cc: 'Alvaro Herrera' <alvherre@commandprompt.com>
Subject: Re: R: R: R: R: BUG #6342: libpq blocks forever in "poll" function
Date: Tue, 20 Dec 2011 12:42:26 -0500
Message-ID: <6410.1324402946@sss.pgh.pa.us> (raw)
In-Reply-To: <002301ccbf3c$cc34b110$649e1330$@com>
References: <E1RbSUA-0003kd-Tb@wrigleys.postgresql.org>
	<4EEB0006.7080205@ringerc.id.au>
	<001201ccbbfc$82c987a0$885c96e0$@com>
	<4EEC3462.80702@ringerc.id.au>
	<000601ccbef6$060820d0$12186270$@com>
	<1324395708-sup-4443@alvh.no-ip.org>
	<001701ccbf34$72480970$56d81c50$@com>
	<20092.1324399103@sss.pgh.pa.us>
	<002301ccbf3c$cc34b110$649e1330$@com>

"Andrea Grassi" <andreagrassi@sogeasoft.com> writes:
> This is the server side stack kept by gdb:
> [ server is waiting to receive something from client ]

> The netstat command on client and server connection has this output:
> The first line should be the server, the second the client.

> Proto Recv-Q Send-Q Local Address           Foreign Address         State
> PID/Program name
> tcp        0      0 127.0.0.1:5432          127.0.0.1:53129
> ESTABLISHED -
> tcp       48      0 127.0.0.1:53129         127.0.0.1:5432
> ESTABLISHED 29802/g_mrprun.e

Hrm.  What's with the 48 bytes in the client's receive queue?  Surely
the kernel should be reporting that the socket is read-ready, if it's
got some data.  I think you've found an obscure kernel bug ---- somehow
it's failing to wake the poll() caller.

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <6410.1324402946@sss.pgh.pa.us>
Permalink:  ../6410.1324402946@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6410.1324402946@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andreagrassi@sogeasoft.com, harrywr2@comcast.net, ringerc@ringerc.id.au, alvherre@commandprompt.com
  Subject: Re: R: R: R: R: BUG #6342: libpq blocks forever in "poll" function
  In-Reply-To: <6410.1324402946@sss.pgh.pa.us>
  References: <E1RbSUA-0003kd-Tb@wrigleys.postgresql.org> <4EEB0006.7080205@ringerc.id.au> <001201ccbbfc$82c987a0$885c96e0$@com> <4EEC3462.80702@ringerc.id.au> <000601ccbef6$060820d0$12186270$@com> <1324395708-sup-4443@alvh.no-ip.org> <001701ccbf34$72480970$56d81c50$@com> <20092.1324399103@sss.pgh.pa.us> <002301ccbf3c$cc34b110$649e1330$@com> <6410.1324402946@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox