Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 15AB21C3D22 for ; Tue, 20 Dec 2011 12:38:44 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rd2i8-0002ft-3A for pgsql-bugs@postgresql.org; Tue, 20 Dec 2011 16:38:44 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id pBKGcOMT020093; Tue, 20 Dec 2011 11:38:24 -0500 (EST) To: "Andrea Grassi" cc: harrywr2@comcast.net, "'Craig Ringer'" , "'Pg Bugs'" , "'Alvaro Herrera'" Subject: Re: R: R: R: BUG #6342: libpq blocks forever in "poll" function In-reply-to: <001701ccbf34$72480970$56d81c50$@com> References: <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> Comments: In-reply-to "Andrea Grassi" message dated "Tue, 20 Dec 2011 17:28:46 +0100" Date: Tue, 20 Dec 2011 11:38:23 -0500 Message-ID: <20092.1324399103@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -4.5 (----) X-Archive-Number: 201112/171 X-Sequence-Number: 31982 "Andrea Grassi" 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