[Bug 267788] Go testsuite fails in armv7 jail on arm64 host, but not on armv7 host

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 04 Dec 2022 19:43:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267788

--- Comment #4 from Robert Clausecker <fuz@fuz.su> ---
The failure mode differs between single and multi-threaded execution.

$ go test math/rand
stddev 6.485239797081586 != 4 (allowed error 0.4, 0.32)
stddev 8.278192731513668 != 4 (allowed error 0.4, 0.32)
stddev 14.106526765488345 != 4 (allowed error 0.4, 0.32)
--- FAIL: TestNonStandardNormalValues (0.39s)
    rand_test.go:125: stddev 6.485239797081586 != 4 (allowed error 0.4, 0.32)
    rand_test.go:128: stddev 8.278192731513668 != 4 (allowed error 0.4, 0.32)
    rand_test.go:131: stddev 14.106526765488345 != 4 (allowed error 0.4, 0.32)
FAIL
FAIL    math/rand       13.529s
FAIL
$ GOMAXPROCS=1 go test math/rand                                                
stddev NaN != 16 (allowed error 1.6, 1.28)
--- FAIL: TestNonStandardNormalValues (0.39s)
    rand_test.go:125: stddev NaN != 16 (allowed error 1.6, 1.28)
FAIL
FAIL    math/rand       12.905s
FAIL

To reproduce this more easily, you can produce a test binary using

$ go test -c math/rand

Which you can then dissect as desired.

-- 
You are receiving this mail because:
You are on the CC list for the bug.