Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rmw8P-00Ai4Y-Eb for pgsql-bugs@arkaria.postgresql.org; Wed, 20 Mar 2024 13:37:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rmw8N-0051dt-PO for pgsql-bugs@arkaria.postgresql.org; Wed, 20 Mar 2024 13:37:36 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rmw8N-0051dl-HK for pgsql-bugs@lists.postgresql.org; Wed, 20 Mar 2024 13:37:36 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rmw8K-005VCp-AK for pgsql-bugs@lists.postgresql.org; Wed, 20 Mar 2024 13:37:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2024011501; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description; bh=aBmCYvt+Vn/phxhKLR28ud4Jd6QcPLZmqMVE0EVerkE=; b=UNKGI AavB8vZo8ewbu6yeV8AHMGpdXAH51EYIHEfpx1cpmqhlv+OuYd9ft7OyBbhx3XBDJvr2DNkw8UPEB Aj2hHY+xgMDXkgAL9BgIS/E30Rkcute32RRN1EwaCoKhgcgbqZINoKLVztfdEv8xkjktjHHrNt2Bz LK8emVCU5DxSNCKvzagGuPBGulAtJ1UZ0lPG9RLZdoHhbVOXKEiyl+3bXOrG7MSVSztmborUps0bX eFYDQp7dXZ5cnhRbYBXoG9unh3kOHi6QguWW5lddgWf7c6eKpjtB0CnQEOk5FcoaU38XX40Wy09sV x/FdyQVD2gzHIACPm/zNQR1tETiJw==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1rmw8I-00G6Gs-0L; Wed, 20 Mar 2024 09:37:30 -0400 Date: Wed, 20 Mar 2024 09:37:30 -0400 From: Bruce Momjian To: Wolfgang Walther Cc: Thomas Munro , peter@eisentraut.org, Christophe Pettus , Andrew Dunstan , PostgreSQL Bugs , Tom Lane Subject: Re: Regression tests fail with musl libc because libpq.so can't be loaded Message-ID: References: <4093813.1710899588@sss.pgh.pa.us> <4095435.1710900216@sss.pgh.pa.us> <477fa513-6bf0-456d-8d24-1e22a19df671@technowledgy.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Mar 20, 2024 at 09:35:51AM -0400, Bruce Momjian wrote: > On Wed, Mar 20, 2024 at 10:39:20AM +0100, Wolfgang Walther wrote: > > I also put together a PoC of what was mentioned in musl's mailing list: > > Instead of clobbering environ at all, exec yourself again with padded argv0. > > This works, too. Attached. > > It is hard to imagine why we would add an extra exec on every Linux > server start for this. I guess we could conditionally exec only if we find we must, but then such exec cases would be rare and rarely tested. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you.