Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go/types: type-checking running "forever" (consuming all memory) #7756

Closed
griesemer opened this issue Apr 10, 2014 · 1 comment
Closed

go/types: type-checking running "forever" (consuming all memory) #7756

griesemer opened this issue Apr 10, 2014 · 1 comment

Comments

@griesemer
Copy link
Contributor

http://play.golang.org/p/xoT0jSBOci

Type-checking this code will consume all memory and eventually die (and exhaust the
machine's virtual memory). 

See also issue #7754, 7755.
@griesemer griesemer self-assigned this Apr 10, 2014
@rsc rsc added this to the Unplanned milestone Apr 10, 2015
@rsc rsc changed the title go.tools/go.types: type-checking running "forever" (consuming all memory) x/tools/go.types: type-checking running "forever" (consuming all memory) Apr 14, 2015
@rsc rsc modified the milestones: Unreleased, Unplanned Apr 14, 2015
@rsc rsc removed the repo-tools label Apr 14, 2015
@griesemer griesemer changed the title x/tools/go.types: type-checking running "forever" (consuming all memory) go/types: type-checking running "forever" (consuming all memory) Jul 31, 2015
@griesemer
Copy link
Contributor Author

The type checker has now safeguards to prevent endless runs like this one. The example code compiles without problems. Closing.

@golang golang locked and limited conversation to collaborators Jun 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants