snail007 / shadowtunnel

secure tunnel which help you protecting your tcp traffic between your machine and your service on remote.
GNU Lesser General Public License v3.0
164 stars 42 forks source link

server crash #5

Open kailin4u opened 6 years ago

kailin4u commented 6 years ago

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

snail007 commented 6 years ago

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.

kailin4u commented 6 years ago

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.

snail007 commented 6 years ago

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