sipcapture / heplify

Portable and Lightweight HEP Capture Agent for HOMER
https://sipcapture.org
GNU Affero General Public License v3.0
187 stars 66 forks source link

Heplify client crash #95

Closed pnlsantos closed 5 years ago

pnlsantos commented 5 years ago

hi, heplify client still crash os: centos 6.0 heplify 1.46

log:

2018/07/30 10:38:23.164716 util.go:109: INFO SDPCache EntryCount: 224, LookupCount: 44, HitCount: 17, ExpiredCount: 0, OverwriteCount: 15 2018/07/30 10:38:23.164778 util.go:115: INFO RTCPCache EntryCount: 175, LookupCount: 308, HitCount: 264, ExpiredCount: 0, OverwriteCount: 0 panic: runtime error: index out of range

goroutine 1 [running]: github.com/negbie/heplify/protos.ParseRTCP(0xc4268b20ec, 0x34, 0x34, 0xc4251e17b8, 0x13, 0x20, 0x13, 0x20, 0xffffffffffffffff, 0x7f8c90ae3ee3, ...) /go/src/github.com/negbie/heplify/protos/rtcp.go:206 +0x24c7 github.com/negbie/heplify/decoder.(Decoder).correlateRTCP(0xc420118000, 0xc4268b20dc, 0x4, 0x44, 0x7f8c9127cce1, 0xc4268b20ec, 0x34, 0x34, 0x0, 0x0, ...) /go/src/github.com/negbie/heplify/decoder/correlator.go:93 +0x144 github.com/negbie/heplify/decoder.(Decoder).Process(0xc420118000, 0xc4268b20c0, 0x60, 0x60, 0xc4262558c0, 0x60, 0x60, 0x60) /go/src/github.com/negbie/heplify/decoder/decoder.go:252 +0x10d4 github.com/negbie/heplify/sniffer.(MainWorker).OnPacket(0xc420040000, 0xc4268b20c0, 0x60, 0x60, 0xc4262558c0) /go/src/github.com/negbie/heplify/sniffer/sniffer.go:72 +0x69 github.com/negbie/heplify/sniffer.(SnifferSetup).Run(0xc420010180, 0x7f8c910f2860, 0xc420010180) /go/src/github.com/negbie/heplify/sniffer/sniffer.go:285 +0x3f2 main.main() /go/src/github.com/negbie/heplify/main.go:101 +0xde

pnlsantos commented 5 years ago

sorry, wrong log