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 1mwjEa-0000gx-H7 for pgsql-bugs@arkaria.postgresql.org; Mon, 13 Dec 2021 11:11:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mwjEZ-0001ct-B6 for pgsql-bugs@arkaria.postgresql.org; Mon, 13 Dec 2021 11:11:07 +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 1mwjEZ-0001ck-2L for pgsql-bugs@lists.postgresql.org; Mon, 13 Dec 2021 11:11:07 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mwjEV-00065j-Mp for pgsql-bugs@lists.postgresql.org; Mon, 13 Dec 2021 11:11:06 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 0DFAA5C00DD; Mon, 13 Dec 2021 06:11:02 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 13 Dec 2021 06:11:02 -0500 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=fm3; bh=TMyoQdoYNFi4mc04rE7CL/xe/j0 WHodDIrFMJBJRaew=; b=AM14asLnb8mjdf4fZGCyLFLX9N3NI9jgiswdNlXOob7 7gNTQk4fFITjAF0CdFFVbUV1F0jgeSk4gjgKR2zHCeZjUOWwwmcTLDS5JjZ3snE3 nWyw/QwIFJ+uLrrd/CrdcIDkr75zhJwyRS1doofJ/VqjgduLPClRlFfhx8Y5sTv8 FmT/PwyYu2jvgNe0l+JxbeGIfuHq3wLbtaus5VAkc6jTcS8ljjUHhP0xh5+ztg/m qm0W0qeXM3sc0E+lIlj2xIFJKodvN5U37mmkWCk37DLvpdAapcyHS0QOv/lS8RBw gWV9N+zVf9x588VuWOdXSAt0z9/4GwlnED+/TTOH/Yw== 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=fm1; bh=TMyoQd oYNFi4mc04rE7CL/xe/j0WHodDIrFMJBJRaew=; b=HkCxu/bT/tm+Y8Llq10ZHW R2Z2ufp+PWCrbbYRk8QyizMyx6fEaXjBxN6PSyR8mSnJ9rZZoAlPuZKWKj/FYFSj V60r0bKNsbTXCVUPznq+ZY3JkVtVlFnobjazDB+HqksnJkCfMpnEPI4nTcbLNHyl Hevomay35+UjjiRNQxOujmeh3lbkBniOMjlQoX4azHgsmpdtE8Pl2I5L+mC/GJpa 0tLx+/JhKNKNi48Ts/ImWKCJPnLNb9zEugKcGH2j9IZkYDtxUX9Y0CRp6e8E4TKr 1qoc51EYkUmpE8PyBijwn7lrdAWmGM9MVINrDz8LUngWls/l4zXe4TSq11sOtdDQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrkeekgddvhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveejheeh ieevueeigeelteegleejleeiueeiheegvefhnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 13 Dec 2021 06:11:00 -0500 (EST) Date: Mon, 13 Dec 2021 20:10:57 +0900 From: Michael Paquier To: "James Pang (chaolpan)" Cc: Dmitry Dolgov <9erthalion6@gmail.com>, "pgsql-bugs@lists.postgresql.org" Subject: Re: BUG #17326: Postgres crashed when pg_reload_conf() with ssl certificate parameters Message-ID: References: <17326-d40bbb1386b6c9c3@postgresql.org> <20211208134601.gauysdttc65aoeze@localhost> <20211210142231.fvldmwwy4fr477h2@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="enXEIoJa3cqkEqqs" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --enXEIoJa3cqkEqqs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Dec 13, 2021 at 07:06:16AM +0000, James Pang (chaolpan) wrote: > Edit postgresql.conf to change ssl_certificate parameter , Do you mean ssl_cert_file here? Also, something that's not completely clear to me is if this is a problem with a vanilla PostgreSQL instance or if this is related to the pgaudit extension set_user, as it has been mentioned as one potential origin of the problem upthread, but you are not telling if this is the case here. So what do you have for shared_preload_libraries in this crash? > #9 0x00007ff49a78059c in ssl_cert_clear_certs () from /lib64/libssl.so.1.1 > #10 0x00007ff49a780645 in ssl_cert_free () from /lib64/libssl.so.1.1 > #11 0x00007ff49a78a25c in SSL_CTX_free () from /lib64/libssl.so.1.1 > #12 0x000000000068b6b8 in be_tls_init () > #13 0x00000000007271e1 in SIGHUP_handler () Why is secure_initialize() not showing up in this stack? That would be the caller of be_tls_init() in the SIGHUP handler. The version of OpenSSL you are linking your binaries to would be useful here. That would be a 1.1.0 or a 1.1.1, no? Any specific minor version letter? -- Michael --enXEIoJa3cqkEqqs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmG3KkEACgkQnvQgOdby QH12fQ//cXwfZ7xTCydYzebFNqI4m4SgIAk+NPfz1iQ58EtSyW3pbWVOXZH4+uEJ 7AwBQoXdY3bqD58Tg9dMuTlEq6SzFeC61Me/AaT2hPlaokKVMkfIZ1F3A0V0G8Mb b27jvsZYpFzSvoWwGcSO3DyXz7j9SFnaQ9yAk5JGgBgoPXQZvq3jg2OXTn9CvTNP 8hMfYxeAvqYiQN4Vem5exXBtiOw1AboRjwgT+l3fC3Kw77hSl/6A724ZtdnY2MSt n94bqGNxImvVZdpK5R2vaOR9B1mG8zygxaNwabfS9ROlUJ+D9B3vJlkcnpUPLOhS LcViHet2ER1XQAVMx8Dm8dMuHhDZrKB64ULOB/58TGClXjcWcKGrwcsyClyxgSsj Dq0B2YekKc8C33tHh/78H8SOn0hLc8DVPxU/uaLOiAkxaoAWd5+MtQ7pD3dTgjlo 66fgk6uaxMY4tz90eJNYdF4wX5dVIHHFwQs8+j2AjFDn2mHFYvoN1qnLqLcnKDG+ hJ4+iHlhiqicnU2aoe+BOHgUrLu8wLEMpSyXpkhaTwjcZMZ9A1FIfAvitFnGRy60 U1kRYGFF2eIo9z0xCqHF++eD05zZm3ShPUcAq2UH4B7w9izi6iWwsbNHaA74OIiA luDJHURPLuVvCDbCZyluJDsDcYZBecW2UkkhlKWZCT8E44Lv8vU= =X4Ub -----END PGP SIGNATURE----- --enXEIoJa3cqkEqqs--