Leaked Goroutine in cmd/praefect
Similar to #4551 (closed).
$ make test-go TEST_PACKAGES=./cmd/praefect
✖ cmd/praefect (32.274s)
=== Failed
=== FAIL: cmd/praefect (0.00s)
PASS
panic: goroutines running: found unexpected goroutines:
[Goroutine 472 in state syscall, with net._C2func_getaddrinfo on top of the stack:
goroutine 472 [syscall]:
net._C2func_getaddrinfo(0xc000c543cb, 0x0, 0xc000c70870, 0xc00200e058)
_cgo_gotypes.go:94 +0x56
net.cgoLookupIPCNAME.func1({0xc000c543cb, 0x504e4e03bffb8937?, 0x51eb851ff8?}, 0xc000c5a105?, 0x58?)
/usr/lib/golang/src/net/cgo_unix.go:160 +0x9f
net.cgoLookupIPCNAME({0x1a8c622, 0x2}, {0xc000c5a105, 0x4})
/usr/lib/golang/src/net/cgo_unix.go:160 +0x173
net.cgoIPLookup(0xc0038a5540?, {0x1a8c622?, 0xc001bc0fd0?}, {0xc000c5a105?, 0xc0000e7600?})
/usr/lib/golang/src/net/cgo_unix.go:217 +0x3b
created by net.cgoLookupIP
/usr/lib/golang/src/net/cgo_unix.go:227 +0x12a
Goroutine 60 in state syscall, with net._C2func_getaddrinfo on top of the stack:
goroutine 60 [syscall]:
net._C2func_getaddrinfo(0xc002b102e1, 0x0, 0xc002b2c4e0, 0xc002b3e030)
_cgo_gotypes.go:94 +0x56
net.cgoLookupIPCNAME.func1({0xc002b102e1, 0x0?, 0x0?}, 0xc002b1a145?, 0x0?)
/usr/lib/golang/src/net/cgo_unix.go:160 +0x9f
net.cgoLookupIPCNAME({0x1a8c622, 0x2}, {0xc002b1a145, 0x4})
/usr/lib/golang/src/net/cgo_unix.go:160 +0x173
net.cgoIPLookup(0xc0002927d0?, {0x1a8c622?, 0xc0006c03c0?}, {0xc002b1a145?, 0xc0006c03c0?})
/usr/lib/golang/src/net/cgo_unix.go:217 +0x3b
created by net.cgoLookupIP
/usr/lib/golang/src/net/cgo_unix.go:227 +0x12a
]
goroutine 1 [running]:
gitlab.com/gitlab-org/gitaly/v15/internal/testhelper.mustHaveNoGoroutines()
/home/toon/devel/gdk/gitaly/internal/testhelper/leakage.go:40 +0x3d6
gitlab.com/gitlab-org/gitaly/v15/internal/testhelper.Run.func1({0x0, 0x0, 0x0?}, 0x1b30095?)
/home/toon/devel/gdk/gitaly/internal/testhelper/configure.go:74 +0x295
gitlab.com/gitlab-org/gitaly/v15/internal/testhelper.Run(0xffffffffffffffff?, {0x0?, 0x442aa5?, 0xc00008e718?})
/home/toon/devel/gdk/gitaly/internal/testhelper/configure.go:75 +0x31
gitlab.com/gitlab-org/gitaly/v15/cmd/praefect.TestMain(...)
/home/toon/devel/gdk/gitaly/cmd/praefect/main_test.go:23
main.main()
_testmain.go:97 +0x1db
FAIL gitlab.com/gitlab-org/gitaly/v15/cmd/praefect 32.274s
DONE 124 tests, 1 failure in 49.735s
make: *** [Makefile:375: test-go] Error 1