Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tLwZM-000ZLT-76 for pgsql-bugs@arkaria.postgresql.org; Fri, 13 Dec 2024 03:42:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tLwZI-000BpW-CK for pgsql-bugs@arkaria.postgresql.org; Fri, 13 Dec 2024 03:42:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tLwZI-000Bor-2y for pgsql-bugs@lists.postgresql.org; Fri, 13 Dec 2024 03:42:21 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tLwZG-002Zi9-Du for pgsql-bugs@lists.postgresql.org; Fri, 13 Dec 2024 03:42:20 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 4BD3gDCV986009; Thu, 12 Dec 2024 22:42:13 -0500 From: Tom Lane To: Robins Tharakan cc: Andres Freund , Thomas Munro , Peter Eisentraut , Sam James , pgsql-bugs@lists.postgresql.org Subject: Re: Build failure with GCC 15 (defaults to -std=gnu23) In-reply-to: References: <485f5982-18c5-4210-9c7d-7c05453f7033@eisentraut.org> <1447160.1732565223@sss.pgh.pa.us> <1578470.1732587191@sss.pgh.pa.us> <1897695.1732732104@sss.pgh.pa.us> <2gao2zapw2dumahxgma4t3c6cquy4vnjs5bt4yvduexpywwm2m@3uhxxc63xvlq> <494522.1732894313@sss.pgh.pa.us> <970389.1734052913@sss.pgh.pa.us> Comments: In-reply-to Robins Tharakan message dated "Fri, 13 Dec 2024 13:01:21 +1030" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <986007.1734061333.1@sss.pgh.pa.us> Date: Thu, 12 Dec 2024 22:42:13 -0500 Message-ID: <986008.1734061333@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robins Tharakan writes: > Is it possible that 2 concurrent runs (of different branches) could step on > each other? Looks that way, doesn't it? But I suspect it's just a timing problem --- perhaps one triggered by the background load caused by another test run, but not directly related to it. Looking at 019_replslot_limit.pl, I see ----- # freeze walsender and walreceiver. Slot will still be active, but walreceiver # won't get anything anymore. kill 'STOP', $senderpid, $receiverpid; $node_primary3->advance_wal(2); ----- This fragment seems to assume that the effect of the kill 'STOP' is instantaneous. If it's not, it seems possible that the walsender process could manage to push out the WAL data added by "advance_wal" before it gets frozen, in which case the subsequent loop that's watching for it to get killed would watch in vain, which matches your symptoms. As far as a quick grep finds, this is the only test we have that relies on kill 'STOP'. I suspect that it's too clever for its own good. I trawled the last three months' worth of buildfarm logs and didn't find any other matches to "not ok 19 - walsender termination logged". So this is a pretty improbable failure mode, whatever the explanation is. regards, tom lane