Skip to content

Commit 3a68d71

Browse files
committed
[tailscale] runtime: respect GOTRACEBACK for user-triggered runtime panics
This cherry-picks https://go.dev/cl/649535. Updates tailscale/corp#26605
1 parent 5c01b77 commit 3a68d71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/runtime1.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func gotraceback() (level int32, all, crash bool) {
3939
gp := getg()
4040
t := atomic.Load(&traceback_cache)
4141
crash = t&tracebackCrash != 0
42-
all = gp.m.throwing >= throwTypeUser || t&tracebackAll != 0
42+
all = gp.m.throwing > throwTypeUser || t&tracebackAll != 0
4343
if gp.m.traceback != 0 {
4444
level = int32(gp.m.traceback)
4545
} else if gp.m.throwing >= throwTypeRuntime {

0 commit comments

Comments
 (0)