Re: Regression tests fail with musl libc because libpq.so can't be loaded

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: walther(at)technowledgy(dot)de
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Peter Eisentraut <peter(at)eisentraut(dot)org>, Christophe Pettus <xof(at)thebuild(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL Bugs <pgsql-bugs(at)lists(dot)postgresql(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: Regression tests fail with musl libc because libpq.so can't be loaded
Date: 2024-03-26 14:35:43
Message-ID: 2822007.1711463743@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

walther(at)technowledgy(dot)de writes:
> The second patch potentially solves the problem of PS_USE_NONE not being
> tested. Of course you could also set up a buildfarm animal on some other
> platform, which is sure to fall through to PS_USE_NONE, but that seems
> to have not worked in the past:

> Thomas Munro:
>> I dimly recall that it turned out that PS_USE_NONE was
>> actually broken for a while without anyone noticing

I think what Thomas is recollecting is this:

Author: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Branch: master Release: REL_15_BR [0fb6954aa] 2022-03-27 12:57:46 -0400
Branch: REL_14_STABLE Release: REL_14_3 [3f7a59c59] 2022-03-27 12:57:52 -0400
Branch: REL_13_STABLE Release: REL_13_7 [9016a2a3d] 2022-03-27 12:57:57 -0400

Fix breakage of get_ps_display() in the PS_USE_NONE case.

Commit 8c6d30f21 caused this function to fail to set *displen
in the PS_USE_NONE code path. If the variable's previous value
had been negative, that'd lead to a memory clobber at some call
sites. We'd managed not to notice due to very thin test coverage
of such configurations, but this appears to explain buildfarm member
lorikeet's recent struggles.

Credit to Andrew Dunstan for spotting the problem. Back-patch
to v13 where the bug was introduced.

Discussion: https://postgr.es/m/136102.1648320427@sss.pgh.pa.us

The problem wasn't lack of coverage, it was that the failure was
intermittent and erratic enough to be very hard to diagnose.
I think that's more bad luck than anything else.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2024-03-26 15:45:55 Re: Regression tests fail with musl libc because libpq.so can't be loaded
Previous Message gparc 2024-03-26 13:09:11 Re: BUG #18402: Attaching a new partition doesn't reuse the prebuilt index on said partition

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2024-03-26 14:52:10 Re: pgsql: Allow using syncfs() in frontend utilities.
Previous Message m.litsarev 2024-03-26 14:28:01 SQL function which allows to distinguish a server being in point in time recovery mode and an ordinary replica