Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 64FB01542B92 for ; Mon, 19 Dec 2011 04:41:03 -0400 (AST) Received: from fw.sogeasoft.biz ([151.9.34.199]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RcYmI-0003QH-9G for pgsql-bugs@postgresql.org; Mon, 19 Dec 2011 08:41:03 +0000 Received: from localhost (localhost [127.0.0.1]) by fw.sogeasoft.biz (Postfix) with ESMTP id DFC9F340826CC; Mon, 19 Dec 2011 09:40:43 +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 OGuV6K0tdzr8; Mon, 19 Dec 2011 09:40:42 +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 6FFC6340826B7; Mon, 19 Dec 2011 09:40:42 +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 09:40:39 +0100 Message-ID: <000f01ccbe29$e317dbf0$a94793d0$@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: Acy8g9glLkhJwz53Sj6p9HAMrO14WQBpJUmg Content-Language: it X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201112/146 X-Sequence-Number: 31957 1. Yes, obviously I launched that command when the program was blocked. 2. The system release is "SUSE SLES 10 SP4 64 BIT" with kernel = 2.6.16.60.=20 Maybe it's not the last release but it can justify the blocks ? In other = systems (VMWARE) the same system work fine. What you suspect ? libpq ? linux release ? hardware ?=20 If you need other informations let me know. =20 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