model-writtenrun 1881 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Emmanuel Sibi reported that ThreadSanitizer builds crashed before main() because instrumentation of __ubsan_default_options() recursively entered an incompletely initialized sanitizer runtime, and attached a patch moving the hook into a separate compilation unit built without selected sanitizers #1.
- Aleksander Alekseev asked whether Meson builds were affected, and Emmanuel confirmed the same startup crash with Meson and reported that isolating the hook resolved it #2 #3.
- Quan Zongliang confirmed the attached patch fixed postgres -V but reported that smart and fast shutdown hung; Emmanuel could not reproduce those hangs, and Quan identified his platform as macOS and planned further investigation separately #5 #6 #7.
- Tom Lane objected to exposing reached_main globally, changing both build systems, and disabling only a fixed list of sanitizers; his inline alternative using individual no_sanitize attributes failed to prevent the crash #8.
- Jacob Champion suggested disable_sanitizer_instrumentation, and Tom posted an inline patch applying that attribute directly to the existing hook after confirming it stopped the failure with clang 19.1.7 on RHEL9 #9 #10.
- Jacob and Tom agreed to use the attribute directly and defer a shared wrapper macro until another use appeared #11 #12.
- Immediately after the final discussion, Tom committed the inline attribute solution with explanatory comments and backpatch instructions through PostgreSQL 16; the separate-file implementation was superseded, while Quan's shutdown observation remained unresolved in this thread c775bf048a #7.