Skip to content

time.Sleep returns immediately for very long durations (integer overflow?) #36202

Closed
@cfhay

Description

@cfhay
go1.13.5
amd64p32

If Duration is at least around MaxInt64 / 4, time.Sleep returns immediately. This doesn't happen at MaxInt64 / 8.

https://play.golang.org/p/nC3KiDrY_vr

What did you expect to see?

The script should start sleeping.

What did you see instead?

time.Sleep returns immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions