Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 543F522749A for ; Tue, 20 Dec 2011 20:00:13 -0400 (AST) Received: from mail-gx0-f174.google.com ([209.85.161.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rd9bO-0001zr-TY for pgsql-bugs@postgresql.org; Wed, 21 Dec 2011 00:00:12 +0000 Received: by ggdk6 with SMTP id k6so5161656ggd.19 for ; Tue, 20 Dec 2011 15:59:57 -0800 (PST) Received: by 10.100.237.19 with SMTP id k19mr270053anh.73.1324425597815; Tue, 20 Dec 2011 15:59:57 -0800 (PST) Received: from [10.1.1.6] ([124.150.53.33]) by mx.google.com with ESMTPS id 7sm9528945anz.18.2011.12.20.15.59.54 (version=SSLv3 cipher=OTHER); Tue, 20 Dec 2011 15:59:56 -0800 (PST) Message-ID: <4EF12177.2050404@ringerc.id.au> Date: Wed, 21 Dec 2011 07:59:51 +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: R: BUG #6342: libpq blocks forever in "poll" function References: <4EEB0006.7080205@ringerc.id.au> <001201ccbbfc$82c987a0$885c96e0$@com> <4EEC3462.80702@ringerc.id.au> <001b01ccbe60$ddb84280$9928c780$@com> In-Reply-To: <001b01ccbe60$ddb84280$9928c780$@com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.2 (-) X-Archive-Number: 201112/183 X-Sequence-Number: 31994 On 19/12/2011 11:14 PM, Andrea Grassi wrote: > 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 ? > As I tend to agree with Tom re this being a kernel issue, try (as root): # Enable stack dumps etc via sysrq echo 8 > /proc/sys/kernel/sysrq # Trigger kernel stack dump of all processes via sysrq mechanism echo t > /proc/sysrq-trigger ... then search the kernel log files to find the kernel stack dump associated with your test program. If you're not on the latest kernel for your OS, you should update it. -- Craig Ringer