Skip to content

Conversation

fmayer
Copy link
Contributor

@fmayer fmayer commented Aug 6, 2024

Otherwise we have to memset 2040 bytes (255 * 8) for each call

Created using spr 1.3.4
@llvmbot
Copy link
Member

llvmbot commented Aug 6, 2024

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Florian Mayer (fmayer)

Changes

Otherwise we have to memset 2040 bytes (255 * 8) for each call


Full diff: https://github.com/llvm/llvm-project/pull/102255.diff

1 Files Affected:

  • (modified) compiler-rt/lib/tsan/dd/dd_rtl.cpp (+1-1)
diff --git a/compiler-rt/lib/tsan/dd/dd_rtl.cpp b/compiler-rt/lib/tsan/dd/dd_rtl.cpp
index 35b367c0cecb0..0ac6d321894b3 100644
--- a/compiler-rt/lib/tsan/dd/dd_rtl.cpp
+++ b/compiler-rt/lib/tsan/dd/dd_rtl.cpp
@@ -19,7 +19,7 @@ namespace __dsan {
 static Context *ctx;
 
 static u32 CurrentStackTrace(Thread *thr, uptr skip) {
-  BufferedStackTrace stack;
+  UNINITIALIZED BufferedStackTrace stack;
   thr->ignore_interceptors = true;
   stack.Unwind(1000, 0, 0, 0, 0, 0, false);
   thr->ignore_interceptors = false;

Created using spr 1.3.4
@fmayer fmayer requested a review from vitalybuka August 7, 2024 16:45
@fmayer fmayer changed the base branch from users/fmayer/spr/main.compiler-rt-tsan-leave-bufferedstacktrace-uninit to main August 7, 2024 17:10
@fmayer fmayer changed the base branch from main to users/fmayer/spr/main.compiler-rt-tsan-leave-bufferedstacktrace-uninit August 7, 2024 20:56
Created using spr 1.3.4
fmayer added a commit that referenced this pull request Aug 7, 2024
Otherwise we have to memset 2040 bytes (255 * 8) for each call

Pull Request: #102255
@fmayer fmayer closed this Aug 7, 2024
fmayer added a commit to fmayer/llvm-project that referenced this pull request Sep 13, 2024
Otherwise we have to memset 2040 bytes (255 * 8) for each call

Pull Request: llvm#102255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants