-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
netstack: unaligned 64-bit atomic operation on MIPS #3233
Comments
https://github.com/inetaf/netstack/blob/main/atomicbitops/aligned_64bit.go (from that stack trace) has build tags:
So I guess @compliment is using
... which it looks like the netstack folk forgot in their build tags. /cc @josharian |
(And we do have a fair number of linux/mipsle users from Unifi equipment etc) @compliment, which hardware device was this out of curiosity? And were you explicitly trying to run it in netstack mode or did it just fall back to that after TUN failed? |
@bradfitz It's this one. https://wikidevi.wi-cat.ru/Xiaomi_MiWiFi_Mini |
Filed google/gvisor#6804 |
Easy to repro with:
package main
import (
"fmt"
"runtime"
"inet.af/netstack/atomicbitops"
)
type T struct {
A atomicbitops.AlignedAtomicInt64
x int32
B atomicbitops.AlignedAtomicInt64
}
func main() {
fmt.Printf("I am %v/%v\n", runtime.GOOS, runtime.GOARCH)
var t T
t.A.Store(1)
t.B.Store(2)
fmt.Printf("got %v, %v\n", t.A.Load(), t.B.Load())
} Then:
I'll add some basic qemu-user tests in the tailscale.com repo & add the right |
Updates #3233 Change-Id: Ia224c90490d41e50a1d547eeea709b0d9171c1f9 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Updates #3233 Change-Id: Ia224c90490d41e50a1d547eeea709b0d9171c1f9 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Updates #3233 Change-Id: Ia224c90490d41e50a1d547eeea709b0d9171c1f9 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Updates #3233 Change-Id: Ia224c90490d41e50a1d547eeea709b0d9171c1f9 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Updates #3233 Change-Id: Ia224c90490d41e50a1d547eeea709b0d9171c1f9 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
From #2129 (comment):
Different version, different arch
and
MIPS. I was just testing doesn't actually affect anyone.
Originally posted by @compliment in #2129 (comment)
The text was updated successfully, but these errors were encountered: