[gcc r13-10443] libsanitizer: Initialize local_head member [PR126307]
Jakub Jelinek via Gcc-cvs <[email protected]> Sat, 1 Aug 2026 10:58:16 +0000 (GMT)
| Newsgroups | gmane.comp.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://gcc.gnu.org/g:0fc9104b83088c62a4deccb1d9195ac928841f8a commit r13-10443-g0fc9104b83088c62a4deccb1d9195ac928841f8a Author: Jakub Jelinek <[email protected]> Date: Mon Jul 20 10:30:43 2026 +0200 libsanitizer: Initialize local_head member [PR126307] The following patch cherry picks an upstream fix for this. 2026-07-20 Jakub Jelinek <[email protected]> PR sanitizer/126307 * tsan/tsan_trace.h: Cherry-pick llvm-project revision cdfdb06c9155080ec97d6e4f4dd90b6e7cefb0ca. (cherry picked from commit b75f76eb7fbd6314d452471d5795d24f004de5f2) Diff: --- libsanitizer/tsan/tsan_trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsanitizer/tsan/tsan_trace.h b/libsanitizer/tsan/tsan_trace.h index 01bb7b34f43a..1e791ff765fe 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.