model-writtenrun 7995 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- The thread began with Fujii Masao's announcement that ac22929a26 replaced the startup process's dedicated latch with its procLatch and adopted the standard SIGHUP handler #1.
- Heikki Linnakangas reported a buildfarm segmentation fault and identified the unchecked NULL latch pointer #2; Fujii explained that ShutdownWalRcv() could return before walreceiver actually exited and initially proposed removing the pointer reset #3.
- Fujii then proposed checking the pointer before setting the latch #4, which landed as 113d3591b8 without an attached patchset.
- Heikki warned about leaving a pointer to another process's latch and about concurrent pointer resets #5, then identified a remaining check-to-use race in the committed fix #6; Fujii initially agreed to stop resetting the pointer #7.
- Fujii reconsidered and posted a proof-of-concept patch that retained the reset, protected it with a spinlock, and added selective locking plus a local pointer snapshot in WakeupRecovery(), avoiding locking on ordinary WAL-arrival calls #8.
- Fujii ultimately reported reverting both ac22929a26 and 113d3591b8 because of another issue, making the follow-up patch unnecessary and withdrawing it from the next CommitFest #9.