FuelLabs / fuels-rs

Fuel Network Rust SDK
https://fuellabs.github.io/fuels-rs
Apache License 2.0
44.27k stars 1.34k forks source link

Memory-write-overlap bug #1469

Closed Braqzen closed 1 month ago

Braqzen commented 1 month ago

Context

Old code base used forc 0.49.X with fuels 0.55.0 in which tests have passed.

Repo was bumped to forc 0.61.2 and fuels 0.64.0 and some tests started to fail because different values were reported.

In this particular issue it's a new revert error which was not happening before. Moreover, the SDK was bumped again to 0.65.1 and the revert persists.

Repro

  1. Clone https://github.com/Braqzen/memory-write-overlap-bug
  2. In the repo forc build
  3. Then cargo test

Test Error

1

hal3e commented 1 month ago

@Braqzen thank you for the bug report and for the nice repro. This is a compiler bug and I will forward it to the compiler team. I will leave this issue open until we confirm the bug is fixed.

hal3e commented 1 month ago

@Braqzen It was confirmed that this is a compiler bug. We have created a new issue on the sway repo: https://github.com/FuelLabs/sway/issues/6361