Open iGmainC opened 3 years ago
我也有这个问题,系统是debian 10
panic: runtime error: slice bounds out of range [160:80]
goroutine 15255 [running]:
ehang.io/nps-mux.(*sendWindow).WriteTo(0xc001d5da40, 0x5c00896003, 0xa54560, 0xc000a05c30, 0x50, 0x0, 0x0)
/home/runner/go/pkg/mod/ehang.io/nps-mux@v0.0.0-20210407130203-4afa0c10c992/conn.go:554 +0x2f2
ehang.io/nps-mux.(*sendWindow).WriteFull(0xc001d5da40, 0xc000896000, 0x50, 0x10000, 0x5c, 0x8, 0x0, 0x0)
/home/runner/go/pkg/mod/ehang.io/nps-mux@v0.0.0-20210407130203-4afa0c10c992/conn.go:608 +0x8e
ehang.io/nps-mux.(*conn).Write(0xc000894820, 0xc000896000, 0x50, 0x10000, 0x8, 0x0, 0x0)
/home/runner/go/pkg/mod/ehang.io/nps-mux@v0.0.0-20210407130203-4afa0c10c992/conn.go:63 +0x8e
github.com/golang/snappy.(*Writer).write(0xc001d5db00, 0x0, 0x0, 0x0, 0x50, 0xc0004b4db8, 0x0)
/home/runner/go/pkg/mod/github.com/golang/snappy@v0.0.3/encode.go:258 +0x36d
github.com/golang/snappy.(*Writer).Flush(0xc001d5db00, 0xc0008bdc00, 0x50)
/home/runner/go/pkg/mod/github.com/golang/snappy@v0.0.3/encode.go:276 +0x6f
ehang.io/nps/lib/conn.(*SnappyConn).Write(0xc0008fdb40, 0xc0008bdc00, 0x50, 0x688, 0xc0004b4e38, 0x40b905, 0xaa0b00)
/home/runner/work/nps/nps/lib/conn/snappy.go:29 +0x7b
ehang.io/nps/lib/rate.(*rateConn).Write(0xc0008fdb60, 0xc0008bdc00, 0x50, 0x688, 0xc0008fdb60, 0xc000233501, 0x13)
/home/runner/work/nps/nps/lib/rate/conn.go:28 +0x55
ehang.io/nps/server/proxy.(*UdpModeServer).process(0xc0001b6150, 0xc0002fd950, 0xc0008bdc00, 0x50, 0x688)
/home/runner/work/nps/nps/server/proxy/udp.go:59 +0x8e3
created by ehang.io/nps/server/proxy.(*UdpModeServer).Start
/home/runner/work/nps/nps/server/proxy/udp.go:50 +0x2cc
+1我发现是表面上是udp隧道的问题,关闭udp隧道就好了,日志里面有大量的 New udp connection,client 6,remote address xxx.xxx.xxx.xxx
slice bounds out of range [160:80] 这个已经分支修复了,用了一天没崩溃过 https://github.com/yisier/nps/releases/tag/v0.26.13
系统:ubuntu 20.04