pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: chaolpan@cisco.com
Subject: BUG #17326: Postgres crashed when pg_reload_conf()  with ssl certificate parameters
Date: Wed, 08 Dec 2021 04:02:51 +0000
Message-ID: <17326-d40bbb1386b6c9c3@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      17326
Logged by:          James Pang
Email address:      chaolpan@cisco.com
PostgreSQL version: 13.4
Operating system:   RHEL8.4
Description:        

we need SSL enabled for our production env, when I test renew a ssl
certificate , and reload_conf, it crashed. even with same certificate and
ssl parameters, run reload_conf often lead to Postgres crash. For example
:

 =# select name,setting from pg_settings where name like 'ssl_%' order by
name;
                  name                  |                setting
----------------------------------------+---------------------------------------
 ssl_ca_file                            |
/var/lib/pgsql/sslcerts/awstestca.crt
 ssl_cert_file                          |
/var/lib/pgsql/sslcerts/server.crt
 ssl_ciphers                            | HIGH:MEDIUM:+3DES:!aNULL
 ssl_crl_file                           |
 ssl_dh_params_file                     |
 ssl_ecdh_curve                         | prime256v1
 ssl_key_file                           |
/var/lib/pgsql/sslcerts/server.key
 ssl_library                            | OpenSSL
 ssl_max_protocol_version               |
 ssl_min_protocol_version               | TLSv1.2
 ssl_passphrase_command                 |
 ssl_passphrase_command_supports_reload | off
 ssl_prefer_server_ciphers              | on
(13 rows)

 =# select pg_reload_conf();
 pg_reload_conf
----------------
 t
(1 row)

 =# select pg_reload_conf();
 pg_reload_conf
----------------
 t
(1 row)

 =# select pg_reload_conf();
FATAL:  terminating connection due to unexpected postmaster exit
server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.



view thread (13+ messages)  latest in thread

Message-ID: <17326-d40bbb1386b6c9c3@postgresql.org>
Permalink:  ../17326-d40bbb1386b6c9c3@postgresql.org/
Also on:    postgresql.org/message-id/17326-d40bbb1386b6c9c3@postgresql.org

 · 

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: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, chaolpan@cisco.com
  Subject: Re: BUG #17326: Postgres crashed when pg_reload_conf()  with ssl certificate parameters
  In-Reply-To: <17326-d40bbb1386b6c9c3@postgresql.org>

* 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