Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id E36192BF80 for ; Fri, 16 Dec 2011 04:24:58 -0400 (AST) Received: from mail-we0-f174.google.com ([74.125.82.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RbT66-0003bU-Rq for pgsql-bugs@postgresql.org; Fri, 16 Dec 2011 08:24:59 +0000 Received: by werm1 with SMTP id m1so316442wer.19 for ; Fri, 16 Dec 2011 00:24:42 -0800 (PST) Received: by 10.216.136.231 with SMTP id w81mr2837687wei.3.1324023881939; Fri, 16 Dec 2011 00:24: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 eg7sm12080967wib.8.2011.12.16.00.24.39 (version=SSLv3 cipher=OTHER); Fri, 16 Dec 2011 00:24:41 -0800 (PST) Message-ID: <4EEB0044.4090907@ringerc.id.au> Date: Fri, 16 Dec 2011 16:24:36 +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/126 X-Sequence-Number: 31937 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 > Actually, even better, can you show the full kernel stack of your test program when it's blocked? cat /proc/$pid/stack .