go: runtime: TestNeedmDeadlock failures

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

Issue created automatically to collect these failures.

Example (log):

--- FAIL: TestNeedmDeadlock (5.11s)
    testenv.go:459: [/data/golang/workdir/tmp/go-build4218498514/testprogcgo.exe NeedmDeadlock] exit status: exit status 1
    crash_cgo_test.go:714: want OK
        , got Hung for 5 seconds

— watchflakes

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 41 (41 by maintainers)

Commits related to this issue

Most upvoted comments

I fetched the test timing data for this test on the gotip-linux-arm64-asan-clang15 builder, plotted as below

Image

There are clearly two transitions

...
bd299852,2025-05-19 17:20:17 +0000 UTC,PASS,0.02,
a74ae952,2025-05-19 17:38:56 +0000 UTC,PASS,0.02,
5afada03,2025-05-19 17:54:45 +0000 UTC,PASS,0.01,
2c929d6f,2025-05-19 18:00:01 +0000 UTC,PASS,3,     <---
bc5aa2f7,2025-05-19 18:00:10 +0000 UTC,PASS,2.94,
11c86ddc,2025-05-19 18:20:58 +0000 UTC,PASS,2.84,
...
683810a3,2025-06-13 16:04:49 +0000 UTC,PASS,2.82,
64490589,2025-06-13 16:06:39 +0000 UTC,PASS,2.84,
96a6e147,2025-06-13 16:09:17 +0000 UTC,PASS,2.9,
ea00461b,2025-06-16 17:05:39 +0000 UTC,FAIL,,6.32  <---
816199e4,2025-06-16 22:16:29 +0000 UTC,PASS,4.26,
3254c2bb,2025-06-16 22:21:48 +0000 UTC,PASS,5.35,
d0582546,2025-06-16 22:48:19 +0000 UTC,FAIL,,7.33
...

The first one is at 2c929d6f, “runtime: pass through -asan/-msan/-race to testprog tests”. For the ASAN builder, it now runs the test with ASAN, so an increase in time is expected.

The second one is at ea00461b, “internal/trace: make Value follow reflect conventions”, which doesn’t seem related, as the test doesn’t seem to have tracing turned on. The previous and next few commits also don’t seem related. Maybe a builder configuration change between 2025-06-13 and 2025-06-16?

Either way, at least for the first one, an increase in time seems expected. The test currently has a 5-second timeout, which is sort of arbitrary. It is long enough in regular mode, but not quite so for configurations like ASAN. I think we should just remove the arbitrary timeout, and use the test’s deadline. The ASAN builder probably has a longer test deadline. I’ll send a CL.

Seems no new failure for quite a while. Move to backlog.