model-writtenrun 7116 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andres Freund opened the thread with four patches addressing sanitizer library detection, two undefined-behavior violations, lost UBSAN_OPTIONS in backend processes, and Linux CI sanitizer coverage; he chose a guarded __ubsan_default_options() hook because process-title updates overwrite the original environment area and relocating it through prctl appeared problematic #1.
- Tom Lane recommended replacing the dlopen configure probe with dlsym, requested documentation for the options hook, and accepted the two undefined-behavior fixes; Andres agreed that a separate dlopen probe was unnecessary while leaving the hook in place pending a better approach #2 #3.
- The configure component of #1 landed as e71c76fcab, using Tom's replacement-probe design and backpatching the fix.
- After Andres proposed backpatching and Tom agreed, the combined bug-fix patch from #1 landed as two commits: 1c6bb380e5 preserved the relcache fwrite guard exactly, while 3ac7d02412 changed the GUC missing-description fallback from an empty string to NULL #4 #5.
- Andres expanded sanitizer testing into dedicated GCC and Clang buildfarm animals after ASan exposed additional bugs; Noah Misch reported that the fixes let thorntail remove its nonnull-attribute suppression, and David Steele cautioned that combining sanitizers with coverage instrumentation could reduce reported coverage #7 #9 #10 #11.
- Six months later, Andres resubmitted the two uncommitted components with expanded hook documentation and sanitizer flags adapted to the Meson CI task, leaving out the already committed configure and bug fixes #12.
- The remaining options hook from #12 landed as f686ae82f2 with comment refinements, retaining the reached_main guard and getenv-based implementation.
- The CI work introduced in #12 was subsequently submitted in its latest matching form as #520704 in thread #46498 and landed as bd82928625, adding address sanitizer to the Autoconf task and per-task sanitizer flags while retaining alignment and undefined sanitizers in Meson; Andres announced the push here in #13, but the commit's source attribution belongs to that later submission.
- Justin Pryzby questioned why the landed CI configuration did not use Meson's sanitizer option, and Andres explained that the available Meson support could not enable the required combination and explicit no-recover flags were needed anyway #14 #15.
- Alexander Lakhin reopened the issue in September 2023 after __ubsan_default_options() crashed during hwaddress sanitizer initialization on Android; replacing its body with an empty-string return allowed testing to proceed #16.
- In November 2025, Tom Lane asked Alexander to test a fix proposed in another discussion, and Alexander reproduced the startup crash on ARM servers and confirmed that the proposed patch eliminated it #17 #18.
- Following that final confirmation, Tom committed d4baa327a1, disabling sanitizer instrumentation inside the options hook to prevent initialization recursion; both attached series had already landed, and this follow-up resolved the reported hook crash.