HouzuoGuo / laitos

Top geek's chindogu - personal assistant over satellite/telephone/SMS/chatbot, plus web infrastructure servers (web & mail, ad-free DNS, TCP-over-DNS, web proxy, etc)
Mozilla Public License 2.0
253 stars 23 forks source link

Rare crash in sockd #22

Closed HouzuoGuo closed 6 years ago

HouzuoGuo commented 6 years ago

This crash has never been observed in the past:

crypto/cipher.(ctr).refill(0xc4210b2eb0) /home/howard/go/src/crypto/cipher/ctr.go:54 +0x1bf crypto/cipher.(ctr).XORKeyStream(0xc4210b2eb0, 0xc42110f081, 0x1ccd, 0x1ccd, 0xc421159581, 0x1ccd, 0x1ccd) /home/howard/go/src/crypto/cipher/ctr.go:76 +0x1db github.com/HouzuoGuo/laitos/daemon/sockd.(Cipher).Encrypt(0xc420773a40, 0xc42110ea00, 0x234e, 0x234e, 0xc421158f00, 0x234e, 0x234e) /home/howard/gopath/src/github.com/HouzuoGuo/laitos/daemon/sockd/sockd.go:193 +0x6f github.com/HouzuoGuo/laitos/daemon/sockd.(TCPCipherConnection).Write(0xc420be10a0, 0xc421158f00, 0x234e, 0x234e, 0x0, 0x0, 0xb25600) /home/howard/gopath/src/github.com/HouzuoGuo/laitos/daemon/sockd/tcp.go:135 +0x111 github.com/HouzuoGuo/laitos/daemon/sockd.PipeTCPConnection(0xaebdc0, 0xc420cec1c8, 0xaebd00, 0xc420be10a0, 0xaebd00) /home/howard/gopath/src/github.com/HouzuoGuo/laitos/daemon/sockd/tcp.go:246 +0x1f8 github.com/HouzuoGuo/laitos/daemon/sockd.(TCPCipherConnection).HandleTCPConnection(0xc420be10a0) /home/howard/gopath/src/github.com/HouzuoGuo/laitos/daemon/sockd/tcp.go:234 +0x41a created by github.com/HouzuoGuo/laitos/daemon/sockd.(Daemon).StartAndBlockTCP /home/howard/gopath/src/github.com/HouzuoGuo/laitos/daemon/sockd/tcp.go:58 +0x46e

HouzuoGuo commented 6 years ago

no longer observed since https://github.com/HouzuoGuo/laitos/commit/14eedab0f0efa12b2e64ec56c76540726048eafb