# SIGSEGV: segmentation violation code=0x2

**URL:** <https://discuss.elastic.co/t/sigsegv-segmentation-violation-code-0x2/176888>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [April 15, 2019, 11:00am UTC](https://discuss.elastic.co/t/sigsegv-segmentation-violation-code-0x2/176888 "2019-04-15T11:00:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrspring](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@mrspring](https://discuss.elastic.co/u/mrspring)\
**Post date:** [April 15, 2019, 11:00am UTC](https://discuss.elastic.co/t/sigsegv-segmentation-violation-code-0x2/176888/1 "2019-04-15T11:00:17Z")

</div>

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](http://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](http://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](http://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](http://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](http://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?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 13, 2019, 11:00am UTC](https://discuss.elastic.co/t/sigsegv-segmentation-violation-code-0x2/176888/2 "2019-05-13T11:00:21Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
