SIGSEGV: segmentation violation code=0x2


(Mr Spring) #1

I'm using packetbeat to record data on a linux server.
It randomly fails with the following error

2019-04-15T09:21:39.726931776Z goroutine 26 [running]:
2019-04-15T09:21:39.925593735Z runtime.throw(0x17de829, 0x5)
2019-04-15T09:21:39.925643742Z /usr/local/go/src/runtime/panic.go:608 +0x72 fp=0xc006c75c58 sp=0xc006c75c28 pc=0x9fc552
2019-04-15T09:21:39.925658397Z runtime.sigpanic()
2019-04-15T09:21:39.925670563Z /usr/local/go/src/runtime/signal_unix.go:397 +0x275 fp=0xc006c75ca8 sp=0xc006c75c58 pc=0xa12bf5
2019-04-15T09:21:39.925683009Z runtime.memmove(0xc008496000, 0x7ff39f872afb, 0x2c7d2232)
2019-04-15T09:21:39.925833267Z /usr/local/go/src/runtime/memmove_amd64.s:105 +0xbe fp=0xc006c75cb0 sp=0xc006c75ca8 pc=0xa2dffe
2019-04-15T09:21:39.925884692Z github.com/elastic/beats/vendor/github.com/tsg/gopacket/afpacket.(*TPacket).ReadPacketData(0xc0011c4a90, 0xc0000c06c0, 0x1, 0x18, 0x299f6e37, 0xeb1c72b3b, 0x253f880, 0x2c7d2232, 0x65676122, 0x7ff3ca5c1000, ...)
2019-04-15T09:21:39.925940860Z /home/myfolder/myfolder/golang/src/github.com/elastic/beats/vendor/github.com/tsg/gopacket/afpacket/afpacket.go:279 +0x1b2 fp=0xc006c75d78 sp=0xc006c75cb0 pc=0xbbae22
2019-04-15T09:21:39.926023081Z github.com/elastic/beats/packetbeat/sniffer.(*afpacketHandle).ReadPacketData(0xc0011b0058, 0xc001c89b30, 0x4a, 0x4a, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
2019-04-15T09:21:39.926129539Z /home/myfolder/myfolder/golang/src/github.com/elastic/beats/packetbeat/sniffer/afpacket_linux.go:59 +0x75 fp=0xc006c75e30 sp=0xc006c75d78 pc=0xe28335
2019-04-15T09:21:39.926194391Z github.com/elastic/beats/packetbeat/sniffer.(*Sniffer).Run(0xc0016b89a0, 0x0, 0x0)
2019-04-15T09:21:39.926210538Z /home/myfolder/myfolder/golang/src/github.com/elastic/beats/packetbeat/sniffer/sniffer.go:184 +0x275 fp=0xc006c75f60 sp=0xc006c75e30 pc=0xe2a485
2019-04-15T09:21:39.926251932Z github.com/elastic/beats/packetbeat/beater.(*packetbeat).Run.func2(0xc0011c2370, 0xc00170c000, 0xc0000b8ea0)
2019-04-15T09:21:39.926288428Z /home/myfolder/myfolder/golang/src/github.com/elastic/beats/packetbeat/beater/packetbeat.go:229 +0x60 fp=0xc006c75fc8 sp=0xc006c75f60 pc=0x14e9950
2019-04-15T09:21:39.926302681Z runtime.goexit()
2019-04-15T09:21:39.926354611Z /usr/local/go/src/runtime/asm_amd64.s:1333 +0x1 fp=0xc006c75fd0 sp=0xc006c75fc8 pc=0xa2ce61
2019-04-15T09:21:39.926368619Z created by github.com/elastic/beats/packetbeat/beater.(*packetbeat).Run
2019-04-15T09:21:39.926399214Z /home/myfolder/myfolder/golang/src/github.com/elastic/beats/packetbeat/beater/packetbeat.go:226 +0x129

Can anyone give direction regarding this?