Comment possible shared memory re-attach failure

From: Ivan Kovmir <ivan(dot)kovmir(at)cybertec(dot)at>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Comment possible shared memory re-attach failure
Date: 2025-11-13 13:59:23
Message-ID: CA+NMkJy8ngre5qO5zB+WzQVfmYijKiHB4-mgzH2Zmhtnt7bKtg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

EXEC_BACKEND on Linux leads to failures when processes try to attach
to shared memory if kernel.randomize_va_space != 0. There is a comment
in the source code explaining this, but it is far from where the error
occurs.

This patch introduces a comment navigating the programmer to the explanation.

Attachment Content-Type Size
0001-Explain-possible-shared-memory-re-attach-failure.patch application/x-patch 1021 bytes

Browse pgsql-hackers by date

  From Date Subject
Next Message Jonathan S. Katz 2025-11-13 14:02:35 Re: 2025-11-13 release announcement draft
Previous Message Daniel Gustafsson 2025-11-13 13:57:52 Re: pg_getaddrinfo_all() with hintp=NULL