runtime: crash on 1.14 with unexpected return pc, fatal error: unknown caller pc [1.14 backport]
gopherbot opened this issue · 5 comments
@danscales requested issue #37664 to be considered for backport to the next 1.14 minor release.
@gopherbot please consider this for backport to 1.14, it's a regression (and the fix is quite simple).
This is a regression in defer behavior for 1.14 for programs that do repeated panics, recovers, and re-panics (which could be because of a recursive, interpreter-like function). The actual fix is fairly simple, so it would be good to get this into 1.14.1.
Fix (submitted for 1.15) is here: https://go-review.googlesource.com/c/go/+/222420
Approving as this is a serious issue without a viable workaround. /cc @toothrot @cagedmantis
Change https://golang.org/cl/222818 mentions this issue: [release-branch.go1.14] runtime: fix problem with repeated panic/recover/re-panics and open-coded defers