autopkgtest failure on armhf

Bug #1935069 reported by Sergio Durigan Junior
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
golang-github-uber-go-atomic (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

golang-github-uber-go-atomic's autopkgtest is currently failing on armhf with:

src/github.com/uber-go/atomic/uintptr_test.go:72:29: constant 18446744073709551615 overflows uintptr

I spent some time investigating it, and it's coming from this line on uintptr_test.go:

atom := NewUintptr(uintptr(math.MaxUint64))

The problem seems to affect 32-bit architectures, and is well known by the upstream Golang developers:

https://github.com/golang/go/issues/23086
https://github.com/golang/go/issues/23087

I tried a workaround that supposedly should work (casting math.MaxUint64 to uint64), but unfortunately it didn't.

I've reported the bug upstream.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

This is the link to the upstream bug: https://github.com/uber-go/atomic/issues/99

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package golang-github-uber-go-atomic - 1.8.0-2

---------------
golang-github-uber-go-atomic (1.8.0-2) unstable; urgency=medium

  * d/p/0001-uintptr-test-Fix-overflow-on-architectures-with-32-b.patch:
    Fix uintptr test on 32-bit architectures. (Closes: #990827) (LP: #1935069)

 -- Sergio Durigan Junior <email address hidden> Fri, 09 Jul 2021 12:32:37 -0400

Changed in golang-github-uber-go-atomic (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.