pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrea Grassi <andreagrassi@sogeasoft.com>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
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: R: R: R: R: BUG #6342: libpq blocks forever in "poll" function
Date: Tue, 20 Dec 2011 18:28:31 +0100
Message-ID: <002301ccbf3c$cc34b110$649e1330$@com> (raw)
In-Reply-To: <20092.1324399103@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>

This is the server side stack kept by gdb:

(gdb) bt full
#0  0x00002b6488588ae5 in recv () from /lib64/libc.so.6
No symbol table info available.
#1  0x0000000000550cd2 in secure_read ()
No symbol table info available.
#2  0x00000000005563a4 in pq_recvbuf ()
No symbol table info available.
#3  0x00000000005567a7 in pq_getbyte ()
No symbol table info available.
#4  0x00000000005d33e6 in PostgresMain ()
No symbol table info available.
#5  0x00000000005a9708 in ServerLoop ()
No symbol table info available.
#6  0x00000000005aa2b7 in PostmasterMain ()
No symbol table info available.
#7  0x00000000005580be in main ()
No symbol table info available.

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


Regards, Andrea

-----Messaggio originale-----
Da: Tom Lane [mailto:tgl@sss.pgh.pa.us] 
Inviato: martedì 20 dicembre 2011 17.38
A: Andrea Grassi
Cc: harrywr2@comcast.net; 'Craig Ringer'; 'Pg Bugs'; 'Alvaro Herrera'
Oggetto: Re: R: R: R: [BUGS] BUG #6342: libpq blocks forever in "poll"
function 

"Andrea Grassi" <andreagrassi@sogeasoft.com> writes:
> #0  0xffffe410 in __kernel_vsyscall ()
> No symbol table info available.
> #1  0xf76539cb in poll () from /lib/libc.so..
> #2  0xf770d39a in pqSocketCheck () from /home/pg/pgsql/lib-32/libpq.so.5 
> #3  0xf770d49d in pqWaitTimed () from /home/pg/pgsql/lib-32/libpq.so.5 
> #4  0xf770d513 in pqWait () from /home/pg/pgsql/lib-32/libpq.so.5 
> #5  0xf770c6d6 in PQgetResult () from /home/pg/pgsql/lib-32/libpq.so.5 
> #6  0xf770c89c in PQexecFinish () from /home/pg/pgsql/lib-32/libpq.so.5 

What about a stack trace from the connected server process?  libpq
clearly thinks it's waiting for a message from the server, but I wonder
what the server thinks.  Also, what connection status does netstat
show on each side?

			regards, tom lane




view thread (3+ messages)  latest in thread

Message-ID: <002301ccbf3c$cc34b110$649e1330$@com>
Permalink:  ../002301ccbf3c$cc34b110$649e1330$@com/
Also on:    postgresql.org/message-id/002301ccbf3c$cc34b110$649e1330$@com

 · 

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: andreagrassi@sogeasoft.com, tgl@sss.pgh.pa.us, 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: <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>

* 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