Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlW2i-0004M6-Kt for pgsql-hackers@arkaria.postgresql.org; Mon, 02 May 2022 13:24:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nlW2h-0000aD-2W for pgsql-hackers@arkaria.postgresql.org; Mon, 02 May 2022 13:24:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlW2g-0000Zp-Ox for pgsql-hackers@lists.postgresql.org; Mon, 02 May 2022 13:24:46 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlW2Y-0007O3-GP for pgsql-hackers@postgresql.org; Mon, 02 May 2022 13:24:46 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 0AA563200973 for ; Mon, 2 May 2022 09:24:34 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 02 May 2022 09:24:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1651497874; x= 1651584274; bh=EPoNTATkY2rxKwkexPyPcaAnoX1JC1PSq9Ola+J4vhM=; b=i ZeVQCa3SZGeguRqxQ2puq90hXs6tl1+40Gq7q2NjJ8LEodO5viIV+hQDXXojXAPB q8riBqA6RrCBzROdQTpzl13atf5HF49y13fK8wrf/V+q7zgF3gJohUgers341+dW Mn9gT6wu1gouREuGLmAchMS25zGYDa5m0NJk3Y/Mm2Qpcn4cs0ucpz2DIMAHk6lX 1yNHLzAOVDIHjtkT/MGPloFPk8iZ5fB/HJqy0+Iinb+Lv92KXlVdRUDWQpAy6RsN sBWls/0NYBGuxm2zcR1WYFhMbQOPID5Bmz/2I/fizHpByC+/d0N5AlHl+njGEnQi ipIp/HGaTb0dY9NK2BHhQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehgdeivdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfhffuvfgtgfesthejredttd efjeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghi shgvnhhtrhgruhhtsegvnhhtvghrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvg hrnhepieejueevgefhieettedtgedtvefhvdeludelveevgeelvedtleeuheetvefftdeu necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvth gvrhdrvghishgvnhhtrhgruhhtsegvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 2 May 2022 09:24:32 -0400 (EDT) Message-ID: Date: Mon, 2 May 2022 15:24:30 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-US From: Peter Eisentraut Subject: configure openldap crash warning To: pgsql-hackers 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 configure can report this: configure: WARNING: *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and *** also uses LDAP will crash on exit. The source code also says # PostgreSQL sometimes loads libldap_r and plain libldap into the same # process. Check for OpenLDAP versions known not to tolerate doing so; assume # non-OpenLDAP implementations are safe. The dblink test suite exercises the # hazardous interaction directly. The libldap installation that comes with the macOS operating system reports itself as version 2.4.28, so this warning comes up every time, but the dblink test suite passes without problem. I looked into this a bit further. I checked by installing openldap 2.4.31 from source on an centos 7 instance, and indeed the dblink test suite crashes right away. So the test is still good. I think it's very likely that Apple has patched around in their libldap code without changing the version. I wonder whether we can do something to not make this warning appear when it's not necessary. The release of openldap 2.4.32 (the first good one) is now ten years ago, so seeing faulty versions in the wild should be very rare. I'm tempted to suggest that we can just remove the warning and rely on the dblink test to catch any stragglers. We could also disable the test on macOS only. Thoughts?