On Mon, Apr 8, 2019 at 8:52 PM <[email protected]> wrote: > > I build .debs of Go which are used as a dependency for Prometheus debs. > Doing code upgrades I started getting a weird panic from the Go linker that I > don't see elsewhere on the Internet, and seems different from the cgo bug > that caused 1.12.3 to be released today. Below are the relevant logs. Of > course, I can't reproduce this with the Go distributed binaries, so I assume > I'm missing some sort of build dependency. Just not sure where to look next. > Help appreciated!
> go install -ldflags "-X > github.com/prometheus/prometheus/vendor/github.com/prometheus/common/version.Version=2.8.1 > -X > github.com/prometheus/prometheus/vendor/github.com/prometheus/common/version.Revision=2.8.1-1 > -X > github.com/prometheus/prometheus/vendor/github.com/prometheus/common/version.Branch=fitbit > -X > github.com/prometheus/prometheus/vendor/github.com/prometheus/common/[email protected] > -X > github.com/prometheus/prometheus/vendor/github.com/prometheus/common/version.BuildDate=2019-04-09T02:11:59Z" > github.com/prometheus/prometheus/cmd/prometheus > # github.com/prometheus/prometheus/cmd/prometheus > panic: runtime error: index out of range > > goroutine 1 [running]: > cmd/link/internal/ld.decodetypeKind(...) > /usr/lib/go/src/cmd/link/internal/ld/decodesym.go:69 > cmd/link/internal/ld.newtype(0xc0006ca000, 0xc00960dda0, 0xc02d889110) > /usr/lib/go/src/cmd/link/internal/ld/dwarf.go:423 +0x29e1 > cmd/link/internal/ld.defgotype(0xc0006ca000, 0xc00960dda0, 0x1a) > /usr/lib/go/src/cmd/link/internal/ld/dwarf.go:418 +0x1c9 > cmd/link/internal/ld.dwarfGenerateDebugInfo(0xc0006ca000) > /usr/lib/go/src/cmd/link/internal/ld/dwarf.go:1810 +0x8ee > cmd/link/internal/ld.Main(0x82ed20, 0x10, 0x20, 0x1, 0x7, 0x10, 0x67a413, > 0x1b, 0x676fec, 0x14, ...) > /usr/lib/go/src/cmd/link/internal/ld/main.go:211 +0xb95 > main.main() > /usr/lib/go/src/cmd/link/main.go:65 +0x1d0 > debian/rules:42: recipe for target 'override_dh_auto_build' failed > make[1]: *** [override_dh_auto_build] Error 2 > make[1]: Leaving directory '/build/prometheus-2.8.1' > debian/rules:34: recipe for target 'build' failed > make: *** [build] Error 2 > dpkg-buildpackage: error: debian/rules build gave error exit status 2 > E: Failed autobuilding of package > I: unmounting /home/slack/pbuilder/xenial_result filesystem > I: unmounting dev/pts filesystem > I: unmounting proc filesystem > I: cleaning the build env > I: removing directory /var/cache/pbuilder/build/6196 and its subdirectories That does seem strange. I don't know what is happening here. Please open an issue with reproduction instructions. Thanks. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
