Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 08E8C2BF80 for ; Fri, 16 Dec 2011 04:23:59 -0400 (AST) Received: from mail-ww0-f50.google.com ([74.125.82.50]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RbT59-0003bD-7D for pgsql-bugs@postgresql.org; Fri, 16 Dec 2011 08:23:59 +0000 Received: by wgbdr11 with SMTP id dr11so5624342wgb.19 for ; Fri, 16 Dec 2011 00:23:41 -0800 (PST) Received: by 10.227.203.84 with SMTP id fh20mr3734697wbb.27.1324023821126; Fri, 16 Dec 2011 00:23:41 -0800 (PST) Received: from ayaki.localdomain (124-169-254-28.dyn.iinet.net.au. [124.169.254.28]) by mx.google.com with ESMTPS id dw6sm12066245wib.12.2011.12.16.00.23.37 (version=SSLv3 cipher=OTHER); Fri, 16 Dec 2011 00:23:40 -0800 (PST) Message-ID: <4EEB0006.7080205@ringerc.id.au> Date: Fri, 16 Dec 2011 16:23:34 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110930 Thunderbird/7.0.1 MIME-Version: 1.0 To: andreagrassi@sogeasoft.com CC: pgsql-bugs@postgresql.org Subject: Re: BUG #6342: libpq blocks forever in "poll" function References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -1.2 (-) X-Archive-Number: 201112/125 X-Sequence-Number: 31936 On 12/16/2011 03:45 PM, andreagrassi@sogeasoft.com wrote: > The following bug has been logged on the website: > > Bug reference: 6342 > Logged by: Andrea Grassi > Email address: andreagrassi@sogeasoft.com > PostgreSQL version: 8.4.8 > Operating system: SUSE SLES 10 SP4 64 BIT > Description: > > Hi, > I have a big and strange problem. Sometimes, libpq remains blocked in “poll” > function even if the server has already answered to the query. If I attach > to the process using kdbg I found this stack: > > __kernel_vsyscall() > poll() from /lib/libc.so.6 Given all you described (thanks for all the detail!) then if client and server are on different hosts this could easily be a NIC driver or HW issue. It'd be interesting to see the output of: ps -C testprogramname -o wchan:80= -- Craig Ringer