pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feed From: walther@technowledgy.de
To: Thomas Munro <thomas.munro@gmail.com>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: Christophe Pettus <xof@thebuild.com>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: PostgreSQL Bugs <pgsql-bugs@lists.postgresql.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Bruce Momjian <bruce@momjian.us>
Subject: Re: Regression tests fail with musl libc because libpq.so can't be loaded
Date: Thu, 21 Mar 2024 21:30:00 +0100
Message-ID: <36690fcf-f0c8-4d60-af49-6a7efa0e2b14@technowledgy.de> (raw )
In-Reply-To: <f98cd8de-1c66-491a-8409-e62c09932080@technowledgy.de >
References: <3561573.1710771812@sss.pgh.pa.us >
<CA+hUKG+Tq3GK7bPd03N0Eox3YY4-Hjd7qQjo_QZFjdbhTqQGQA@mail.gmail.com >
<CA+hUKGK9LUq=uygBRFt3vFO1RL+_scsT4+hMkvea_zTttHZ59Q@mail.gmail.com >
<ZfolyUQw9z1zxX58@momjian.us >
<CA+hUKG+Y1D2Bv9v0GbYrhiQ+mhf=6Xj2_viiATnBVFShkfO4VQ@mail.gmail.com >
<4093813.1710899588@sss.pgh.pa.us >
<CA+hUKGKNK5V8XwwJJZm36s3EUy8V51xu4XiE8=26n=Wq3OGd4A@mail.gmail.com >
<4095435.1710900216@sss.pgh.pa.us >
<CA+hUKGK2cSx3dveMqBD+E9N=zJ0WawBcbk_jnPqmdWBM0DT_3Q@mail.gmail.com >
<477fa513-6bf0-456d-8d24-1e22a19df671@technowledgy.de >
<ZfrmN4WHuJgD95fw@momjian.us >
<CA+hUKGJzC4rr2Yr=QZyx9W83Wv=TVJHndKF1anjNLNXVUM7TqQ@mail.gmail.com >
<f98cd8de-1c66-491a-8409-e62c09932080@technowledgy.de >
Here is what we could with this:
> 2. The next proposal was to stop clobbering environ once LD_LIBRARY_PATH
> / LD_PRELOAD is found to keep those intact.
We could backpatch this down to v12. This would be one step to make the
test suite pass on Alpine Linux with musl and ultimately allow setting
up a buildfarm animal for that.
It does not solve the /proc/.../environ problem, but at least keeps ps
status working on musl as it did before, so not a regression.
> 4. The upstream (musl) suggestion of which I sent a PoC was to "exec
> yourself with a bigger argv".
We could do this in HEAD now ...
> Could we even use the exec-approach as the fallback in all other cases
> except BSDs and Windows and get rid of PS_USE_NONE?
... and then remove PS_USE_NONE at the beginning of the v18 cycle.
This would give a bit more time for those "other systems", which were
previously falling back PS_USE_NONE and would then clobber argv, too.
Opinions?
Best,
Wolfgang
view thread (86+ messages) latest in thread
Message-ID: <36690fcf-f0c8-4d60-af49-6a7efa0e2b14@technowledgy.de>
Permalink: ../36690fcf-f0c8-4d60-af49-6a7efa0e2b14@technowledgy.de/
Also on: postgresql.org/message-id/36690fcf-f0c8-4d60-af49-6a7efa0e2b14@technowledgy.de
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: walther@technowledgy.de, thomas.munro@gmail.com, peter@eisentraut.org, xof@thebuild.com, andrew@dunslane.net, pgsql-bugs@lists.postgresql.org, tgl@sss.pgh.pa.us, bruce@momjian.us
Subject: Re: Regression tests fail with musl libc because libpq.so can't be loaded
In-Reply-To: <36690fcf-f0c8-4d60-af49-6a7efa0e2b14@technowledgy.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox