Re: [BUG] PostgreSQL crashes with ThreadSanitizer during early initialization - Mailing list pgsql-hackers

From Jacob Champion
Subject Re: [BUG] PostgreSQL crashes with ThreadSanitizer during early initialization
Date
Msg-id CAOYmi+kW2qS1jEGTa2Ev7tSqrrB3M7SCikN6FrjTSYwQVcdEeQ@mail.gmail.com
Whole thread Raw
In response to Re: [BUG] PostgreSQL crashes with ThreadSanitizer during early initialization  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [BUG] PostgreSQL crashes with ThreadSanitizer during early initialization
List pgsql-hackers
On Tue, Nov 4, 2025 at 2:39 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Another problem is that it only defends against a limited set of
> sanitizers, though presumably every single one is broken in the same
> way (compare [1]).

How about __attribute__((disable_sanitizer_instrumentation)) ? LLVM's
own tests make some use of this [1].

--Jacob

[1] https://github.com/llvm/llvm-project/blob/2b4ac6629/compiler-rt/test/sanitizer_common/TestCases/dlsym_alloc.c



pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: Add CHECK_FOR_INTERRUPTS in Evict{Rel,All}UnpinnedBuffers
Next
From: David Rowley
Date:
Subject: Re: Have the planner convert COUNT(1) / COUNT(not_null_col) to COUNT(*)