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
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 41 (41 by maintainers)
I fetched the test timing data for this test on the gotip-linux-arm64-asan-clang15 builder, plotted as below
There are clearly two transitions
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.