Closed pgherveou closed 3 weeks ago
My best guess is that the packed struct in the implementation of call
and instantiate
trips PolkaVM up. It might generate some unaligned loads/stores which instead of panicing will just do whatever.
The CI pipeline was cancelled due to failure one of the required jobs. Job name: test-linux-stable 2/3 Logs: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7252202
My best guess is that the packed struct in the implementation of
call
andinstantiate
trips PolkaVM up. It might generate some unaligned loads/stores which instead of panicing will just do whatever.
Tested with a custom encoding (poor man SCALE solution) and I got the same bug
Looks like the test pass if I disable LTO, so maybe something with polkavm-linker
Yes it seems to be the polkavm-linker: https://github.com/xermicus/pvm-linker-bug-repro
Jan will debug.
fails with