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 1rot5C-003v20-Sq for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Mar 2024 22:46:23 +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 1rot5B-008ipz-4q for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Mar 2024 22:46:21 +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 1rot59-008ipr-Cu for pgsql-bugs@lists.postgresql.org; Mon, 25 Mar 2024 22:46:21 +0000 Received: from wfhigh8-smtp.messagingengine.com ([64.147.123.159]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rot55-006Plu-Ln for pgsql-bugs@lists.postgresql.org; Mon, 25 Mar 2024 22:46:18 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.west.internal (Postfix) with ESMTP id 2B75F18000C7; Mon, 25 Mar 2024 18:46:13 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 25 Mar 2024 18:46:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm1; t=1711406772; x=1711493172; bh=kYO+MCsnewSDuKGe2f1deASbAhkRC/zK cl7rOGg9Xlk=; b=i0/483JE5I7ZDLYJKAgJ82GFU99dLQRgJ8VO+tXV1j1RvhWh HRqbLx5t16ZJ+WsYJmu7bXGN2cmIUxWNfvD5uxoRDjwUMwkpLzcYj7C4e7WLZa6y VuvaSJCASQrM4f+jRZEuI/W1qERtRo9ZNWwA47/Aie+Pg8du37W66cLjUhTqLOlR QOwh1ekfKxVwUAsBAs7PyGh1GXggQSvgP4vnp0ZtS8tE9sJeBwQibrrSmt7T+Dtx llQl3fLhQoyowt+n0Pxof/0AoKVYPqHaf8+GQ94cyvM5fy6RfW5w/zfPKrIiszh6 5fevpzHtBCz32RWUJJplYcw+LMErB0cTn0Ziaw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1711406772; x= 1711493172; bh=kYO+MCsnewSDuKGe2f1deASbAhkRC/zKcl7rOGg9Xlk=; b=a YddlldBOD/pGDVIgbyfoA6gliKoyZNloiMqGsuOvXLBFZXEfl6yGs/KY2T5yqgQy cB2S/OhQVrikfR/uYqK/Wazmm2KoY8kpk6GPmiGs5XzDYZpHNdHbBZHMVKrKHSo3 7uDJv2aSlmyHhbYvHr8f2SaWrcoerHZDs3/+/HzQlLfhllokcI7Zt9pvoEMnb8qd zGgG6U7o/XWAcGki2WKMPjBTnAsRb2NG57T0xD+OzC/EDzUPGOtmqdeqDRCKsbex b3cMCWwxamYoTVqjva8UhUXlnwZ567Vo5g1ThTggEpiz44e8T4k7xvfbDBLDqj9Y cs2LNDMn2gbOEx0V+PiYg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudduvddgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrsegvihhsvghnthhrrghuthdrohhrgh eqnecuggftrfgrthhtvghrnhepgfejtdfhkeeftdeugfeileehteeljeeghfeuledthfeu tedvffdukeefjefhgeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepphgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhg X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 25 Mar 2024 18:46:10 -0400 (EDT) Message-ID: <443430b4-0c10-49f3-8c8a-e5e76602f309@eisentraut.org> Date: Mon, 25 Mar 2024 23:46:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Regression tests fail with musl libc because libpq.so can't be loaded To: Bruce Momjian , walther@technowledgy.de Cc: Thomas Munro , Christophe Pettus , Andrew Dunstan , PostgreSQL Bugs , Tom Lane , Robert Haas References: <477fa513-6bf0-456d-8d24-1e22a19df671@technowledgy.de> <36690fcf-f0c8-4d60-af49-6a7efa0e2b14@technowledgy.de> Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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?