cmd/link: bad decoding of R_USEGENERICIFACEMETHOD relocation #54346
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
At commit 228f891, running the test program below with
go run
fails with "fatal error: unreachable method called. linker bug?".I think there's something wrong with parsing the R_USEGENERICIFACEMETHOD relocation:
Presumably the trailing zero bytes then causes it to fail to preserve the
x
method in the itabs.Note the trailing zero bytes in the method name, which presumably go onto causing the
x
method to get trimmed.Renaming the method seems to avoid the issue. Though notably, I initially ran into the issue with GOEXPERIMENT=unified and a method named
g
, and assumed it was an issue on my end. So it's not specific to justx
.Trimming down the imports also seems to break the failure.
/cc @golang/compiler
The text was updated successfully, but these errors were encountered: