plugin: R15 clobbered when loading outside variables #36509
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Encountered a bug when using cloudflare/bn256 inside of a plugin. After reporting it here we have a minimal example here.
The minimal example loads
1
into R15, then reads an unrelated variable and returns the contents of R15.What did you expect to see?
The number
1
being returned.What did you see instead?
Random huge numbers.
Other
I strongly suspect this is essentially the same problem as #18820, but with a different library. From what I understand this probably won't be changed, but I could not find any official statement that no one should expect using R15 and loading variables to work together when dynamically linking, so it is technically still a bug, right?
The text was updated successfully, but these errors were encountered: