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

tour: no error produced for infinite recursion #1570

Open
krelinga opened this issue Dec 30, 2023 · 0 comments
Open

tour: no error produced for infinite recursion #1570

krelinga opened this issue Dec 30, 2023 · 0 comments

Comments

@krelinga
Copy link

Context: https://go.dev/tour/concurrency/10

This isn't specifically related to the tour, but I discovered it while working on this exercise.

Here's some simplified code that triggers the case I'm seeing:

package main

func main() {
	main()
}

When I run this code the only feedback that I get is Program exited. This is in contrast to other similar cases, for example the infinite loop caused by for {}, where I get an error message like timeout running program in addition to Program exited. Just a guess, but maybe there's some error related to max stack depth that isn't getting propagated to the UI?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant