pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix elog(FATAL) before PostmasterMain() or just after fork().
6+ messages / 1 participants
[nested] [flat]

* pgsql: Fix elog(FATAL) before PostmasterMain() or just after fork().
@ 2024-12-10 21:54  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2024-12-10 21:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ac4a2b40392bd5ca9e9e02bad50d437411a8adfb

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(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix elog(FATAL) before PostmasterMain() or just after fork().
@ 2024-12-10 21:54  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2024-12-10 21:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/839da50bd431587c1182b7d96e82853895961cd1

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(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix elog(FATAL) before PostmasterMain() or just after fork().
@ 2024-12-10 21:54  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2024-12-10 21:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8b9cbf4922756d912309567f83f81e41f1737ac7

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



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix elog(FATAL) before PostmasterMain() or just after fork().
@ 2024-12-10 21:54  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2024-12-10 21:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4bd9de3f4190242d3dbc3ddb2b1a5f87027efdd0

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



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix elog(FATAL) before PostmasterMain() or just after fork().
@ 2024-12-10 21:54  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2024-12-10 21:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6151769f6ef540a71c131165d27426a0bcd1c009

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(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix elog(FATAL) before PostmasterMain() or just after fork().
@ 2024-12-10 21:54  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2024-12-10 21:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2024-12-10 21:54 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-12-10 21:54 pgsql: Fix elog(FATAL) before PostmasterMain() or just after fork(). Noah Misch <noah@leadboat.com>
2024-12-10 21:54 pgsql: Fix elog(FATAL) before PostmasterMain() or just after fork(). Noah Misch <noah@leadboat.com>
2024-12-10 21:54 pgsql: Fix elog(FATAL) before PostmasterMain() or just after fork(). Noah Misch <noah@leadboat.com>
2024-12-10 21:54 pgsql: Fix elog(FATAL) before PostmasterMain() or just after fork(). Noah Misch <noah@leadboat.com>
2024-12-10 21:54 pgsql: Fix elog(FATAL) before PostmasterMain() or just after fork(). Noah Misch <noah@leadboat.com>
2024-12-10 21:54 pgsql: Fix elog(FATAL) before PostmasterMain() or just after fork(). Noah Misch <noah@leadboat.com>

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