go: runtime: TestCgoPprofCallback hang on linux-arm

#!watchflakes
post <- pkg == "runtime" && test == "TestCgoPprofCallback"

2022-08-26T18:09:56-62125c9/linux-arm-aws

The failure is giant so no summary here.

cc @golang/runtime

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (14 by maintainers)

Most upvoted comments

The mayMoreStackPreempt ones are #54885, which is fixed.

All the linux-amd64-longtest and linux-386-longtest failures are build with -dmaymorestack=mayMoreStackPreempt. They also haven’t happened for some time.

All the other failures appear to be on slow machines. This is a CPU intensive test: it calls runtime.GOMAXPROCS(16) and then starts 64 goroutines. Each goroutine does an endless loop of sleeping for 50 microseconds and calling a Go function. The program keeps this up for a full second. And, the test is run in parallel with other tests.

So I think this is a flaky test. I think we should not return this CPU intensive test in parallel with other tests, and since it takes a full second I think we should not run it in short mode.

CC @prattmic for other opinions since he wrote the test.