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

runtime: defer statement not executed during panicking #43939

Closed
mdempsky opened this issue Jan 27, 2021 · 1 comment
Closed

runtime: defer statement not executed during panicking #43939

mdempsky opened this issue Jan 27, 2021 · 1 comment
Labels

Comments

@mdempsky
Copy link
Member

@mdempsky mdempsky commented Jan 27, 2021

This program should run successfully: https://play.golang.org/p/rms3jZGZcAQ

It does run successfully with gccgo, but it fails with cmd/compile. The problem is the deferred function containing "panic(4)" is never executed.

/cc @danscales @randall77

Found with mdempsky/deferfuzz.

@mdempsky
Copy link
Member Author

@mdempsky mdempsky commented Jan 27, 2021

Looks like a duplicate of #43921 actually. It's also fixed by CL 286712, PS 3.

@mdempsky mdempsky closed this Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant