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
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.

Comments

@mdempsky
Copy link
Member

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 mdempsky added the NeedsFix The path to resolution is known, but the work has not been done. label Jan 27, 2021
@mdempsky
Copy link
Member Author

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

@golang golang locked and limited conversation to collaborators Jan 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

2 participants