Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log_unix.go:113: decodePktEth exception - runtime error: index out of range #49

Closed
sammcj opened this issue Jul 3, 2014 · 3 comments
Closed
Labels

Comments

@sammcj
Copy link

sammcj commented Jul 3, 2014

Jul  3 11:08:32 int-nginx-02 /usr/bin/packetbeat[20877]: log_unix.go:113: decodePktEth exception. Recovering, but please report this: runtime error: index out of range.
Jul  3 11:08:32 int-nginx-02 /usr/bin/packetbeat[20877]: log_unix.go:114: Stacktrace: /home/vagrant/src/packetbeat/log_unix.go:114 (0x4250ae)#012/usr/local/go/src/pkg/runtime/panic.c:248 (0x452556)#012/usr/local/go/src/pkg/runtime/panic.c:482 (0x452dfd)#012/usr/local/go/src/pkg/runtime/panic.c:433 (0x452c17)#012/home/vagrant/src/packetbeat/main.go:123 (0x425dcd)#012/home/vagrant/src/packetbeat/main.go:339 (0x4274f1)#012/usr/local/go/src/pkg/runtime/proc.c:220 (0x45432f)#012/usr/local/go/src/pkg/runtime/proc.c:1394 (0x456860)

No idea where it's getting 'home/vagrant' from as we don't use vagrant.

Config:

[elasticsearch]
host  = "int-elastic-01"
port  = 9200
index = "packetbeat"

[interfaces]
device = "any"

[agent]
name= "int-nginx-02"

[runoptions]
uid=450
gid=450

[procs]

  [procs.monitored.nginx]
  cmdline_grep = "nginx"
@packetb-old
Copy link

Thanks for posting the stacktrace. There seems to be some weird IP header length value causing this (smaller than 20). In any case, we'll fix the stacktrace.

@sammcj
Copy link
Author

sammcj commented Jul 3, 2014

Thanks @packetbeat , let me know if there is anything I can do to help you.

@packetb-old
Copy link

Sorry for following back so late. The only way we could imagine that stacktrace could have been caused is with an IP header length smaller than 20 bytes, but that's invalid according to RFC 791. We're now ignoring packets like this. We'll make a maintenance release to contain this in a week or two.

If you suspect the problem could be something else, it might be useful if you could do a small pcap trace and send it to us. See http://packetbeat.com/docs/troubleshooting.html#recording-a-trace for details.

tsg pushed a commit that referenced this issue May 27, 2015
urso pushed a commit that referenced this issue Dec 2, 2015
tsg added a commit that referenced this issue Dec 2, 2015
ruflin added a commit to ruflin/beats that referenced this issue Dec 2, 2015
tsg pushed a commit to tsg/beats that referenced this issue Jan 20, 2016
This is invalid according to RFC 791. Fixes elastic#49.
tsg pushed a commit to tsg/beats that referenced this issue Jan 20, 2016
tsg pushed a commit to tsg/beats that referenced this issue Jan 20, 2016
paylm pushed a commit to paylm/beats that referenced this issue Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants