Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#74580 - [grafana-agent] Panic on startup due to "too new" Go compiler used

Attached to Project: Community Packages
Opened by FallenWarrior2k (FallenWarrior2k) - Thursday, 28 April 2022, 13:47 GMT
Last edited by Daurnimator (daurnimator) - Friday, 29 April 2022, 03:19 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Daurnimator (daurnimator)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The dependency graph of Grafana Agent includes the package `go4.org/unsafe/assume-no-moving-gc`, which, in the version included in Grafana Agent 0.24.1, causes a panic on start-up when compiled with Go versions newer than 1.17:

panic: Something in this program imports go4.org/unsafe/assume-no-moving-gc to declare that it assumes a non-moving garbage collector, but your version of go4.org/unsafe/assume-no-moving-gc hasn't been updated to assert that it's safe against the go1.18 runtime. If you want to risk it, run with environment variable ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.18 set. Notably, if go1.18 adds a moving garbage collector, this program is unsafe to use.
goroutine 1 [running]:
go4.org/unsafe/assume-no-moving-gc.init.0()
go4.org/unsafe/assume-no-moving-gc@v0.0.0-20201222180813-1025295fd063/untested.go:24 +0x1f4

This was fixed upstream three commits after the release branch for 0.24 was created, but unfortunately, there is no tag for the new version yet: https://github.com/grafana/agent/commit/9e373f7b128c5045618371837dcdb0fc86dcbe76

Additional info:
* `grafana-agent 0.24.1`

Steps to reproduce: Attempt to start Grafana Agent 0.24.1 (in my case via systemd service) after installing the package.
This task depends upon

Closed by  Daurnimator (daurnimator)
Friday, 29 April 2022, 03:19 GMT
Reason for closing:  Fixed

Loading...