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

Crash: runtime: unexpected return pc for strconv.atof64 called from 0x... #2145

Closed
robinsmidsrod opened this issue Dec 13, 2016 · 15 comments
Closed
Labels
bug unexpected problem or unintended behavior panic issue that results in panics from Telegraf

Comments

@robinsmidsrod
Copy link

Bug report

Telegraf crashes because of this error:

runtime: unexpected return pc for strconv.atof64 called from 0xc420103da0
fatal error: unknown caller pc

Relevant telegraf.conf:

I'm not sure if any part of the config file is relevant. Please advice if you want any part of it.

System info:

Telegraf v1.1.1 (git: release-1.1.0 94de9dc)

Ubuntu 14.04.5 LTS

Steps to reproduce:

  1. Not sure. I have telegraf running and it seems to occur randomly for one or two servers (of 18) almost every night.

Expected behavior:

Telegraf should not crash and continue running.

Actual behavior:

Telegraf crashes and have to be restarted by process supervision tool.

Additional info:

telegraf_crash.txt

@sparrc
Copy link
Contributor

sparrc commented Dec 13, 2016

please provide the entire config file if possible

@sparrc sparrc added bug unexpected problem or unintended behavior panic issue that results in panics from Telegraf labels Dec 13, 2016
@sparrc sparrc added this to the 1.2.0 milestone Dec 13, 2016
@sparrc
Copy link
Contributor

sparrc commented Dec 13, 2016

might be related to the process receiving a SIGPIPE golang/go#17393

@robinsmidsrod
Copy link
Author

@sparrc Here's the entire config file, with comments removed and sensitive information replaced with dummy information:

telegraf_crash_config.txt

@sparrc
Copy link
Contributor

sparrc commented Jan 11, 2017

I'm a bit baffled by this, googling the first error message only results in this exact bug case.

The other part I don't understand is that there is a traceback that indicates that strconv is getting called in agent.go....agent.go doesn't even import the strconv package.

@robinsmidsrod can you confirm that the traceback always looks the same as the one that you've provided? Can you provide any other information on these systems? Is there any possibility that memory corruption is happening?

runtime: unexpected return pc for strconv.atof64 called from 0xc420103da0
fatal error: unknown caller pc

runtime stack:
runtime.throw(0x10797c4, 0x11)
	/usr/local/go/src/runtime/panic.go:566 +0x95
runtime.gentraceback(0xffffffffffffffff, 0xc4207a0dc0, 0x0, 0xc420571040, 0x0, 0x0, 0x7fffffff, 0x11421b0, 0x7f2b3dffabd0, 0x0, ...)
	/usr/local/go/src/runtime/traceback.go:317 +0x13f6
runtime.copystack(0xc420571040, 0x1000, 0x9d0f00009d01)
	/usr/local/go/src/runtime/stack.go:902 +0x381
runtime.newstack()
	/usr/local/go/src/runtime/stack.go:1070 +0x370
runtime.morestack()
	/usr/local/go/src/runtime/asm_amd64.s:366 +0x7f

goroutine 1007585 [copystack]:
strconv.atof64(0xc42024fa70, 0xc42024fa70, 0xc42028acf0, 0x3a6e69622f3d4854, 0x6e69622f7273752f)
	/usr/local/go/src/strconv/atof.go:477 fp=0xc4207a0dc8 sp=0xc4207a0dc0
created by github.com/influxdata/telegraf/agent.gatherWithTimeout
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:153 +0xef

@sparrc
Copy link
Contributor

sparrc commented Jan 11, 2017

@robinsmidsrod any chance you could run version 1.1.1 with the race detector turned on? There is a linux binary available from our CI system available here: https://5535-33258973-gh.circle-artifacts.com/0/tmp/circle-artifacts.JpcxCqN/telegraf-race.gz

@sparrc sparrc modified the milestones: 1.3.0, 1.2.0 Jan 11, 2017
@robinsmidsrod
Copy link
Author

@sparrc I was also a bit baffled about the message, since strconv was not imported in the source file.

Are there any performance penalties when running with the race detector enabled? These errors are happening in our production environment, so performance is crucial.

There is a possibility that there could be memory corruption going on. The VMs where this is happening are next gen Rackspace Cloud machines.

@sparrc
Copy link
Contributor

sparrc commented Jan 17, 2017

yes, unfortunately there is a performance penalty when using the race detector.

@robinsmidsrod
Copy link
Author

@sparrc Sorry for the late response. What kind of performance penalty can I expect when running with the race detector on?

@sparrc
Copy link
Contributor

sparrc commented Jan 27, 2017

I'm not sure exactly, but it's substantial, at least a 75% performance hit

@sparrc sparrc modified the milestones: Future Milestone, 1.3.0 Feb 3, 2017
@sparrc
Copy link
Contributor

sparrc commented Feb 3, 2017

pushing out the milestone as steps to reproduce this are unclear

@danielnelson danielnelson removed this from the Future Milestone milestone Jun 14, 2017
@robinsmidsrod
Copy link
Author

I haven't been able to use a binary with the race detector yet, but I've got some more stack traces to share with you. The two next ones comes from the same machine, with about 10 hours between (10s measure interval), and the last one from another server with the same setup.

server: ordbok:

runtime: unexpected return pc for runtime.heapBitsSetType called from 0x2f6e6962732f3d5f
fatal error: unknown caller pc
runtime stack:
runtime.throw(0x138ff35, 0x11)
	/usr/local/go/src/runtime/panic.go:596 +0x95
runtime.gentraceback(0xffffffffffffffff, 0xc420033b60, 0x0, 0xc420870000, 0x0, 0x0, 0x7fffffff, 0x13f6c58, 0x7fa88f7edbd0, 0x0, ...)
	/usr/local/go/src/runtime/traceback.go:317 +0x13ea
runtime.copystack(0xc420870000, 0x1000, 0x1)
	/usr/local/go/src/runtime/stack.go:932 +0x370
runtime.newstack(0x0)
	/usr/local/go/src/runtime/stack.go:1098 +0x348
runtime.morestack()
	/usr/local/go/src/runtime/asm_amd64.s:398 +0x86
goroutine 1710696 [copystack]:
runtime.heapBitsSetType(0x74732d7472617473, 0x6f74732d74726174, 0x6e6f6d6561642d70, 0x3a6e69622f3d4854)
	/usr/local/go/src/runtime/mbitmap.go:893 +0x64b fp=0xc420033b68 sp=0xc420033b60
created by github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).Gather
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:218 +0x6cc
goroutine 1 [semacquire, 3649 minutes]:
sync.runtime_Semacquire(0xc42023748c)
	/usr/local/go/src/runtime/sema.go:47 +0x34
sync.(*WaitGroup).Wait(0xc420237480)
	/usr/local/go/src/sync/waitgroup.go:131 +0x7a
