openwrt / openwrt/packages

telegraf-full: panic/runtime error when executing the binary

Open
#19,663 3 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.