telegraf-full: panic/runtime error when executing the binary
Nobody has claimed this yet.
- Dominant language
- Makefile
- Stars
- 4.6k
- Forks
- 4k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 134
Description
Maintainer: @JonnyTischbein
Model: Raspberry Pi 4 Model B Rev 1.5
VERSION="22.03.2"
ID="openwrt"
VERSION_ID="22.03.2"
BUILD_ID="r19803-9a599fee93"
OPENWRT_BOARD="bcm27xx/bcm2711"
OPENWRT_ARCH="aarch64_cortex-a72"
Description:
telegraf-full package fails to run on Openwrt build for Raspberry Pi 4. It throws a panic/runtime error. Just trying to print the version of the program fails as well.
root@router:~# telegraf --version
panic: runtime error: index out of range [1] with length 1
goroutine 1 [running]:
modernc.org/libc/honnef.co/go/netdb.init.0()
modernc.org/libc@v1.16.7/honnef.co/go/netdb/netdb.go:760 +0x4cc
Slimmed down version (package called telegraf) has no issues running.
root@router # telegraf --version
Telegraf 1.23.4
I am not sure what else to try at this point.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce telegraf --version on the reported OpenWrt Raspberry Pi 4 environment, then inspect the panic at modernc.org/libc@v1.16.7/honnef.co/go/netdb/netdb.go:760. Compare the full telegraf-full package with the working slim telegraf package; done means the full package can print its version without a runtime panic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- observability-sre, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100