You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running "tailscale debug capture" as an unprivileged user in tailscale 1.38.1 immediately crashes ("panic: runtime error: invalid memory address or nil pointer dereference").
% gdb --args tailscale debug capture
...
(gdb) run
...
Thread 1 "tailscale" received signal SIGSEGV, Segmentation fault.
tailscale.com/client/tailscale.(*LocalClient).StreamDebugCapture (lc=0xea2e00 <tailscale.com/cmd/tailscale/cli[localClient]>, ctx=..., ~r0=..., ~r1=...) at tailscale.com@v1.38.1/client/tailscale/localclient.go:1104
1104 tailscale.com@v1.38.1/client/tailscale/localclient.go: No such file or directory.
(gdb) p res
$1 = <optimized out>
(gdb) p err
$2 = {
tab = 0xb1ba60 <go:itab.*tailscale.com/client/tailscale.AccessDeniedError,error>,
data = 0xc000068ca0
}
(gdb)
Fixes#7572
When handling an error during `StreamDebugCapture`, the response body
is closed, even though the response struct is always nil. Thanks
to https://github.com/darkrain42 for debugging this!!
Signed-off-by: Tom DNetto <tom@tailscale.com>
Fixes#7572
When handling an error during `StreamDebugCapture`, the response body
is closed, even though the response struct is always nil. Thanks
to https://github.com/darkrain42 for debugging this!!
Signed-off-by: Tom DNetto <tom@tailscale.com>
darksip
pushed a commit
to darksip/tailscale
that referenced
this issue
Apr 4, 2023
Fixestailscale#7572
When handling an error during `StreamDebugCapture`, the response body
is closed, even though the response struct is always nil. Thanks
to https://github.com/darkrain42 for debugging this!!
Signed-off-by: Tom DNetto <tom@tailscale.com>
What is the issue?
Running "tailscale debug capture" as an unprivileged user in tailscale 1.38.1 immediately crashes ("panic: runtime error: invalid memory address or nil pointer dereference").
Works fine run as root (
sudo !!
)tailscale 1.38.1 on Ubuntu 22.10
Trivial patch (untested)
I don't see a path through
doLocalRequestNiceError
where res is ever non-nil when err is non-nil.Steps to reproduce
As a non-privileged user (i.e. not root, and have not run "tailscale up --operator $USER"), run "tailscale debug capture".
Are there any recent changes that introduced the issue?
No response
OS
Linux
OS version
Ubuntu 22.10, Debian 11,
Tailscale version
1.38.1
Other software
No response
Bug report
No response
The text was updated successfully, but these errors were encountered: