Re: Build failure with GCC 15 (defaults to -std=gnu23)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robins Tharakan <tharakan(at)gmail(dot)com>
Cc: Andres Freund <andres(at)anarazel(dot)de>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Peter Eisentraut <peter(at)eisentraut(dot)org>, Sam James <sam(at)gentoo(dot)org>, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: Build failure with GCC 15 (defaults to -std=gnu23)
Date: 2024-12-13 03:42:13
Message-ID: 986008.1734061333@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Robins Tharakan <tharakan(at)gmail(dot)com> 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message David Gradwell 2024-12-13 12:56:51 com/ongres/scram/common/exception/ScramException prevents use of postgresql-42.7.2.jar with scram-sha-256
Previous Message Robins Tharakan 2024-12-13 02:31:21 Re: Build failure with GCC 15 (defaults to -std=gnu23)