shadowtunnel icon indicating copy to clipboard operation
shadowtunnel copied to clipboard

server crash

Open kailin4u opened this issue 7 years ago • 3 comments

Hello ,I had a server side shadowtunnel crash, client and server version is v1.1 server cmd:

setsid ./shadowtunnel -u -e -f 127.0.0.1:38080 -l :50000 -p 123456 >shadow.log 2>&1 &

client cmd:

./shadowtunnel -E -U -f x.x.x.x:50000 -l :50000 -p 123456

following is key log from server:

runtime/debug.Stack(0xc42004acc8, 0x6c6dc0, 0x8cd2a0) /usr/local/go/src/runtime/debug/stack.go:24 +0xa7 github.com/snail007/goproxy/core/dst.NewMux.func2.1() /home/pengmeng/go/src/github.com/snail007/goproxy/core/dst/mux.go:85 +0x48 panic(0x6c6dc0, 0x8cd2a0) /usr/local/go/src/runtime/panic.go:502 +0x229 encoding/binary.binary.bigEndian.Uint32(...) /usr/local/go/src/encoding/binary/binary.go:111 github.com/snail007/goproxy/core/dst.unmarshalHeader(0xc420136000, 0x4, 0x1f4, 0x0, 0x0) /home/pengmeng/go/src/github.com/snail007/goproxy/core/dst/packets.go:86 +0xcd github.com/snail007/goproxy/core/dst.(*Mux).readerLoop(0xc420054360) /home/pengmeng/go/src/github.com/snail007/goproxy/core/dst/mux.go:269 +0x101 github.com/snail007/goproxy/core/dst.NewMux.func2(0xc420054360) /home/pengmeng/go/src/github.com/snail007/goproxy/core/dst/mux.go:88 +0x47 created by github.com/snail007/goproxy/core/dst.NewMux /home/pengmeng/go/src/github.com/snail007/goproxy/core/dst/mux.go:82 +0x28f 2018/09/07 02:50:36 14.30.175.184:40483 <--> 127.0.0.1:38080 released

kailin4u avatar Sep 07 '18 05:09 kailin4u

i have testing it on my own notbook , everything is ok, please upload your full log file , so that i can get more message about this error.

snail007 avatar Sep 07 '18 07:09 snail007

Thanks for you reply.

I'm sorry the original log was overwritten.

Acually, before those lines,there were lines saying "xxx released" and "xxx connected",nothing special.

kailin4u avatar Sep 07 '18 07:09 kailin4u

if this error occurd againe , keep the log ,and show me .

snail007 avatar Sep 07 '18 09:09 snail007