aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/debug_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/debug_test.go')
-rw-r--r--src/runtime/debug_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/runtime/debug_test.go b/src/runtime/debug_test.go
index 0ee873d43f..37093cd87e 100644
--- a/src/runtime/debug_test.go
+++ b/src/runtime/debug_test.go
@@ -16,6 +16,8 @@ package runtime_test
import (
"fmt"
"internal/abi"
+ "internal/asan"
+ "internal/msan"
"math"
"os"
"regexp"
@@ -32,6 +34,14 @@ func startDebugCallWorker(t *testing.T) (g *runtime.G, after func()) {
// a debugger.
skipUnderDebugger(t)
+ // asan/msan instrumentation interferes with tests since we might
+ // inject debugCallV2 while in the asan/msan runtime. This is a
+ // problem for doing things like running the GC or taking stack
+ // traces. Not sure why this is happening yet, but skip for now.
+ if msan.Enabled || asan.Enabled {
+ t.Skip("debugCallV2 is injected erroneously during asan/msan runtime calls; skipping")
+ }
+
// This can deadlock if there aren't enough threads or if a GC
// tries to interrupt an atomic loop (see issue #10958). Execute
// an extra GC to ensure even the sweep phase is done (out of