Nov 2025

1 commit
Avoid possible crash within libsanitizer.
5 Nov 2025Tom Lanemaster19beta1REL_19_STABLE19beta1REL_18_STABLE18.1REL_17_STABLE17.7REL_16_STABLE16.11Also in: [BUG] PostgreSQL crashes with ThreadSanitizer during early initialization (written from the discussion, no matching patch)
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Neither attachment disables instrumentation of __ubsan_default_options(); this commit adds a guarded disable_sanitizer_instrumentation attribute in src/backend/main/main.c. It addresses Alexander Lakhin's crash report #16, with the externally proposed fix requested for testing in #17 and confirmed in #18.

  • Alexander Lakhinsaw the final versionLLM analysis, 100% sureBefore the commit, Alexander reproduced the hwaddress startup crash on ARM servers and confirmed that the proposed fix eliminated it in #18.

Nov 2022

2 commits
ci: Use -fsanitize=undefined,alignment,address in linux tasks
21 Nov 2022Andres Freundmaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1Also in: Re: CI and test improvements (part of a posted patchset)
Add workaround to make ubsan and ps_status.c compatible
21 Nov 2022Andres Freundmaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #121 of 1 reviewer saw the final version

The src/backend/main/main.c implementation matches the workaround in #12: reached_main gates a weak sanitizer-options hook returning getenv("UBSAN_OPTIONS"). The committed differences are explanatory comment edits, including why conditional compilation is unnecessary.

  • Tom Lanesaw the final versiontrailerTom reviewed the hook in #2, requesting explanatory comments and correcting the getenv description; the subsequent changes to this component were only comments and rebasing.

Mar 2022

3 commits
Don't try to translate NULL in GetConfigOptionByNum().
23 Mar 2022Andres Freundmaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1REL_14_STABLE14.3REL_13_STABLE13.7+1 more
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #10 of 1 reviewer saw the final version

The commit extracts the src/backend/utils/misc/guc.c half of the combined undefined-behavior patch in #1. It changes the proposed empty-string fallback to NULL and expresses the guard as a conditional expression.

  • Tom Lanesaw an earlier versionLLM analysis, 98% sureTom accepted the combined undefined-behavior fixes in #2, but the committed GUC fix subsequently changed the missing-description result from an empty string to NULL.
Don't call fwrite() with len == 0 when writing out relcache init file.
23 Mar 2022Andres Freundmaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1REL_14_STABLE14.3REL_13_STABLE13.7+3 more
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #11 of 1 reviewer saw the final version

The commit extracts exactly the src/backend/utils/cache/relcache.c hunk from the combined undefined-behavior patch in #1, adding len > 0 before fwrite(). The GUC hunk lands separately.

  • Tom Lanesaw the final versionLLM analysis, 100% sureTom accepted the combined undefined-behavior fixes in #2, and the relcache hunk was committed unchanged.
configure: check for dlsym instead of dlopen.
23 Mar 2022Andres Freundmaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1REL_14_STABLE14.3REL_13_STABLE13.7+3 more
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #11 of 1 reviewer saw the final version

The configure patch in #1 adds a dlsym probe alongside dlopen; the commit instead replaces the dlopen probe in configure.ac and generated configure. This implements Tom Lane's recommendation in #2, accepted by Andres in #3.

  • Tom Lanesaw the final versiontrailerTom proposed the exact committed adjustment—checking dlsym instead of both symbols—in #2, which Andres accepted in #3.

Credits across 6 commits

Author
Andres FreundLLM5
Tom Lane1
Reviewer
Tom Lane2
Justin Pryzby1
Reported by
Alexander Lakhin1
Emmanuel Sibi1
Committer
Andres Freund5
Tom Lane1

N LLM means N of the credits come from LLM analysis, not from commit trailers.