Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WILSV-0000sA-9h for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Feb 2014 17:06:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WILSU-0006SG-MO for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Feb 2014 17:06:18 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WILST-0006S7-Is for pgsql-bugs@postgresql.org; Tue, 25 Feb 2014 17:06:17 +0000 Received: from mgate01.schulergroup.com ([212.87.143.250]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WILSP-00086u-Mg for pgsql-bugs@postgresql.org; Tue, 25 Feb 2014 17:06:16 +0000 X-IronPort-AV: E=Sophos;i="4.97,541,1389740400"; d="scan'208";a="4566613" Received: from ifw.schulergroup.com ([212.87.143.254]) by mgate01.schulergroup.com with ESMTP; 25 Feb 2014 18:06:10 +0100 Received: from saturn.schuler.de (saturn.schuler.de [153.3.1.198]) by ifw.schulergroup.com (Postfix) with ESMTP id DF195D03038D; Tue, 25 Feb 2014 18:06:10 +0100 (CET) Received: from [153.3.21.70] (rt01.schuler.de [153.3.21.70]) by saturn.schuler.de (8.12.11.20060308/8.12.7/SuSE Linux 0.6) with ESMTP id s1PH6AGD028315; Tue, 25 Feb 2014 18:06:10 +0100 Message-ID: <530CCD87.9080407@spg.schulergroup.com> Date: Tue, 25 Feb 2014 18:06:15 +0100 From: Rainer Tammer Organization: Schuler Pressen GmbH & Co. KG User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: Tom Lane Cc: pgsql-bugs@postgresql.org, cbbrowne@gmail.com Subject: Re: Problem with PostgreSQL 9.2.7 and make check on AIX 7.1 References: <530B1EEC.1080402@spg.schulergroup.com> <8776.1393273299@sss.pgh.pa.us> <530C5312.3010508@spg.schulergroup.com> <32656.1393346132@sss.pgh.pa.us> In-Reply-To: <32656.1393346132@sss.pgh.pa.us> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hello, I will try to get some debug code in the SIGINT handler. In the wort case I will start a system trace. In the meantime I have build more version on AIX 6.1. I can see no failure on AIX 6.1, including 9.2.7. I have installed the same C/C++ compiler on the AIX 6.1 box as I have on the AIX 7.1 box - still same result. All test are OK. So the problem is not compiler dependent. Currently I upgrade a AIX 7.1 test LPAR on a Power 5 box. This way I can check if the problem is dependant on AIX 7.1 or Power 7+. (Some years ago there was a problem with Java on the newer CPUs.) What code path is executed if the timeout passes and the signal is send? - Where exactly is the signal send? --> Is the signal really send? - Where is the first entry in the handler? --> Do we receive the signal? Bye Rainer P.S.: What do you think of a smoker on the IBM developer cloud? If this is interesting I might organize the setup. On 25.02.2014 17:35, Tom Lane wrote: > Rainer Tammer writes: >> 1. fast shutdown >> The unexpected "LOG: received fast shutdown request" is happening >> on an installed instance. I have found other articles on the WEB which >> describe the same problem (other platform) - unfortunately there was >> no real solution to it. > As far as we can tell, any SIGINT of the postmaster must be coming from > outside the Postgres code. There are several places where SIGINT is > generated internally, but I've just been through all of them again and > it's pretty nearly impossible to believe that they could target the > postmaster process rather than some child process. If you've got a > way to instrument it and find out where the signal came from (eg what > PID sent it), that would be interesting information. > >> 2. hang during make check >> PostgreSQL 8.4.20 -> make check does finish without hang >> PostgreSQL 9.0.16 -> hang >> PostgreSQL 9.2.7 -> hang > Interesting, since AFAIR there was no major surgery on the timeout > code in 9.0. If you'd said 9.3 broke it, that wouldn't be so > surprising ... > >> As far as I can see the hang is caused by the "set statement_timeout to >> 2000;" >> statement. Where would be a good start point to diagnose this problem?? > Well, the point is that the timeout is failing to happen. Is the SIGALRM > signal being blocked? If it is delivered, why doesn't that spring the > process off its wait? Anyway, I see you already found enable_sig_alarm > and CheckStatementTimeout, so those are reasonable places to start > injecting some additional logging. You might also need to instrument > the backend SIGINT handler, StatementCancelHandler in postgres.c. > > regards, tom lane > > -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs