Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 6B6F56FE557 for ; Sat, 17 Dec 2011 02:19:43 -0400 (AST) Received: from mail-qy0-f174.google.com ([209.85.216.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RbncT-0006sk-J0 for pgsql-bugs@postgresql.org; Sat, 17 Dec 2011 06:19:43 +0000 Received: by qcqz2 with SMTP id z2so2246186qcq.19 for ; Fri, 16 Dec 2011 22:19:28 -0800 (PST) Received: by 10.229.77.132 with SMTP id g4mr2738893qck.65.1324102768272; Fri, 16 Dec 2011 22:19:28 -0800 (PST) Received: from [10.1.1.6] (124-169-254-28.dyn.iinet.net.au. [124.169.254.28]) by mx.google.com with ESMTPS id i10sm24389333qac.17.2011.12.16.22.19.22 (version=SSLv3 cipher=OTHER); Fri, 16 Dec 2011 22:19:27 -0800 (PST) Message-ID: <4EEC3462.80702@ringerc.id.au> Date: Sat, 17 Dec 2011 14:19:14 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Andrea Grassi CC: pgsql-bugs@postgresql.org Subject: Re: R: BUG #6342: libpq blocks forever in "poll" function References: <4EEB0006.7080205@ringerc.id.au> <001201ccbbfc$82c987a0$885c96e0$@com> In-Reply-To: <001201ccbbfc$82c987a0$885c96e0$@com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.2 (-) X-Archive-Number: 201112/136 X-Sequence-Number: 31947 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=" and the output was only a single dash ( "-" ). That means it's not waiting in a kernel call right now. Was the program in the hung state you've observed at the time you ran the command? Its 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, so who knows how ancient half the stuff in there is. -- Craig Ringer