From 3a68d719af5a947fc115ce45c1cddcbf2f6c76a0 Mon Sep 17 00:00:00 2001 From: Joe Tsai Date: Mon, 24 Nov 2025 12:58:44 -0800 Subject: [PATCH] [tailscale] runtime: respect GOTRACEBACK for user-triggered runtime panics This cherry-picks https://go.dev/cl/649535. Updates tailscale/corp#26605 --- src/runtime/runtime1.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/runtime1.go b/src/runtime/runtime1.go index 15b546783b5e53..85d87f598a27da 100644 --- a/src/runtime/runtime1.go +++ b/src/runtime/runtime1.go @@ -39,7 +39,7 @@ func gotraceback() (level int32, all, crash bool) { gp := getg() t := atomic.Load(&traceback_cache) crash = t&tracebackCrash != 0 - all = gp.m.throwing >= throwTypeUser || t&tracebackAll != 0 + all = gp.m.throwing > throwTypeUser || t&tracebackAll != 0 if gp.m.traceback != 0 { level = int32(gp.m.traceback) } else if gp.m.throwing >= throwTypeRuntime {