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

telegraf crashes with panic (segmentation violation) #6488

Closed
hortigosa opened this issue Oct 7, 2019 · 0 comments · Fixed by #6492
Closed

telegraf crashes with panic (segmentation violation) #6488

hortigosa opened this issue Oct 7, 2019 · 0 comments · Fixed by #6492
Labels
area/exec bug unexpected problem or unintended behavior panic issue that results in panics from Telegraf
Milestone

Comments

@hortigosa
Copy link

System info:

crashes with 1.12.1, tried upgrading to 1.12.2 with same behaviour

Debian Stretch
Proxmox PVE kernel (adapted from ubuntu)
AMD Threadripper (first gen)
128 GB RAM

No recent hardware or software updates, except telegraf version

Steps to reproduce:

Start telegraf
crashes in a couple of minutes
restarted by systemd/monit/manual
crashes in a couple of minutes
(goto 1)

Log:

2019-10-07T07:46:05Z E! [agent] Error terminating process: operation not permitted
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xf191b4]
goroutine 32 [running]:
github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).ProcessCommand(0xc0005ac0c0, 0xc0001623f1, 0x64, 0x2c59780, 0xc0005aa0a0, 0xc000552110)
#11/go/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:164 +0x294
created by github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).Gather
#11/go/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:226 +0x297
telegraf.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
telegraf.service: Unit entered failed state.
telegraf.service: Failed with result 'exit-code'.
telegraf.service: Service hold-off time over, scheduling restart.
2019-10-07T07:46:30Z I! Starting Telegraf 1.12.2
2019-10-07T07:47:05Z E! [agent] Error terminating process: operation not permitted
(same behavior again and again)

@danielnelson danielnelson added this to the 1.12.3 milestone Oct 7, 2019
@danielnelson danielnelson added area/exec bug unexpected problem or unintended behavior panic issue that results in panics from Telegraf labels Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/exec bug unexpected problem or unintended behavior panic issue that results in panics from Telegraf
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants