Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 90A379C3461 for ; Tue, 20 Dec 2011 05:02:13 -0400 (AST) Received: from fw.sogeasoft.biz ([151.9.34.199]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RcvaK-0003AR-Pv for pgsql-bugs@postgresql.org; Tue, 20 Dec 2011 09:02:13 +0000 Received: from localhost (localhost [127.0.0.1]) by fw.sogeasoft.biz (Postfix) with ESMTP id 064FB340826B7; Tue, 20 Dec 2011 10:01:56 +0100 (CET) X-Virus-Scanned: amavisd-new at fw.sogeasoft.biz Received: from fw.sogeasoft.biz ([127.0.0.1]) by localhost (fw.sogeasoft.biz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id moWVMT4s3qkG; Tue, 20 Dec 2011 10:01:55 +0100 (CET) Received: from andreagrassi (123-2-1-233.core.dodo.com.au [123.2.1.233]) by fw.sogeasoft.biz (Postfix) with ESMTP id 5A4AE34081295; Tue, 20 Dec 2011 10:01:55 +0100 (CET) From: "Andrea Grassi" To: "'Craig Ringer'" , "Tom Lane" Cc: References: <4EEB0006.7080205@ringerc.id.au> <001201ccbbfc$82c987a0$885c96e0$@com> <4EEC3462.80702@ringerc.id.au> In-Reply-To: <4EEC3462.80702@ringerc.id.au> Subject: R: R: BUG #6342: libpq blocks forever in "poll" function Date: Tue, 20 Dec 2011 10:01:55 +0100 Message-ID: <000601ccbef6$060820d0$12186270$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acy8g9glLkhJwz53Sj6p9HAMrO14WQCb/w0A Content-Language: it X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201112/166 X-Sequence-Number: 31977 Sorry if I insist, but now I have the case at hand (my test program is = now blocked), so I can check and verify all what you want. I would like to know if it can be a libpq bug or if you think the fault = is due to a system bug or to a machine issue and in this case I would be = grateful if you could give me a hint on what could be. Regards, Andrea -----Messaggio originale----- Da: Craig Ringer [mailto:ringerc@ringerc.id.au]=20 Inviato: sabato 17 dicembre 2011 7.19 A: Andrea Grassi Cc: pgsql-bugs@postgresql.org Oggetto: Re: R: [BUGS] BUG #6342: libpq blocks forever in "poll" = function On 16/12/2011 10:10 PM, Andrea Grassi wrote: > The client program and the postgres server are on the same host, = client connects to 127.0.0.1. > In the meantime, my original program blocks (not my example but very = probably the reasons are the same). > > I typed "ps -C testprogramname -o wchan:80=3D" and the output was only = a single dash ( "-" ). That means it's not waiting in a kernel call right now. Was the program=20 in the hung state you've observed at the time you ran the command? Its=20 output would only be interesting when it's hung. > I searched for the complete stack in /proc/$pid/stack (where $pid) was = the pid of my process but this file doesn't exists !! Why ? Old kernel, maybe? You're running on some kind of enterprise-y distro,=20 so who knows how ancient half the stuff in there is. -- Craig Ringer