pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix elog(FATAL) before PostmasterMain() or just after fork().
Date: Tue, 10 Dec 2024 21:54:43 +0000
Message-ID: <E1tL8Bm-002655-Ck@gemulon.postgresql.org> (raw)

Fix elog(FATAL) before PostmasterMain() or just after fork().

Since commit 97550c0711972a9856b5db751539bbaf2f88884c, these failed with
"PANIC:  proc_exit() called in child process" due to uninitialized or
stale MyProcPid.  That was reachable if close() failed in
ClosePostmasterPorts() or setlocale(category, "C") failed, both
unlikely.  Back-patch to v13 (all supported versions).

Discussion: https://postgr.es/m/20241208034614.45.nmisch@google.com

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/315264d70128445fd53de199e16bb8aa562cf36f

Modified Files
--------------
src/backend/main/main.c               | 2 ++
src/backend/postmaster/fork_process.c | 2 ++
src/backend/postmaster/postmaster.c   | 3 +--
3 files changed, 5 insertions(+), 2 deletions(-)



view thread (6+ messages)

Message-ID: <E1tL8Bm-002655-Ck@gemulon.postgresql.org>
Permalink:  ../E1tL8Bm-002655-Ck@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tL8Bm-002655-Ck@gemulon.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-committers@postgresql.org
  Cc: noah@leadboat.com, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix elog(FATAL) before PostmasterMain() or just after fork().
  In-Reply-To: <E1tL8Bm-002655-Ck@gemulon.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