model-writtenrun 2483 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tomas Vondra reported intermittent Valgrind warnings in wrapper_handler() on 64-bit ARM, with an uninitialized value attributed to strcoll_l and no clear explanation for the signal-handler table access #1.
- Nathan Bossart questioned whether a called handler was responsible, noting that the handler table was static and initialized before sigaction(), while Andres Freund suggested checking whether the incoming signal number exceeded PG_NSIG #2 #3.
- Although Nathan pointed out that pqsignal() already checked the upper bound, Andres argued that unexpected calling conventions or signal-emulation problems justified checking wrapper_handler() too; Nathan posted that assertion and planned to backpatch it through PostgreSQL 17 #4 #5 #6.
- Nathan then added positive-value assertions in both wrapper_handler() and pqsignal() because signal numbers are signed integers, and submitted the revised patch to CI #7.
- Nathan committed the revised assertions as c3510cfc8b, with only a small commit-message wording change from #7, and announced the commit in #8.
- Tomas reran the tests and obtained three more strcoll_l-related Valgrind reports with the assertions installed, but none of the assertions failed, leaving the original problem unresolved #9 #10.
- Nathan observed that the new reports implicated both assertions and the handler invocation, whose common input was postgres_signal_arg #11.
- Tomas subsequently reported another 64-bit failure and a 32-bit failure attributed to a heap allocation during array input, suspected a Valgrind issue, and planned to try Valgrind 3.24 instead of 3.19; the assertions had landed, but the underlying warnings remained unexplained #12.