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 1kMnfV-00025R-OV for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Sep 2020 07:33:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kMnfU-0006lS-2I for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Sep 2020 07:33:52 +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 1kMnfS-0006ki-Ec for pgsql-hackers@lists.postgresql.org; Mon, 28 Sep 2020 07:33:51 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMnfK-0002ib-1E for pgsql-hackers@lists.postgresql.org; Mon, 28 Sep 2020 07:33:50 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 85B273D2; Mon, 28 Sep 2020 03:33:37 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 28 Sep 2020 03:33:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=UhpizO2gpBj3Cf2ouJYU5N+krHI zI4f1K5SkiQj+a0s=; b=TtdALnXmq22ciFMH1zkRE1BjXq5Z9gshcbcr8RuW2Gt mwW1LAFTDeU3zIivHa9lnrCndlBA8yiJxjxhFwu8/SzuuYhfP8nEGNDx6KTKJ13P SpWsgZIjNdnnh2Z7XaYaNglaWr83HbHqsxT8bNoVxem08m+sQW01cFvuv2Io5DPX HnCLRU/aqdc6DV5SzS++v6UqKqqY/Kk8uHo9r77gVUWWzEL/QNQ6UaKzsjpvvNZv dr4eHxSCnqe+HHdmc7HeX9sQFMX60/plBZ/IoBdIsqgjVpwTVttXr2MfrYBN1ZAb c3CM9cwE0Tgcl7/uXba9aZBWH1+9pe7Gs56y9NkaXVA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=UhpizO 2gpBj3Cf2ouJYU5N+krHIzI4f1K5SkiQj+a0s=; b=vTEm5EfRC7uyW6Nopg6qKx b9OfaVZNJWWPSZ0nrgVdubk4dQG1tflbpvKb9645VhjSvwtOn99zkg6TU7sd60lw cE36B4yeKxhU2uZ0OKyy/Cvu0SKfu4Zu5zQzOX55PmsrRTUbmhB5HYLZSv9/cZST Cw6AracDMKu7q4ImnHqsoiw+NjN6XQDczDOz54Znx+yUSfN3+j3DM4u1T0bc6K7s B+GdZqqvcQXh/8uJa7RImPyzLSPVfrDvzJQYg7iDfJiEipU5ShZa4og5B8sK0zJW M8NR5+90JEGO5G0Fd+i+vNVMuGNcEO9bhnHfpIjlegF44lo/8UB8SJxf5aZnBqxQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdehgdduvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetgeetgfffjeehhfdvgedutedv hfeghefgvdehtdegleegvdehhefhveelueduieenucffohhmrghinhepphhoshhtghhrvg hsqhhlrdhorhhgpdhmrggtphhorhhtshdrohhrghenucfkphepudduuddruddtvddrudek tddrudekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 8853C328005A; Mon, 28 Sep 2020 03:33:35 -0400 (EDT) Date: Mon, 28 Sep 2020 16:33:30 +0900 From: Michael Paquier To: Postgres hackers Cc: Tom Lane Subject: __pg_log_level in anonynous enum should be initialized? (Was: pgsql: Change SHA2 implementation based on OpenSSL to use EVP digest ro) Message-ID: <20200928073330.GC2316@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="GPJrCs/72TxItFYR" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --GPJrCs/72TxItFYR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all, (Moved the discussion to -hackers) On Mon, Sep 28, 2020 at 03:48:12AM +0000, Michael Paquier wrote: > Change SHA2 implementation based on OpenSSL to use EVP digest routines >=20 > The use of low-level hash routines is not recommended by upstream > OpenSSL since 2000, and pgcrypto already switched to EVP as of 5ff4a67. > Note that this also fixes a failure with SCRAM authentication when using > FIPS in OpenSSL, but as there have been few complaints about this > problem and as this causes an ABI breakage, no backpatch is done. It looks like this commit has broken prairiedog as follows: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dprairiedog&dt=3D2= 020-09-28%2005%3A45%3A55 ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option =2E./../../src/common/libpgcommon_shlib.a(logging_shlib.o) definition of common ___pg_log_level (size 4) Looking around, I have found a similar report from MacPorts and 10.4, leading to the fact that it may be better to initialize __pg_log_level: https://trac.macports.org/ticket/19829 This has visibly not popped up until now because jsonapi.c, controldata_utils.c and file_utils.c are not getting used by libpq, though libpgcommon_shlib.a includes them. And libpq uses fe-auth-scram.c, that itself depends scram-common.c, and then depends on the SHA2 routines. Shouldn't __pg_log_level be initialized in logging.c? -- Michael --GPJrCs/72TxItFYR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl9xkcoACgkQnvQgOdby QH1Dug//Rim8Bz7P8KDo75Esf4vlsa2hHW0BagWFUNCSE4Jduh0Z+shj/1kREW1V dypYRVXWe6sE6hIj2QTdJ/t96XELZo4ul1fPVK7+MbedVL3HuaXfNPdnWTFa5hz4 KpQKrp3YoCKl73168HZ22MAvKQuxZCIK3buNQl5G8z2/aB8E7U/vtiesKuJJ7RuW ZB+bnNBZZmAWGAWDiXdADosE1oKLlF4hum07h3xM4+r7WXosBtiT4hfHtI3MZ5mk KqJb3nUKzhucGMnbMPqWNorKlZ9cdjseHbJEPCO3gyleDoxN5PhjLZnbI94NiRk7 34fWVXCw2DyZ6qrR3Q17ZwUo8CpvrrpgQkAr6bjNLNcEE8LVwrZ+9KutzHVSU+i7 2O8guAgezlwQr4wNtjzqkFnH4d6v07SjxhT5zJwX9XcyTZYd2M4w1RjH2iX4b9ll vnYsTEIsaPMN89SdkxAvRY2Afgap1LKkeTxmMWN8TH6QSyz4yBspeKPgS7fZGjRb ClRrBWM32WAKynrdm6OJ1yMxjpQ1wQ73dULXEH9nDjMjsuKTjGoTQ+5DuJDRX2jJ XjA5sTpvyKiCH7Bts3VmyABo2xrJxhOdt7AFopKbda1PBFTLDTW2C63e5/0hG3dB hWBgZTm/ycxll6rXEybhg6bLHGiyaQn/kpzll88Y6muh+0HrLro= =GwWK -----END PGP SIGNATURE----- --GPJrCs/72TxItFYR--