Re: [BUG] PostgreSQL crashes with ThreadSanitizer during early initialization

Jacob Champion <jacob.champion@enterprisedb.com>

From: Jacob Champion <jacob.champion@enterprisedb.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Emmanuel Sibi <emmanuelsibi.mec@gmail.com>, pgsql-hackers@lists.postgresql.org, Andres Freund <andres@anarazel.de>
Date: 2025-11-05T15:59:51Z
Lists: pgsql-hackers
On Tue, Nov 4, 2025 at 5:19 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Hah, thanks for the research!  For me, this stops the failure
> (on RHEL9 with clang version 19.1.7):

Awesome!

> Assuming that works for Emmanuel, we could wrap it in a
> pg_disable_sanitizer_instrumentation macro, or just use it
> as-is.  I don't have a strong preference --- any thoughts?

No preference on my end. (If a second place to use it pops up, we
could wrap it then.)

--Jacob



Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Avoid possible crash within libsanitizer.