Skip to content

context: BenchmarkWithTimeout/concurrency tests hang if -test.timeout=30m used on linux/{amd64,ppc64le,...} #42402

@laboger

Description

@laboger

What version of Go are you using (go version)?

$ go version
go version devel +63fd764502 Wed Nov 4 23:24:22 2020 +0000 linux/ppc64le
go version devel +34c09695db Thu Nov 5 15:16:57 2020 +0000 linux/amd64
Hangs on both. Didn't try any others.

Does this issue reproduce with the latest release?

Does not hang in go 11.5.

What operating system and processor architecture are you using (go env)?

go env Output
$ go env

What did you do?

cd context
go test -test.bench=Timeout -test.timeout=30m -test.count=100

What did you expect to see?

Benchmarks complete with benchmark timing output.

What did you see instead?

One of the Timeout benchmarks hangs and the benchmarks do not finish.
go test -test.bench=Timeout -test.timeout=30m -test.count=100
goos: linux
goarch: ppc64le
pkg: context
BenchmarkWithTimeout/concurrency=40-16 317062 3244 ns/op
BenchmarkWithTimeout/concurrency=40-16 318670 3236 ns/op
BenchmarkWithTimeout/concurrency=40-16 383541 3008 ns/op
BenchmarkWithTimeout/concurrency=40-16 372940 3123 ns/op
BenchmarkWithTimeout/concurrency=40-16 (stops here.... )
Same behavior on amd64.

Trying some earlier commits, I found one from early September that does not hang but more experiments needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions