panic: runtime error: slice bounds out of range
goroutine 28 [running]:
runtime.panic(0x6a0860, 0x86648f)
/usr/local/go/src/pkg/runtime/panic.c:279 +0xf5
github.com/PreetamJinka/protodecode.DecodeTCP(0xc2080174c2, 0x28, 0x28, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/preetam/go/src/github.com/PreetamJinka/protodecode/tcp.go:90 +0x418
main.(*RawPacketProcessor).Process(0xc2080385c0)
/home/preetam/git/cistern/rawpacketprocessor.go:59 +0x303
created by main.(*Pipeline).Run
/home/preetam/git/cistern/pipeline.go:21 +0xc3
goroutine 16 [chan receive]:
main.main()
/home/preetam/git/cistern/main.go:85 +0x9b1
goroutine 19 [finalizer wait, 2 minutes]:
runtime.park(0x41ba30, 0x86a490, 0x868729)
/usr/local/go/src/pkg/runtime/proc.c:1354 +0x89
runtime.parkunlock(0x86a490, 0x868729)
/usr/local/go/src/pkg/runtime/proc.c:1370 +0x3b
runfinq()
/usr/local/go/src/pkg/runtime/mgc0.c:2624 +0xcf
runtime.goexit()
/usr/local/go/src/pkg/runtime/proc.c:1430
goroutine 20 [IO wait]:
net.runtime_pollWait(0x7f015c867698, 0x72, 0x0)
/usr/local/go/src/pkg/runtime/netpoll.goc:146 +0x66
net.(*pollDesc).Wait(0xc20802a140, 0x72, 0x0, 0x0)
/usr/local/go/src/pkg/net/fd_poll_runtime.go:84 +0x46
net.(*pollDesc).WaitRead(0xc20802a140, 0x0, 0x0)
/usr/local/go/src/pkg/net/fd_poll_runtime.go:89 +0x42
net.(*netFD).Read(0xc20802a0e0, 0xc2080a0000, 0x2710, 0x2710, 0x0, 0x7f015c8662a8, 0xb)
/usr/local/go/src/pkg/net/fd_unix.go:232 +0x30e
net.(*conn).Read(0xc208032038, 0xc2080a0000, 0x2710, 0x2710, 0x2710, 0x0, 0x0)
/usr/local/go/src/pkg/net/net.go:122 +0xe7
github.com/PreetamJinka/udpchan.func·003()
/home/preetam/go/src/github.com/PreetamJinka/udpchan/udpchan.go:66 +0x101
created by github.com/PreetamJinka/udpchan.Listen
/home/preetam/go/src/github.com/PreetamJinka/udpchan/udpchan.go:74 +0x1d5
goroutine 30 [chan receive]:
main.func·005()
/home/preetam/git/cistern/rawpacketprocessor.go:36 +0x72
created by main.(*RawPacketProcessor).Process
/home/preetam/git/cistern/rawpacketprocessor.go:40 +0x68
goroutine 23 [IO wait, 2 minutes]:
net.runtime_pollWait(0x7f015c8675e8, 0x72, 0x0)
/usr/local/go/src/pkg/runtime/netpoll.goc:146 +0x66
net.(*pollDesc).Wait(0xc20802a060, 0x72, 0x0, 0x0)
/usr/local/go/src/pkg/net/fd_poll_runtime.go:84 +0x46
net.(*pollDesc).WaitRead(0xc20802a060, 0x0, 0x0)
/usr/local/go/src/pkg/net/fd_poll_runtime.go:89 +0x42
net.(*netFD).accept(0xc20802a000, 0x769380, 0x0, 0x7f015c8662a8, 0xb)
/usr/local/go/src/pkg/net/fd_unix.go:410 +0x2fe
net.(*TCPListener).AcceptTCP(0xc208032070, 0x7f015c6e0e18, 0x0, 0x0)
/usr/local/go/src/pkg/net/tcpsock_posix.go:233 +0x59
net/http.tcpKeepAliveListener.Accept(0xc208032070, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/pkg/net/http/server.go:1949 +0x6f
net/http.(*Server).Serve(0xc20802e3c0, 0x7f015c867920, 0xc208032070, 0x0, 0x0)
/usr/local/go/src/pkg/net/http/server.go:1700 +0x91
net/http.(*Server).ListenAndServe(0xc20802e3c0, 0x0, 0x0)
/usr/local/go/src/pkg/net/http/server.go:1690 +0x11d
net/http.ListenAndServe(0x6d54b0, 0x5, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/pkg/net/http/server.go:1780 +0x79
created by main.main
/home/preetam/git/cistern/main.go:45 +0x8cb
goroutine 24 [chan send]:
main.func·004()
/home/preetam/git/cistern/main.go:77 +0x2cf
created by main.main
/home/preetam/git/cistern/main.go:82 +0x954
goroutine 25 [chan receive]:
main.(*HostProcessor).Process(0xc208038560)
/home/preetam/git/cistern/pipeline.go:77 +0x6e
created by main.(*Pipeline).Run
/home/preetam/git/cistern/pipeline.go:21 +0xc3
goroutine 26 [chan receive]:
main.(*GenericIfaceProcessor).Process(0xc208038580)
/home/preetam/git/cistern/pipeline.go:165 +0x6e
created by main.(*Pipeline).Run
/home/preetam/git/cistern/pipeline.go:21 +0xc3
goroutine 27 [chan receive]:
main.(*BlackholeProcessor).Process(0xc208032060)
/home/preetam/git/cistern/pipeline.go:47 +0x53
created by main.(*Pipeline).Run
/home/preetam/git/cistern/pipeline.go:24 +0x10f
goroutine 29 [chan receive]:
main.(*BlackholeProcessor).Process(0xc208032068)
/home/preetam/git/cistern/pipeline.go:47 +0x53
created by main.(*Pipeline).Run
/home/preetam/git/cistern/pipeline.go:24 +0x10f