github.com/influxdata/telegraf/agent.(*Agent).Run(0xc42000e158, 0xc420053980, 0x0, 0x0)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:400 +0x4b3
main.reloadLoop(0xc420052900, 0x1c116b0, 0x0, 0x0, 0x1c116b0, 0x0, 0x0, 0x1c116b0, 0x0, 0x0, ...)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/cmd/telegraf/telegraf.go:232 +0xa27
main.main()
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/cmd/telegraf/telegraf.go:402 +0x65b
goroutine 17 [syscall, 3649 minutes, locked to thread]:
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:2197 +0x1
goroutine 32 [select]:
github.com/influxdata/telegraf/agent.(*Agent).flusher(0xc42000e158, 0xc420053980, 0xc420053b60, 0x0, 0x0)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:297 +0x3d4
github.com/influxdata/telegraf/agent.(*Agent).Run.func1(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:370 +0x6d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:374 +0x2e3
goroutine 6 [syscall, 3649 minutes]:
os/signal.signal_recv(0x0)
	/usr/local/go/src/runtime/sigqueue.go:116 +0x104
os/signal.loop()
	/usr/local/go/src/os/signal/signal_unix.go:22 +0x22
created by os/signal.init.1
	/usr/local/go/src/os/signal/signal_unix.go:28 +0x41
goroutine 26 [select, 3649 minutes, locked to thread]:
runtime.gopark(0x13f6f30, 0x0, 0x137c181, 0x6, 0x18, 0x2)
	/usr/local/go/src/runtime/proc.go:271 +0x13a
runtime.selectgoImpl(0xc42001cf50, 0x0, 0x18)
	/usr/local/go/src/runtime/select.go:423 +0x1364
runtime.selectgo(0xc42001cf50)
	/usr/local/go/src/runtime/select.go:238 +0x1c
runtime.ensureSigM.func1()
	/usr/local/go/src/runtime/signal_unix.go:434 +0x2dd
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:2197 +0x1
goroutine 1438787 [IO wait]:
net.runtime_pollWait(0x7fa8b0a23590, 0x72, 0x49)
	/usr/local/go/src/runtime/netpoll.go:164 +0x59
net.(*pollDesc).wait(0xc420239d48, 0x72, 0x1af9280, 0x1af0880)
	/usr/local/go/src/net/fd_poll_runtime.go:75 +0x38
net.(*pollDesc).waitRead(0xc420239d48, 0xc42032e000, 0x1000)
	/usr/local/go/src/net/fd_poll_runtime.go:80 +0x34
net.(*netFD).Read(0xc420239ce0, 0xc42032e000, 0x1000, 0x1000, 0x0, 0x1af9280, 0x1af0880)
	/usr/local/go/src/net/fd_unix.go:250 +0x1b7
net.(*conn).Read(0xc420bf4fb8, 0xc42032e000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
	/usr/local/go/src/net/net.go:181 +0x70
net/http.(*persistConn).Read(0xc4205ceea0, 0xc42032e000, 0x1000, 0x1000, 0x4, 0x455c40, 0xc42098dc80)
	/usr/local/go/src/net/http/transport.go:1316 +0x14b
bufio.(*Reader).fill(0xc42098c180)
	/usr/local/go/src/bufio/bufio.go:97 +0x117
bufio.(*Reader).Peek(0xc42098c180, 0x1, 0xc420ec6be5, 0x1, 0x0, 0xc420f72000, 0x0)
	/usr/local/go/src/bufio/bufio.go:129 +0x67
net/http.(*persistConn).readLoop(0xc4205ceea0)
	/usr/local/go/src/net/http/transport.go:1474 +0x196
created by net/http.(*Transport).dialConn
	/usr/local/go/src/net/http/transport.go:1117 +0xa35
goroutine 27 [select, 3649 minutes]:
main.reloadLoop.func1(0xc4200539e0, 0xc420053980, 0xc4200ee620, 0xc420052900)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/cmd/telegraf/telegraf.go:193 +0x24a
created by main.reloadLoop
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/cmd/telegraf/telegraf.go:207 +0x6ec
goroutine 28 [IO wait]:
net.runtime_pollWait(0x7fa8b0a23950, 0x72, 0x1af9280)
	/usr/local/go/src/runtime/netpoll.go:164 +0x59
net.(*pollDesc).wait(0xc420010148, 0x72, 0x1af0880, 0xc4211e3e20)
	/usr/local/go/src/net/fd_poll_runtime.go:75 +0x38
net.(*pollDesc).waitRead(0xc420010148, 0xffffffffffffffff, 0x0)
	/usr/local/go/src/net/fd_poll_runtime.go:80 +0x34
net.(*netFD).accept(0xc4200100e0, 0x0, 0x1af65c0, 0xc4211e3e20)
	/usr/local/go/src/net/fd_unix.go:430 +0x1e5
net.(*TCPListener).accept(0xc42000e1e0, 0xc420031f58, 0x407254, 0x1147740)
	/usr/local/go/src/net/tcpsock_posix.go:136 +0x2e
net.(*TCPListener).AcceptTCP(0xc42000e1e0, 0x0, 0xc420053c20, 0xc420bf5c00)
	/usr/local/go/src/net/tcpsock.go:215 +0x49
github.com/influxdata/telegraf/plugins/inputs/tcp_listener.(*TcpListener).tcpListen(0xc420256870, 0x0, 0x0)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/tcp_listener/tcp_listener.go:166 +0xae
created by github.com/influxdata/telegraf/plugins/inputs/tcp_listener.(*TcpListener).Start
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/tcp_listener/tcp_listener.go:123 +0x81e
goroutine 29 [select, 3649 minutes]:
github.com/influxdata/telegraf/plugins/inputs/tcp_listener.(*TcpListener).tcpParser(0xc420256870, 0x0, 0x0)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/tcp_listener/tcp_listener.go:253 +0x4f4
created by github.com/influxdata/telegraf/plugins/inputs/tcp_listener.(*TcpListener).Start
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/tcp_listener/tcp_listener.go:124 +0x843
goroutine 30 [IO wait]:
net.runtime_pollWait(0x7fa8b0a23890, 0x72, 0x0)
	/usr/local/go/src/runtime/netpoll.go:164 +0x59
net.(*pollDesc).wait(0xc420010298, 0x72, 0x0, 0x0)
	/usr/local/go/src/net/fd_poll_runtime.go:75 +0x38
net.(*pollDesc).waitRead(0xc420010298, 0xc4202b0000, 0x10000)
	/usr/local/go/src/net/fd_poll_runtime.go:80 +0x34
net.(*netFD).readFrom(0xc420010230, 0xc4202b0000, 0x10000, 0x10000, 0x0, 0x0, 0x0, 0x1af9280, 0x1af0880)
	/usr/local/go/src/net/fd_unix.go:277 +0x1cc
net.(*UDPConn).readFrom(0xc42000e1e8, 0xc4202b0000, 0x10000, 0x10000, 0xc420010230, 0xed135df92, 0xc43919d73e, 0x1bee540)
	/usr/local/go/src/net/udpsock_posix.go:47 +0x6a
net.(*UDPConn).ReadFromUDP(0xc42000e1e8, 0xc4202b0000, 0x10000, 0x10000, 0x0, 0x0, 0x1af5c40, 0xc421c07180)
	/usr/local/go/src/net/udpsock.go:97 +0x75
github.com/influxdata/telegraf/plugins/inputs/udp_listener.(*UdpListener).udpListenLoop(0xc420170fd0)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/udp_listener/udp_listener.go:165 +0x198
created by github.com/influxdata/telegraf/plugins/inputs/udp_listener.(*UdpListener).udpListen
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/udp_listener/udp_listener.go:150 +0x2ba
goroutine 31 [select, 3649 minutes]:
github.com/influxdata/telegraf/plugins/inputs/udp_listener.(*UdpListener).udpParser(0xc420170fd0, 0x0, 0x0)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/udp_listener/udp_listener.go:197 +0x4d8
created by github.com/influxdata/telegraf/plugins/inputs/udp_listener.(*UdpListener).Start
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/udp_listener/udp_listener.go:114 +0x380
goroutine 33 [select]:
github.com/influxdata/telegraf/agent.gatherWithTimeout(0xc420053980, 0xc4202d61c0, 0xc4200a8700, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:157 +0x28f
github.com/influxdata/telegraf/agent.(*Agent).gatherer(0xc42000e158, 0xc420053980, 0xc4202d61c0, 0x2540be400, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:124 +0x2a4
github.com/influxdata/telegraf/agent.(*Agent).Run.func3(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60, 0xc4202d61c0, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:396 +0x7d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:397 +0x46a
goroutine 34 [select]:
github.com/influxdata/telegraf/agent.(*Agent).gatherer(0xc42000e158, 0xc420053980, 0xc420046340, 0x2540be400, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:129 +0x3a8
github.com/influxdata/telegraf/agent.(*Agent).Run.func3(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60, 0xc420046340, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:396 +0x7d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:397 +0x46a
goroutine 35 [select]:
github.com/influxdata/telegraf/agent.(*Agent).gatherer(0xc42000e158, 0xc420053980, 0xc420046400, 0x2540be400, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:129 +0x3a8
github.com/influxdata/telegraf/agent.(*Agent).Run.func3(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60, 0xc420046400, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:396 +0x7d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:397 +0x46a
goroutine 36 [select]:
github.com/influxdata/telegraf/agent.(*Agent).gatherer(0xc42000e158, 0xc420053980, 0xc420046500, 0x2540be400, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:129 +0x3a8
github.com/influxdata/telegraf/agent.(*Agent).Run.func3(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60, 0xc420046500, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:396 +0x7d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:397 +0x46a
goroutine 37 [select]:
github.com/influxdata/telegraf/agent.(*Agent).gatherer(0xc42000e158, 0xc420053980, 0xc420046940, 0x2540be400, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:129 +0x3a8
github.com/influxdata/telegraf/agent.(*Agent).Run.func3(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60, 0xc420046940, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:396 +0x7d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:397 +0x46a
goroutine 38 [select]:
github.com/influxdata/telegraf/agent.(*Agent).gatherer(0xc42000e158, 0xc420053980, 0xc420047840, 0x2540be400, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:129 +0x3a8
github.com/influxdata/telegraf/agent.(*Agent).Run.func3(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60, 0xc420047840, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:396 +0x7d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:397 +0x46a
goroutine 39 [select]:
github.com/influxdata/telegraf/agent.(*Agent).gatherer(0xc42000e158, 0xc420053980, 0xc4200479c0, 0x2540be400, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:129 +0x3a8
github.com/influxdata/telegraf/agent.(*Agent).Run.func3(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60, 0xc4200479c0, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:396 +0x7d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:397 +0x46a
goroutine 40 [select]:
github.com/influxdata/telegraf/agent.(*Agent).gatherer(0xc42000e158, 0xc420053980, 0xc420047a40, 0x2540be400, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:129 +0x3a8
github.com/influxdata/telegraf/agent.(*Agent).Run.func3(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60, 0xc420047a40, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:396 +0x7d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:397 +0x46a
goroutine 41 [select]:
github.com/influxdata/telegraf/agent.(*Agent).gatherer(0xc42000e158, 0xc420053980, 0xc420047ac0, 0x2540be400, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:129 +0x3a8
github.com/influxdata/telegraf/agent.(*Agent).Run.func3(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60, 0xc420047ac0, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:396 +0x7d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:397 +0x46a
goroutine 42 [select]:
github.com/influxdata/telegraf/agent.(*Agent).gatherer(0xc42000e158, 0xc420053980, 0xc420047b80, 0x2540be400, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:129 +0x3a8
github.com/influxdata/telegraf/agent.(*Agent).Run.func3(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60, 0xc420047b80, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:396 +0x7d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:397 +0x46a
goroutine 43 [select]:
github.com/influxdata/telegraf/agent.(*Agent).gatherer(0xc42000e158, 0xc420053980, 0xc420047c00, 0x2540be400, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:129 +0x3a8
github.com/influxdata/telegraf/agent.(*Agent).Run.func3(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60, 0xc420047c00, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:396 +0x7d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:397 +0x46a
goroutine 44 [select]:
github.com/influxdata/telegraf/agent.(*Agent).gatherer(0xc42000e158, 0xc420053980, 0xc420047c80, 0x2540be400, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:129 +0x3a8
github.com/influxdata/telegraf/agent.(*Agent).Run.func3(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60, 0xc420047c80, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:396 +0x7d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:397 +0x46a
goroutine 45 [select]:
github.com/influxdata/telegraf/agent.(*Agent).gatherer(0xc42000e158, 0xc420053980, 0xc420047d00, 0x2540be400, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:129 +0x3a8
github.com/influxdata/telegraf/agent.(*Agent).Run.func3(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60, 0xc420047d00, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:396 +0x7d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:397 +0x46a
goroutine 46 [select]:
github.com/influxdata/telegraf/agent.(*Agent).gatherer(0xc42000e158, 0xc420053980, 0xc420047d80, 0x2540be400, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:129 +0x3a8
github.com/influxdata/telegraf/agent.(*Agent).Run.func3(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60, 0xc420047d80, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:396 +0x7d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:397 +0x46a
goroutine 47 [select]:
github.com/influxdata/telegraf/agent.(*Agent).gatherer(0xc42000e158, 0xc420053980, 0xc420047e40, 0x2540be400, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:129 +0x3a8
github.com/influxdata/telegraf/agent.(*Agent).Run.func3(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60, 0xc420047e40, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:396 +0x7d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:397 +0x46a
goroutine 48 [select]:
github.com/influxdata/telegraf/agent.(*Agent).gatherer(0xc42000e158, 0xc420053980, 0xc420047ec0, 0x2540be400, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:129 +0x3a8
github.com/influxdata/telegraf/agent.(*Agent).Run.func3(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60, 0xc420047ec0, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:396 +0x7d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:397 +0x46a
goroutine 49 [select]:
github.com/influxdata/telegraf/agent.(*Agent).gatherer(0xc42000e158, 0xc420053980, 0xc420047f40, 0x2540be400, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:129 +0x3a8
github.com/influxdata/telegraf/agent.(*Agent).Run.func3(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60, 0xc420047f40, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:396 +0x7d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:397 +0x46a
goroutine 50 [select]:
github.com/influxdata/telegraf/agent.(*Agent).gatherer(0xc42000e158, 0xc420053980, 0xc420047fc0, 0x2540be400, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:129 +0x3a8
github.com/influxdata/telegraf/agent.(*Agent).Run.func3(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60, 0xc420047fc0, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:396 +0x7d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:397 +0x46a
goroutine 51 [select]:
github.com/influxdata/telegraf/agent.(*Agent).gatherer(0xc42000e158, 0xc420053980, 0xc420130040, 0x2540be400, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:129 +0x3a8
github.com/influxdata/telegraf/agent.(*Agent).Run.func3(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60, 0xc420130040, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:396 +0x7d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:397 +0x46a
goroutine 52 [select]:
github.com/influxdata/telegraf/agent.(*Agent).gatherer(0xc42000e158, 0xc420053980, 0xc420130400, 0x2540be400, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:129 +0x3a8
github.com/influxdata/telegraf/agent.(*Agent).Run.func3(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60, 0xc420130400, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:396 +0x7d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:397 +0x46a
goroutine 53 [select]:
github.com/influxdata/telegraf/agent.(*Agent).gatherer(0xc42000e158, 0xc420053980, 0xc4201307c0, 0x2540be400, 0xc420053b60)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:129 +0x3a8
github.com/influxdata/telegraf/agent.(*Agent).Run.func3(0xc420237480, 0xc42000e158, 0xc420053980, 0xc420053b60, 0xc4201307c0, 0x2540be400)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:396 +0x7d
created by github.com/influxdata/telegraf/agent.(*Agent).Run
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:397 +0x46a
goroutine 1710697 [runnable]:
github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).ProcessCommand(0xc420048280, 0xc4203a4c40, 0x31, 0x1b05540, 0xc4200a8700, 0xc4214f7af0)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:146
created by github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).Gather
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:218 +0x6cc
goroutine 126 [select]:
github.com/influxdata/telegraf/agent.(*Agent).flusher.func1(0xc420633780, 0xc420053980, 0xc420644000, 0xc42000e158)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:263 +0x2f3
created by github.com/influxdata/telegraf/agent.(*Agent).flusher
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:292 +0xe5
goroutine 1704747 [select]:
net/http.(*persistConn).writeLoop(0xc420274360)
	/usr/local/go/src/net/http/transport.go:1704 +0x43a
created by net/http.(*Transport).dialConn
	/usr/local/go/src/net/http/transport.go:1118 +0xa5a
goroutine 1710698 [runnable]:
github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).ProcessCommand(0xc420048280, 0xc420246db0, 0x25, 0x1b05540, 0xc4200a8700, 0xc4214f7af0)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:146
created by github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).Gather
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:218 +0x6cc
goroutine 1710694 [semacquire]:
sync.runtime_Semacquire(0xc4214f7afc)
	/usr/local/go/src/runtime/sema.go:47 +0x34
sync.(*WaitGroup).Wait(0xc4214f7af0)
	/usr/local/go/src/sync/waitgroup.go:131 +0x7a
github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).Gather(0xc420048280, 0x1b05540, 0xc4200a8700, 0x434248, 0x13f6da8)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:220 +0x6f6
github.com/influxdata/telegraf/agent.gatherWithTimeout.func1(0xc420f72f60, 0xc4202d61c0, 0xc4200a8700)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:153 +0x49
created by github.com/influxdata/telegraf/agent.gatherWithTimeout
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:154 +0xcc
goroutine 1710704 [runnable]:
syscall.Syscall(0x0, 0xb, 0xc4202ec920, 0x8, 0x0, 0x8, 0x0)
	/usr/local/go/src/syscall/asm_linux_amd64.s:18 +0x5
syscall.readlen(0xb, 0xc4202ec920, 0x8, 0x2, 0xc421c071d0, 0x9)
	/usr/local/go/src/syscall/zsyscall_linux_amd64.go:1085 +0x56
syscall.forkExec(0xc420246f00, 0x21, 0xc4214f7c80, 0x1, 0x1, 0xc4202ecab0, 0x0, 0x0, 0x0)
	/usr/local/go/src/syscall/exec_unix.go:202 +0x3d3
syscall.StartProcess(0xc420246f00, 0x21, 0xc4214f7c80, 0x1, 0x1, 0xc4202ecab0, 0x2, 0x4, 0xc4216c3500, 0xc4202eca80)
	/usr/local/go/src/syscall/exec_unix.go:240 +0x64
os.startProcess(0xc420246f00, 0x21, 0xc4214f7c80, 0x1, 0x1, 0xc4202ecc58, 0xc4216d0100, 0x8, 0x8)
/usr/local/go/src/os/exec_posix.go:45 +0x1a3
os.StartProcess(0xc420246f00, 0x21, 0xc4214f7c80, 0x1, 0x1, 0xc4202ecc58, 0x0, 0x0, 0x160)
	/usr/local/go/src/os/exec.go:94 +0x64
os/exec.(*Cmd).Start(0xc4211d86e0, 0x128b260, 0xc4214f7c01)
	/usr/local/go/src/os/exec/exec.go:359 +0x3d2
github.com/influxdata/telegraf/internal.RunTimeout(0xc4211d86e0, 0x12a05f200, 0xc4214f7c50, 0x0)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/internal/internal.go:192 +0x2b
github.com/influxdata/telegraf/plugins/inputs/exec.CommandRunner.Run(0xc420048280, 0xc420246ed0, 0x21, 0x1b05540, 0xc4200a8700, 0xc420016000, 0xb2c384, 0xc420ad26e8, 0xc420ad26e0, 0xc4216c3500)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:102 +0x1eb
github.com/influxdata/telegraf/plugins/inputs/exec.(*CommandRunner).Run(0x1c116b0, 0xc420048280, 0xc420246ed0, 0x21, 0x1b05540, 0xc4200a8700, 0xc420ad2740, 0x4722e4, 0xc420240ea0, 0x13f7058, ...)
	<autogenerated>:2 +0x81
github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).ProcessCommand(0xc420048280, 0xc420246ed0, 0x21, 0x1b05540, 0xc4200a8700, 0xc4214f7af0)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:149 +0xaf
created by github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).Gather
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:218 +0x6cc
goroutine 1710701 [runnable]:
github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).ProcessCommand(0xc420048280, 0xc420246e40, 0x27, 0x1b05540, 0xc4200a8700, 0xc4214f7af0)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:146
created by github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).Gather
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:218 +0x6cc
goroutine 844332 [IO wait]:
net.runtime_pollWait(0x7fa8b0a23710, 0x72, 0x10)
	/usr/local/go/src/runtime/netpoll.go:164 +0x59
net.(*pollDesc).wait(0xc42016edf8, 0x72, 0x1af9280, 0x1af0880)
	/usr/local/go/src/net/fd_poll_runtime.go:75 +0x38
net.(*pollDesc).waitRead(0xc42016edf8, 0xc4206c0400, 0x400)
	/usr/local/go/src/net/fd_poll_runtime.go:80 +0x34
net.(*netFD).Read(0xc42016ed90, 0xc4206c0400, 0x400, 0x400, 0x0, 0x1af9280, 0x1af0880)
	/usr/local/go/src/net/fd_unix.go:250 +0x1b7
net.(*conn).Read(0xc420bf4750, 0xc4206c0400, 0x400, 0x400, 0x0, 0x0, 0x0)
	/usr/local/go/src/net/net.go:181 +0x70
crypto/tls.(*block).readFromUntil(0xc42025a2d0, 0x1af5cc0, 0xc420bf4750, 0x5, 0xc420bf4750, 0x28)
	/usr/local/go/src/crypto/tls/conn.go:488 +0x98
crypto/tls.(*Conn).readRecord(0xc42018b180, 0x13f7017, 0xc42018b2a0, 0x0)
	/usr/local/go/src/crypto/tls/conn.go:590 +0xc4
crypto/tls.(*Conn).Read(0xc42018b180, 0xc420aef000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
	/usr/local/go/src/crypto/tls/conn.go:1134 +0x11d
net/http.(*persistConn).Read(0xc420f5e900, 0xc420aef000, 0x1000, 0x1000, 0x5, 0xc421737d00, 0xc)
	/usr/local/go/src/net/http/transport.go:1316 +0x14b
bufio.(*Reader).fill(0xc420f0dc20)
	/usr/local/go/src/bufio/bufio.go:97 +0x117
bufio.(*Reader).Peek(0xc420f0dc20, 0x1, 0x0, 0x1, 0x0, 0xc420885680, 0x0)
	/usr/local/go/src/bufio/bufio.go:129 +0x67
net/http.(*persistConn).readLoop(0xc420f5e900)
	/usr/local/go/src/net/http/transport.go:1474 +0x196
created by net/http.(*Transport).dialConn
	/usr/local/go/src/net/http/transport.go:1117 +0xa35
goroutine 844333 [select]:
net/http.(*persistConn).writeLoop(0xc420f5e900)
	/usr/local/go/src/net/http/transport.go:1704 +0x43a
created by net/http.(*Transport).dialConn
	/usr/local/go/src/net/http/transport.go:1118 +0xa5a
goroutine 1710699 [runnable]:
github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).ProcessCommand(0xc420048280, 0xc420246de0, 0x25, 0x1b05540, 0xc4200a8700, 0xc4214f7af0)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:146
created by github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).Gather
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:218 +0x6cc
goroutine 1704746 [IO wait]:
net.runtime_pollWait(0x7fa8b0a234d0, 0x72, 0xf)
	/usr/local/go/src/runtime/netpoll.go:164 +0x59
net.(*pollDesc).wait(0xc4200fc068, 0x72, 0x1af9280, 0x1af0880)
	/usr/local/go/src/net/fd_poll_runtime.go:75 +0x38
net.(*pollDesc).waitRead(0xc4200fc068, 0xc420abe000, 0x1000)
	/usr/local/go/src/net/fd_poll_runtime.go:80 +0x34
net.(*netFD).Read(0xc4200fc000, 0xc420abe000, 0x1000, 0x1000, 0x0, 0x1af9280, 0x1af0880)
	/usr/local/go/src/net/fd_unix.go:250 +0x1b7
net.(*conn).Read(0xc420bf5910, 0xc420abe000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
	/usr/local/go/src/net/net.go:181 +0x70
net/http.(*persistConn).Read(0xc420274360, 0xc420abe000, 0x1000, 0x1000, 0x4, 0x455c40, 0xc420645f80)
	/usr/local/go/src/net/http/transport.go:1316 +0x14b
bufio.(*Reader).fill(0xc420645b00)
	/usr/local/go/src/bufio/bufio.go:97 +0x117
bufio.(*Reader).Peek(0xc420645b00, 0x1, 0xc4202f8be5, 0x1, 0x0, 0xc42098d3e0, 0x0)
	/usr/local/go/src/bufio/bufio.go:129 +0x67
net/http.(*persistConn).readLoop(0xc420274360)
	/usr/local/go/src/net/http/transport.go:1474 +0x196
created by net/http.(*Transport).dialConn
	/usr/local/go/src/net/http/transport.go:1117 +0xa35
goroutine 1710700 [runnable]:
github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).ProcessCommand(0xc420048280, 0xc420246e10, 0x2b, 0x1b05540, 0xc4200a8700, 0xc4214f7af0)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:146
created by github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).Gather
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:218 +0x6cc
goroutine 1438788 [select]:
net/http.(*persistConn).writeLoop(0xc4205ceea0)
	/usr/local/go/src/net/http/transport.go:1704 +0x43a
created by net/http.(*Transport).dialConn
	/usr/local/go/src/net/http/transport.go:1118 +0xa5a
goroutine 1710695 [runnable]:
syscall.readlen(0x12, 0xc420293920, 0x8, 0x2, 0xc421c07220, 0x9)
	/usr/local/go/src/syscall/zsyscall_linux_amd64.go:1084 +0x10e
syscall.forkExec(0xc420246ff0, 0x29, 0xc4214f7fc0, 0x1, 0x1, 0xc420293ab0, 0x0, 0x0, 0x0)
	/usr/local/go/src/syscall/exec_unix.go:202 +0x3d3
syscall.StartProcess(0xc420246ff0, 0x29, 0xc4214f7fc0, 0x1, 0x1, 0xc420293ab0, 0x2, 0x4, 0xc42175b2c0, 0xc420293a80)
	/usr/local/go/src/syscall/exec_unix.go:240 +0x64
os.startProcess(0xc420246ff0, 0x29, 0xc4214f7fc0, 0x1, 0x1, 0xc420293c58, 0xc4216d0180, 0x8, 0x8)
	/usr/local/go/src/os/exec_posix.go:45 +0x1a3
os.StartProcess(0xc420246ff0, 0x29, 0xc4214f7fc0, 0x1, 0x1, 0xc420293c58, 0x0, 0x0, 0x160)
	/usr/local/go/src/os/exec.go:94 +0x64
os/exec.(*Cmd).Start(0xc4211d8840, 0x128b260, 0xc4214f7f01)
	/usr/local/go/src/os/exec/exec.go:359 +0x3d2
github.com/influxdata/telegraf/internal.RunTimeout(0xc4211d8840, 0x12a05f200, 0xc4214f7fb0, 0x0)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/internal/internal.go:192 +0x2b
github.com/influxdata/telegraf/plugins/inputs/exec.CommandRunner.Run(0xc420048280, 0xc420246d50, 0x29, 0x1b05540, 0xc4200a8700, 0x1, 0xb2c384, 0xc420044ee8, 0xc420044ee0, 0xc42175b2c0)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:102 +0x1eb
github.com/influxdata/telegraf/plugins/inputs/exec.(*CommandRunner).Run(0x1c116b0, 0xc420048280, 0xc420246d50, 0x29, 0x1b05540, 0xc4200a8700, 0xc420885620, 0x6a0dc2, 0xc4212e0c60, 0xc4214f7b50, ...)
	<autogenerated>:2 +0x81
github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).ProcessCommand(0xc420048280, 0xc420246d50, 0x29, 0x1b05540, 0xc4200a8700, 0xc4214f7af0)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:149 +0xaf
created by github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).Gather
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:218 +0x6cc
goroutine 1710703 [runnable]:
github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).ProcessCommand(0xc420048280, 0xc420246ea0, 0x2a, 0x1b05540, 0xc4200a8700, 0xc4214f7af0)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:146
created by github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).Gather
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:218 +0x6cc
goroutine 1710702 [runnable]:
github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).ProcessCommand(0xc420048280, 0xc420246e70, 0x2a, 0x1b05540, 0xc4200a8700, 0xc4214f7af0)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:146
created by github.com/influxdata/telegraf/plugins/inputs/exec.(*Exec).Gather
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/exec/exec.go:218 +0x6cc
server: ordbok:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0xff pc=0x40aace]
goroutine 260328 [running]:
github.com/shirou/gopsutil/net.statsFromInodes(0x137957d, 0x5, 0x0, 0xc42037c780, 0x5, 0x5, 0xc4205ccd80, 0x0, 0x0, 0x0, ...)
	/home/ubuntu/telegraf-build/src/github.com/shirou/gopsutil/net/net_linux.go:398 +0x61a
github.com/shirou/gopsutil/net.ConnectionsPid(0x137814f, 0x3, 0x8000040000000000, 0x8000000, 0x0, 0x0, 0xc42003f420, 0x50f139)
	/home/ubuntu/telegraf-build/src/github.com/shirou/gopsutil/net/net_linux.go:326 +0x22c
github.com/shirou/gopsutil/net.Connections(0x137814f, 0x3, 0x6, 0xc42003f458, 0x54df5a, 0x138e384, 0xc)
	/home/ubuntu/telegraf-build/src/github.com/shirou/gopsutil/net/net_linux.go:296 +0x3d
github.com/influxdata/telegraf/plugins/inputs/system.(*systemPS).NetConnections(0xc420142640, 0xc42003f508, 0x54d6d4, 0x138e384, 0xc, 0x138e301)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/system/ps.go:134 +0x36
github.com/influxdata/telegraf/plugins/inputs/system.(*NetStats).Gather(0xc420142650, 0x1b05540, 0xc4203929c0, 0x1146a00, 0xc420977f80)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/system/netstat.go:26 +0x69
github.com/influxdata/telegraf/agent.gatherWithTimeout.func1(0xc4208cf980, 0xc420047e00, 0xc4203929c0)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:153 +0x49
created by github.com/influxdata/telegraf/agent.gatherWithTimeout
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:154 +0xcc
server: dev.dpm:

panic: interface conversion: interface {} is nil, not int64
goroutine 700842 [running]:
github.com/influxdata/telegraf/plugins/inputs/system.(*Processes).gatherFromProc(0xc42011b5e0, 0xc42041c8a0, 0x40563d, 0x1146a00)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/system/processes.go:188 +0x698
github.com/influxdata/telegraf/plugins/inputs/system.(*Processes).Gather(0xc42011b5e0, 0x1b05540, 0xc4202b1800, 0x0, 0x0)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/system/processes.go:56 +0xf2
github.com/influxdata/telegraf/agent.gatherWithTimeout.func1(0xc420ad8f60, 0xc42011c200, 0xc4202b1800)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:153 +0x49
created by github.com/influxdata/telegraf/agent.gatherWithTimeout
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:154 +0xcc

@danielnelson
Copy link
Contributor

@robinsmidsrod Thanks for the new stacktraces, are these still with Telegraf 1.1?

@robinsmidsrod
Copy link
Author

@danielnelson Forgot to mention that these new ones are from version 1.3.5. We've diligently upgraded to the latest version in hopes of getting rid of these kinds of errors over time.

@danielnelson
Copy link
Contributor

@robinsmidsrod Does this issue still occur with Telegraf 1.9 or newer?

@robinsmidsrod
Copy link
Author

@danielnelson Actually, we've been using 1.10.0 on our cluster of around 50 machines for some time now, and I just now checked the logs and it seems like we haven't seen the message mentioned in the original bug report in at least a week, so it seems like it is actually fixed.

I think we can close this one. Most likely it fixed itself as a side-effect of some other change to the codebase. If it ends up coming back I can always reopen this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior panic issue that results in panics from Telegraf
Projects
None yet
Development

No branches or pull requests

3 participants