Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 1A9B61542B97 for ; Mon, 19 Dec 2011 11:14:39 -0400 (AST) Received: from fw.sogeasoft.biz ([151.9.34.199]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RcevA-0004nU-Cl for pgsql-bugs@postgresql.org; Mon, 19 Dec 2011 15:14:38 +0000 Received: from localhost (localhost [127.0.0.1]) by fw.sogeasoft.biz (Postfix) with ESMTP id E75FF340826B1; Mon, 19 Dec 2011 16:14:18 +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 EIt9Js3Er3Ri; Mon, 19 Dec 2011 16:14:18 +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 0D3B034081295; Mon, 19 Dec 2011 16:14:18 +0100 (CET) From: "Andrea Grassi" To: "'Craig Ringer'" 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: Mon, 19 Dec 2011 16:14:13 +0100 Message-ID: <001b01ccbe60$ddb84280$9928c780$@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: Acy8g9glLkhJwz53Sj6p9HAMrO14WQB3KI+g Content-Language: it X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201112/151 X-Sequence-Number: 31962 Hi, Craig Now my process is blocked and I have the case in my hands. Do you have something to ask me in order to have more details ? 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