Skip to content

crypto/tls: data race accessing Conn.handshakeErr in QUICConn.NextEvent #77274

Description

@marten-seemann

What version of Go are you using (go version)?

$ go version
go version go1.26rc2 darwin/arm64

Does this issue reproduce with the latest release?

No, it does not reproduce with go1.25.x.

What did you do?

A user observed a data race: quic-go/quic-go#5548

What did you expect to see?

No data race.

What did you see instead?

The handshake error variable (handshakeErr) is accessed without a mutex.

Code links:

This bug was introduced in the CL that added QUICErrEvent: https://go-review.googlesource.com/c/go/+/719040

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixPendingIssues that have a fix which has not yet been reviewed or submitted.release-blocker

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions