Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 7A0F51C3D23 for ; Tue, 20 Dec 2011 10:58:40 -0400 (AST) Received: from qmta03.emeryville.ca.mail.comcast.net ([76.96.30.32]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rd19B-0000Sc-Iz for pgsql-bugs@postgresql.org; Tue, 20 Dec 2011 14:58:39 +0000 Received: from omta06.emeryville.ca.mail.comcast.net ([76.96.30.51]) by qmta03.emeryville.ca.mail.comcast.net with comcast id BSy51i00116AWCUA3Sy8uh; Tue, 20 Dec 2011 14:58:08 +0000 Received: from [192.168.1.8] ([24.19.169.109]) by omta06.emeryville.ca.mail.comcast.net with comcast id BSxk1i00B2Mxajc8SSxkwC; Tue, 20 Dec 2011 14:57:44 +0000 Message-ID: <4EF0A284.3090508@comcast.net> Date: Tue, 20 Dec 2011 06:58:12 -0800 From: Harry Rossignol User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.24) Gecko/20111103 Thunderbird/3.1.16 MIME-Version: 1.0 To: 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> <000601ccbef6$060820d0$12186270$@com> In-Reply-To: <000601ccbef6$060820d0$12186270$@com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -4.4 (----) X-Archive-Number: 201112/167 X-Sequence-Number: 31978 I also have a client suffering an occasional 'application hang' running Suse 11.2 and postgressql 8.4 on an 8 core box which is not reproducable in a VMWare test environment. Access to postgres is libpq 127.0.0.1 as well. Unfortunately the client must restart ASAP and I have not produced a 'test case'. On 12/20/2011 1:01 AM, Andrea Grassi wrote: > Sorry if I insist, but now I have the case at hand (my test program is now blocked), so I can check and verify all what you want. > I would like to know if it can be a libpq bug or if you think the fault is due to a system bug or to a machine issue and in this case I would be grateful if you could give me a hint on what could be. > > Regards, Andrea > > -----Messaggio originale----- > Da: Craig Ringer [mailto:ringerc@ringerc.id.au] > 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=" 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 > >