pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: James Pang (chaolpan) <chaolpan@cisco.com>
Cc: Dmitry Dolgov <9erthalion6@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #17326: Postgres crashed when pg_reload_conf()  with ssl certificate parameters
Date: Mon, 13 Dec 2021 20:10:57 +0900
Message-ID: <YbcqQXfYRhzCgud2@paquier.xyz> (raw)
In-Reply-To: <PH0PR11MB51910828B552926204514891D6749@PH0PR11MB5191.namprd11.prod.outlook.com>
References: <17326-d40bbb1386b6c9c3@postgresql.org>
	<PH0PR11MB51915EF4E577B83F664F9AD8D66F9@PH0PR11MB5191.namprd11.prod.outlook.com>
	<20211208134601.gauysdttc65aoeze@localhost>
	<PH0PR11MB5191DFBF6685E3EF9632EAF0D6709@PH0PR11MB5191.namprd11.prod.outlook.com>
	<PH0PR11MB5191F4B6C7B80F2DC2BC5F89D6719@PH0PR11MB5191.namprd11.prod.outlook.com>
	<20211210142231.fvldmwwy4fr477h2@localhost>
	<PH0PR11MB51910828B552926204514891D6749@PH0PR11MB5191.namprd11.prod.outlook.com>

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

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (13+ messages)  latest in thread

Message-ID: <YbcqQXfYRhzCgud2@paquier.xyz>
Permalink:  ../YbcqQXfYRhzCgud2@paquier.xyz/
Also on:    postgresql.org/message-id/YbcqQXfYRhzCgud2@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: michael@paquier.xyz, chaolpan@cisco.com, 9erthalion6@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #17326: Postgres crashed when pg_reload_conf()  with ssl certificate parameters
  In-Reply-To: <YbcqQXfYRhzCgud2@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox