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
I have a complicated code base so it is hard to pin down, but if I get a minimal repro I will update this issue. Within this code base, I have a 'hang' where execution abruptly stops because a function never returns but it also doesn't panic. I can print from a defer call at the top of a function call but not from the line after the function returns. When I attach a debugger, it ends at this line in panic.go:
if gp._defer != d {
throw("bad defer entry in panic")
}
After which I get no panic or stderr, execution just seems to stop. I do have a panic in a defer. When I fix it everything works fine.
What did you expect to see?
A panic, I think.
What did you see instead?
Nothing, a halt.
The text was updated successfully, but these errors were encountered:
stoksc
changed the title
affected/package: bad defer entry in panic with panic in defer
Jun 29, 2023
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, I saw it on the 1.21 rc version, too.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I have a complicated code base so it is hard to pin down, but if I get a minimal repro I will update this issue. Within this code base, I have a 'hang' where execution abruptly stops because a function never returns but it also doesn't panic. I can print from a
defer
call at the top of a function call but not from the line after the function returns. When I attach a debugger, it ends at this line inpanic.go
:After which I get no panic or stderr, execution just seems to stop. I do have a panic in a defer. When I fix it everything works fine.
What did you expect to see?
A panic, I think.
What did you see instead?
Nothing, a halt.
The text was updated successfully, but these errors were encountered: