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

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: walther(at)technowledgy(dot)de, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Christophe Pettus <xof(at)thebuild(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL Bugs <pgsql-bugs(at)lists(dot)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, 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-25 22:51:09
Message-ID: ZgH_3QXEWI5jFBUC@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On Mon, Mar 25, 2024 at 11:46:09PM +0100, Peter Eisentraut wrote:
> On 22.03.24 20:44, Bruce Momjian wrote:
> > + * linking (dlopen) might fail. Here, we truncate the update
> > + * of the process title when either of two important dynamic
> > + * linking environment variables are set. Musl does not
> > + * define any compiler symbols, so we have to do this for
> > + * any Linux libc we don't know is safe.
> > + */
> > + if (strstr(environ[i], "LD_LIBRARY_PATH=") == environ[i] ||
> > + strstr(environ[i], "LD_PRELOAD=") == environ[i])
>
> What determines which variables require this treatment?

Thomas Munro came up with that part of the patch. I just combined his
patch with the macro test.

--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com

Only you can decide what is important to you.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Thomas Munro 2024-03-25 22:54:59 Re: Regression tests fail with musl libc because libpq.so can't be loaded
Previous Message Peter Eisentraut 2024-03-25 22:46:09 Re: Regression tests fail with musl libc because libpq.so can't be loaded

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2024-03-25 22:54:59 Re: Regression tests fail with musl libc because libpq.so can't be loaded
Previous Message Peter Eisentraut 2024-03-25 22:46:09 Re: Regression tests fail with musl libc because libpq.so can't be loaded