Activity log for bug #1913852

Date Who What changed Old value New value Message
2021-01-30 02:57:55 rojer bug added bug
2021-01-30 04:59:21 Joshua Powers bug added subscriber Joshua Powers
2021-02-10 02:22:01 Michael Hudson-Doyle bug added subscriber Michael Hudson-Doyle
2021-02-11 00:24:09 Michael Hudson-Doyle nominated for series Ubuntu Xenial
2021-02-11 00:24:09 Michael Hudson-Doyle bug task added golang-1.13 (Ubuntu Xenial)
2021-02-11 00:27:51 Michael Hudson-Doyle description Backported go-1.13 came with issues with zlib. In some projects i see link errors: golang.org/x/crypto/openpgp/packet.(*Compressed).parse: relocation target compress/zlib.NewReaderDict not defined github.com/go-git/go-git/v5/plumbing/format/packfile.NewEncoder: relocation target compress/zlib.NewWriterLevelDict not defined github.com/go-git/go-git/v5/plumbing/format/packfile.(*Encoder).entry: relocation target compress/zlib.(*Writer).Reset not defined github.com/go-git/go-git/v5/plumbing/format/packfile.(*Scanner).copyObject: relocation target type.compress/zlib.Resetter not defined ... also reported in https://github.com/GoogleCloudPlatform/osconfig/issues/279 and compiling a trivial program (example from compress/zlib reference) causes crash during linking: root@a6a24cdee4e3:/src/qqq# cat go.mod module github.com/foo/baz go 1.13 root@a6a24cdee4e3:/src/qqq# cat main.go package main import ( "bytes" "compress/zlib" ) func main() { var b bytes.Buffer w := zlib.NewWriter(&b) w.Write([]byte("hello, world\n")) w.Close() } root@a6a24cdee4e3:/src/qqq# go version go version go1.13.8 linux/amd64 root@a6a24cdee4e3:/src/qqq# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.7 LTS" root@a6a24cdee4e3:/src/qqq# go build -v # github.com/foo/baz panic: runtime error: index out of range [23] with length 0 goroutine 1 [running]: cmd/link/internal/ld.decodetypeKind(...) /usr/lib/go-1.13/src/cmd/link/internal/ld/decodesym.go:69 cmd/link/internal/ld.newtype(0xc0006f4000, 0xc0007146e0, 0xc000618e68) /usr/lib/go-1.13/src/cmd/link/internal/ld/dwarf.go:424 +0x29e1 cmd/link/internal/ld.defgotype(0xc0006f4000, 0xc0007146e0, 0x1a) /usr/lib/go-1.13/src/cmd/link/internal/ld/dwarf.go:419 +0x1c8 cmd/link/internal/ld.dwarfGenerateDebugInfo(0xc0006f4000) /usr/lib/go-1.13/src/cmd/link/internal/ld/dwarf.go:1900 +0x91c cmd/link/internal/ld.Main(0x84cdc0, 0x10, 0x20, 0x1, 0x7, 0x10, 0x69ac6f, 0x1b, 0x697756, 0x14, ...) /usr/lib/go-1.13/src/cmd/link/internal/ld/main.go:212 +0xb92 main.main() /usr/lib/go-1.13/src/cmd/link/main.go:65 +0x1d6 [impact] Applications that use the "compress/zlib" package fail to build. [test case] $ cat > go.mod module github.com/foo/baz go 1.13 $ cat > main.go package main import (         "bytes"         "compress/zlib" ) func main() {         var b bytes.Buffer         w := zlib.NewWriter(&b)         w.Write([]byte("hello, world\n"))         w.Close() } $ go build -v The final command will fail before this is fixed and pass after. [regression potential] The fix is just preventing debhelper from stripping the zlib.a file in golang-1.13-go. Rebuilding the go toolchain one more time should not introduce any changes (the go project is pretty good about bootstrap hygiene). [original description] Backported go-1.13 came with issues with zlib. In some projects i see link errors: golang.org/x/crypto/openpgp/packet.(*Compressed).parse: relocation target compress/zlib.NewReaderDict not defined github.com/go-git/go-git/v5/plumbing/format/packfile.NewEncoder: relocation target compress/zlib.NewWriterLevelDict not defined github.com/go-git/go-git/v5/plumbing/format/packfile.(*Encoder).entry: relocation target compress/zlib.(*Writer).Reset not defined github.com/go-git/go-git/v5/plumbing/format/packfile.(*Scanner).copyObject: relocation target type.compress/zlib.Resetter not defined ... also reported in https://github.com/GoogleCloudPlatform/osconfig/issues/279 and compiling a trivial program (example from compress/zlib reference) causes crash during linking: root@a6a24cdee4e3:/src/qqq# cat go.mod module github.com/foo/baz go 1.13 root@a6a24cdee4e3:/src/qqq# cat main.go package main import (         "bytes"         "compress/zlib" ) func main() {         var b bytes.Buffer         w := zlib.NewWriter(&b)         w.Write([]byte("hello, world\n"))         w.Close() } root@a6a24cdee4e3:/src/qqq# go version go version go1.13.8 linux/amd64 root@a6a24cdee4e3:/src/qqq# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.7 LTS" root@a6a24cdee4e3:/src/qqq# go build -v # github.com/foo/baz panic: runtime error: index out of range [23] with length 0 goroutine 1 [running]: cmd/link/internal/ld.decodetypeKind(...)         /usr/lib/go-1.13/src/cmd/link/internal/ld/decodesym.go:69 cmd/link/internal/ld.newtype(0xc0006f4000, 0xc0007146e0, 0xc000618e68)         /usr/lib/go-1.13/src/cmd/link/internal/ld/dwarf.go:424 +0x29e1 cmd/link/internal/ld.defgotype(0xc0006f4000, 0xc0007146e0, 0x1a)         /usr/lib/go-1.13/src/cmd/link/internal/ld/dwarf.go:419 +0x1c8 cmd/link/internal/ld.dwarfGenerateDebugInfo(0xc0006f4000)         /usr/lib/go-1.13/src/cmd/link/internal/ld/dwarf.go:1900 +0x91c cmd/link/internal/ld.Main(0x84cdc0, 0x10, 0x20, 0x1, 0x7, 0x10, 0x69ac6f, 0x1b, 0x697756, 0x14, ...)         /usr/lib/go-1.13/src/cmd/link/internal/ld/main.go:212 +0xb92 main.main()         /usr/lib/go-1.13/src/cmd/link/main.go:65 +0x1d6
2021-02-16 20:43:22 Brian Murray golang-1.13 (Ubuntu Xenial): status New Fix Committed
2021-02-16 20:43:23 Brian Murray bug added subscriber Ubuntu Stable Release Updates Team
2021-02-16 20:43:26 Brian Murray bug added subscriber SRU Verification
2021-02-16 20:43:32 Brian Murray tags verification-needed verification-needed-xenial
2021-02-16 20:43:53 Brian Murray golang-1.13 (Ubuntu): status New Invalid
2021-04-13 23:53:22 rojer tags verification-needed verification-needed-xenial verification-done-xenial
2021-04-13 23:54:25 rojer tags verification-done-xenial verification-done-xenial verification-needed
2021-04-14 02:41:11 Chris Halse Rogers removed subscriber Ubuntu Stable Release Updates Team
2021-04-14 02:42:42 Launchpad Janitor golang-1.13 (Ubuntu Xenial): status Fix Committed Fix Released