You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
Attempts to load Solana Move compiler generated binary files to a recent version of RBPF fail with the error
"Loading executable failed: InvalidAccountData"
To reproduce
Run a Move compiler generated binary file in ledger-tool built from recent Solana monorepo tree
cargo run --manifest-path ledger-tool/Cargo.toml -- program run -e debugger -i move/language/tools/move-mv-llvm-compiler/tests/rbpf-tests/entry-point04.json -l test-ledger move/language/tools/move-mv-llvm-compiler/tests/rbpf-tests/entry-point01-build/output.so
Stack trace/error message
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "Loading executable failed: InvalidAccountData"', ledger-tool/src/program.rs:385:6
Expected Behavior
Binary file is loaded and program is executed.
The text was updated successfully, but these errors were encountered:
This error is triggered by long symbol names contained in dynamic symbol table of the generated binary file. The symbols are exported from rust standard library. The standard library is built into a library archive when move-native library is created. By default the linker exports all global symbols defined in libraries linked into a shared object file that the linker creates.
The resolution for this problem is to make rustc output symbols with hidden visibility by default. The issue will be resolved by upgrading to the version of Solana platform-tools.
🐛 Bug
Attempts to load Solana Move compiler generated binary files to a recent version of RBPF fail with the error
To reproduce
Run a Move compiler generated binary file in ledger-tool built from recent Solana monorepo tree
Stack trace/error message
Expected Behavior
Binary file is loaded and program is executed.
The text was updated successfully, but these errors were encountered: