Skip to content

goleak in the telemetry/cte_test #41337

@hawkingrei

Description

@hawkingrei

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

2. What did you expect to see? (Required)

3. What did you see instead (Required)

==================== Test output for //telemetry/cte_test:cte_test_test:
 goleak: Errors on successful test run: found unexpected goroutines:
[Goroutine 23222 in state syscall, with syscall.Syscall on top of the stack:
goroutine 23222 [syscall]:
syscall.Syscall(0xc005fb6788?, 0x19ea445?, 0xc0006f5380?, 0x1a1a12c?)
	GOROOT/src/syscall/syscall_linux.go:68 +0x31
syscall.read(0x1a1b345?, {0xc005980900, 0x89d, 0x0?})
	GOROOT/src/syscall/zsyscall_linux_amd64.go:696 +0x5d
syscall.Read(0xc004a41c38?, {0xc005980900, 0x89d, 0x89d})
	GOROOT/src/syscall/syscall_unix.go:183 +0x4f
internal/poll.ignoringEINTRIO(...)
	GOROOT/src/internal/poll/fd_unix.go:794
internal/poll.(*FD).Read(0xc004a41c20?, {0xc005980900?, 0x89d?, 0x89d?})
	GOROOT/src/internal/poll/fd_unix.go:163 +0x44c
os.(*File).read(...)
	GOROOT/src/os/file_posix.go:31
os.(*File).Read(0xc0054e29a0, {0xc005980900, 0x89d, 0x89d})
	GOROOT/src/os/file.go:119 +0xc8
os.ReadFile({0xc0058bfa40, 0x29})
	GOROOT/src/os/file.go:725 +0x285
crypto/x509.loadSystemRoots()
	GOROOT/src/crypto/x509/root_unix.go:70 +0x44a
crypto/x509.initSystemRoots()
	GOROOT/src/crypto/x509/root.go:28 +0x2a
sync.(*Once).doSlow(0xe884040, 0x7108da8)
	GOROOT/src/sync/once.go:74 +0x102
sync.(*Once).Do(0xe884040, 0xc005d07cc0?)
	GOROOT/src/sync/once.go:65 +0x47
crypto/x509.systemRootsPool(...)
	GOROOT/src/crypto/x509/root.go:23
crypto/x509.(*Certificate).Verify(0xc000a46680, {{0xc000182220, 0x15}, 0xc0089b9aa0, 0x0, {0xc0f280eef512d039, 0x7d66184d0, 0xd918460}, {0x0, 0x0, ...}, ...})
	GOROOT/src/crypto/x509/verify.go:782 +0x2ea
crypto/tls.(*Conn).verifyServerCertificate(0xc005cbee00, {0xc0089b9590, 0x2, 0x2})
	GOROOT/src/crypto/tls/handshake_client.go:874 +0x958
crypto/tls.(*clientHandshakeState).doFullHandshake(0xc005fb7b80)
	GOROOT/src/crypto/tls/handshake_client.go:518 +0x2e5
crypto/tls.(*clientHandshakeState).handshake(0xc005fb7b80)
	GOROOT/src/crypto/tls/handshake_client.go:436 +0x6a7
crypto/tls.(*Conn).clientHandshake(0xc005cbee00, {0x8881868, 0xc008325840})
	GOROOT/src/crypto/tls/handshake_client.go:235 +0x678
crypto/tls.(*Conn).handshakeContext(0xc005cbee00, {0x88818d8, 0xc0047311a0})
	GOROOT/src/crypto/tls/conn.go:1462 +0x476
crypto/tls.(*Conn).HandshakeContext(...)
	GOROOT/src/crypto/tls/conn.go:1405
net/http.(*persistConn).addTLS.func2()
	GOROOT/src/net/http/transport.go:1538 +0xaf
created by net/http.(*persistConn).addTLS
	GOROOT/src/net/http/transport.go:1534 +0x706 

4. What is your TiDB version? (Required)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions