Repository navigation
Conversation
09-21 13:35:56.361 D gojni: panic in multiTUN.run close of closed channel: goroutine 2 [running]:
runtime/debug.Stack()
/build/.cache/tailscale-go/src/runtime/debug/stack.go:26 +0x64
github.com/tailscale/tailscale-android/libtailscale.(*multiTUN).run.func1()
/build/tailscale-android/libtailscale/multitun.go:106 +0x3c
panic({0x7041e7e660?, 0x7042041950?})
/build/.cache/tailscale-go/src/runtime/panic.go:860 +0x12c
created by github.com/tailscale/tailscale-android/libtailscale.newTUNDevices in goroutine 40
/build/tailscale-android/libtailscale/multitun.go:99 +0x20c
09-21 13:35:56.379 E Go : panic: close of closed channel [recovered, repanicked]
09-21 13:35:56.384 F libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL)
in tid 31023 (Thread-21), pid 30757 (m.tailscale.ipn)
09-21 13:35:58.345 I Zygote: Process 30757 exited due to signal 6 (Aborted)
Signed-off-by: Gonzalo <gonza.ar.cr@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi, I'm Gonzalo, I’ll try to be brief since I’ve been in contact with the support team for months nowchasin this bug. The tldr is: I work with Android scanners in a warehouse and we are using Tailscale. Ever since we installed Tailscale we been having intermittent connection bugs. The stack trace from the app say DNS error but I know is not that. The symptoms: it happens when the device is left idle for some time, but it also happens mid-use. I wasn’t able to turn off and on Tailscale because is forced always-on on the devices, but when I was able to replicate the bug on a dev device and tried to turn off the Tailscale this happened:
It seems there’s some stale tunnel that was supposed to be closed but it wasn’t, from there I just put AI to work and came up with this PR. Don’t disregard the PR just because the code is made by AI, there’s quite a lot of work put in it (the bug and research, not the code).
Here are some insights from AI that may help to understand the bug:
About the fix