Jan 2026

1 commit
Fix segfault from releasing locks in detached DSM segments
16 Jan 2026Amit Langotemaster19beta1REL_19_STABLE19beta1REL_18_STABLE18.2REL_17_STABLE17.8REL_16_STABLE16.12REL_15_STABLE15.16REL_14_STABLE14.21
LLM analysis, 100% suremodified before commitlight changesfrom patchset #154 of 4 reviewers saw the final version

The commit matches #15 in src/backend/storage/ipc/ipc.c and adds only Assert(num_held_lwlocks == 0) to LWLockReleaseAll() in src/backend/storage/lmgr/lwlock.c, plus corresponding commit-message updates, following #16. Both the posted patch and commit explicitly credit Rahila Syed as author.

  • Amit Langotesaw the final versiontrailerAmit reviewed the original placement in #2, refined Rahila’s comment in #11 and #13, and committed the final version as confirmed in #21.
  • Dilip Kumarsaw the final versiontrailerDilip reviewed the release placement and advocated moving it immediately before DSM shutdown in #3; the original early-release approach was retained with only light subsequent changes.
  • Andres Freundsaw the final versiontrailerAndres defended releasing locks before all callbacks and requested documentation of initialization safety in #4 and #6, with only light changes following.
  • Álvaro Herrerasaw the final versiontrailerÁlvaro approved the latest patch and proposed the post-condition assertion incorporated into the commit in #16.

Credits across 1 commit

Author
Rahila Syed1
Reviewer
Alvaro Herrera1
Amit Langote1
Andres Freund1
Dilip Kumar1
Reported by
Rahila Syed1
Committer
Amit Langote1