You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
go/types, types2: panic with invalid cyclic program involving unsafe.Sizeof #75918
This looks like it could be the same thing, so I don't want to create a duplicate issue. I ran into a similar panic when testing an open source linter. Here's the repro with trace logs enabled:
cd$(mktemp -d)
git clone https://github.com/charithe/durationcheck
cd durationcheck
# I manually set `check.conf._Trace = true` inside# /opt/homebrew/Cellar/go/1.25.3/libexec/src/go/types/check.go since I# couldn't see a convenient way to do it from outside.
go test
Activity
gabyhelp commentedon Oct 15, 2025
Related Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
coxley commentedon Oct 23, 2025
This looks like it could be the same thing, so I don't want to create a duplicate issue. I ran into a similar panic when testing an open source linter. Here's the repro with trace logs enabled:
Trace Output
It panics with the following Go versions:
Works with 1.21 and older:
gopherbot commentedon Nov 20, 2025
Change https://go.dev/cl/722161 mentions this issue:
go/types, types2: replace setDefType with boundariesgopherbot commentedon Dec 3, 2025
Change https://go.dev/cl/726580 mentions this issue:
go/types, types2: add check for finite memory at value observancego/types, types2: add check for finite size at value observance