xjasonlyu / tun2socks

tun2socks - powered by gVisor TCP/IP stack
https://github.com/xjasonlyu/tun2socks/wiki
GNU General Public License v3.0
2.86k stars 407 forks source link

use v2.2.1, get panic: unaligned 64-bit atomic operation #55

Closed liuxc0116 closed 2 years ago

liuxc0116 commented 3 years ago

run tun2socks-linux-mipsle-softfloat-v2.2.1, get panic.

panic: unaligned 64-bit atomic operation

goroutine 7 [running]:
runtime/internal/atomic.panicUnaligned(...)
        runtime/internal/atomic/unaligned.go:8
runtime/internal/atomic.lockAndCheck(...)
        runtime/internal/atomic/atomic_mipsx.go:37
runtime/internal/atomic.Store64(0x11ec41c, 0x100000, 0x0)
        runtime/internal/atomic/atomic_mipsx.go:103 +0x94
gvisor.dev/gvisor/pkg/atomicbitops.(*AlignedAtomicInt64).Store(...)
        gvisor.dev/gvisor@v0.0.0-20210528151111-2153eaa44276/pkg/atomicbitops/aligned_64bit.go:39
gvisor.dev/gvisor/pkg/tcpip.(*SocketOptions).SetSendBufferSize(0x11ec3b0, 0x100000, 0x0, 0x72c900)
        gvisor.dev/gvisor@v0.0.0-20210528151111-2153eaa44276/pkg/tcpip/socketops.go:626 +0x19c
gvisor.dev/gvisor/pkg/tcpip/transport/tcp.newEndpoint(0x1115180, 0x800, 0x11e20c0, 0x4)
        gvisor.dev/gvisor@v0.0.0-20210528151111-2153eaa44276/pkg/tcpip/transport/tcp/endpoint.go:840 +0x208
gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*listenContext).createConnectingEndpoint(0x1222000, 0x1282000, 0x11b3f74, 0x11e20c0, 0x1018150, 0x4, 0x521ba4)
        gvisor.dev/gvisor@v0.0.0-20210528151111-2153eaa44276/pkg/tcpip/transport/tcp/accept.go:216 +0xcc
gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*listenContext).startHandshake(0x1222000, 0x1282000, 0x11b3f74, 0x11e20c0, 0x0, 0x0, 0x0, 0x0, 0x0)
        gvisor.dev/gvisor@v0.0.0-20210528151111-2153eaa44276/pkg/tcpip/transport/tcp/accept.go:251 +0xe4
gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*listenContext).performHandshake(0x1222000, 0x1282000, 0x11b3f74, 0x11e20c0, 0x0, 0x0, 0x18, 0x77f17790, 0x18)
        gvisor.dev/gvisor@v0.0.0-20210528151111-2153eaa44276/pkg/tcpip/transport/tcp/accept.go:327 +0x68
gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*ForwarderRequest).CreateEndpoint(0x1014120, 0x11e20c0, 0x0, 0x0, 0x0, 0x0)
        gvisor.dev/gvisor@v0.0.0-20210528151111-2153eaa44276/pkg/tcpip/transport/tcp/forwarder.go:155 +0x12c
github.com/xjasonlyu/tun2socks/core/stack.withTCPHandler.func1.1(0x1014120)
        github.com/xjasonlyu/tun2socks/core/stack/tcp.go:40 +0xf8
created by gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*Forwarder).HandlePacket
        gvisor.dev/gvisor@v0.0.0-20210528151111-2153eaa44276/pkg/tcpip/transport/tcp/forwarder.go:94 +0x334
xjasonlyu commented 3 years ago

Gotta wait gVisor to fix it.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days