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:
timorl
changed the title
Pluins clobber R15
Plugins clobber R15 when loading outside variables
Jan 11, 2020
smasher164
changed the title
Plugins clobber R15 when loading outside variables
plugin: R15 clobbered when loading outside variables
Jan 11, 2020
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: