Hi! The following patch cherry picks upstream fix to initialize a member.
Committed to trunk and 16 as obvious. 2026-07-20 Jakub Jelinek <[email protected]> PR sanitizer/126307 * tsan/tsan_trace.h: Cherry-pick llvm-project revision cdfdb06c9155080ec97d6e4f4dd90b6e7cefb0ca. diff --git a/libsanitizer/tsan/tsan_trace.h b/libsanitizer/tsan/tsan_trace.h index 01bb7b34f43..1e791ff765f 100644 --- a/libsanitizer/tsan/tsan_trace.h +++ b/libsanitizer/tsan/tsan_trace.h @@ -190,7 +190,7 @@ struct Trace { Mutex mtx; IList<TraceHeader, &TraceHeader::trace_parts, TracePart> parts; // First node non-queued into ctx->trace_part_recycle. - TracePart* local_head; + TracePart* local_head = nullptr; // Final position in the last part for finished threads. Event* final_pos = nullptr; // Number of trace parts allocated on behalf of this trace specifically. Jakub
