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
{{ message }}
Repository navigation
cmd/compile: internal compiler error: method Len on *uint8 not found [1.19 backport] #55270
It's intentionally minimally invasive to address the issue while minimizing risk of collateral damage.
Specifically, instead of hitting an ICE while emitting broken dictionary symbols, it changes the compiler to skip emitting those symbols instead. If the symbols are actually needed, the consequence is this just turns an ICE into a linker failure: no real harm.
But I believe in practice the broken symbols aren't actually needed in the final executable, and so the linker's reachability analysis will simply ignore the missing symbol.
Activity
mdempsky commentedon Sep 20, 2022
The backport CL is https://go-review.googlesource.com/c/go/+/429895
It's intentionally minimally invasive to address the issue while minimizing risk of collateral damage.
Specifically, instead of hitting an ICE while emitting broken dictionary symbols, it changes the compiler to skip emitting those symbols instead. If the symbols are actually needed, the consequence is this just turns an ICE into a linker failure: no real harm.
But I believe in practice the broken symbols aren't actually needed in the final executable, and so the linker's reachability analysis will simply ignore the missing symbol.
gopherbot commentedon Sep 20, 2022
Change https://go.dev/cl/429895 mentions this issue:
[release-branch.go1.19] cmd/compile: skip emitting dictionaries with missing method expressionsgopherbot commentedon Sep 21, 2022
Closed by merging 3747bb2 to release-branch.go1.19.
[release-branch.go1.19] cmd/compile: skip emitting dictionaries with …
[release-branch.go1.19] cmd/compile: skip emitting dictionaries with …
[release-branch.go1.19] cmd/compile: skip emitting dictionaries with …
[release-branch.go1.19] cmd/compile: skip emitting dictionaries with …