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

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Wolfgang Walther <walther(at)technowledgy(dot)de>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Peter Eisentraut <peter(at)eisentraut(dot)org>, Christophe Pettus <xof(at)thebuild(dot)com>, PostgreSQL Bugs <pgsql-bugs(at)lists(dot)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <bruce(at)momjian(dot)us>
Subject: Re: Regression tests fail with musl libc because libpq.so can't be loaded
Date: 2024-03-22 06:12:26
Message-ID: 22E35F77-0E7F-47F6-AAED-08B2A9C3FCB4@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers


Sent from my iPad

> On Mar 22, 2024, at 10:49 AM, Andres Freund <andres(at)anarazel(dot)de> wrote:
>
> Hi,
>
>> On 2024-03-21 21:16:46 +0100, Wolfgang Walther wrote:
>> Right. The latter not only confuses musl, but also makes /proc/<pid>/environ
>> return garbage. This is also mentioned at the bottom of main.c, which has a
>> workaround for the specific case of UBSan depending on that. This is kind of
>> funny: Because we are relying on undefined behavior regarding the
>> modification of environ, we need a workaround for the
>> "UndefinedBehaviorSanitizer" - I guess by failing without this workaround,
>> it wanted to tell us something..
>
> I don't think that's quite a fair description. Ubsan is basically doing
> undefined things itself, so it's turtles all the way down.
>
>
>> So summarizing:
>
> FWIW, independent of which fix we go with, I think we need a buildfarm animal
> using musl. Even better if one of the CI tasks can be made to use musl as
> well.

We had one till 3 months ago. It’s on my list to recreate.

Cheers

Andrew

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2024-03-22 06:15:27 Re: Regression tests fail with musl libc because libpq.so can't be loaded
Previous Message John Burns 2024-03-22 05:42:42 Re: Index plan returns different results to sequential scan

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2024-03-22 06:15:27 Re: Regression tests fail with musl libc because libpq.so can't be loaded
Previous Message jian he 2024-03-22 05:33:37 Re: SQL:2011 application time