model-writtenrun 2783 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Vallimaharajan G reported a PostgreSQL 17.2 use-after-free discovered by running existing parallel-vacuum regression tests with a custom allocator: parallel_vacuum_reset_dead_items read a freed local pointer after storing its replacement in the state struct #1.
- Vallimaharajan G supplied a minimal fix that obtains both shared-memory handles through the replacement pvs->dead_items pointer #1.
- John Naylor saw no immediate evidence of harmful effects but proposed avoiding separate pointer copies to reduce future risk, attaching a revision that also removed aliases from initialization and reset code #2.
- John Naylor committed ccc8194e42 from #2, extending the cleanup to heap scanning and dead-item insertion while leaving initialization unchanged; the commit explains that allocator reuse apparently masked the bug and backports the fix to PostgreSQL 17.
- John Naylor closed the thread by announcing that he had adjusted additional sites for consistency and committed the fix, with no remaining work identified #3.