-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
solana program deploy
segfaults on macOS
#33372
Comments
Failed to load / store SIMD registers, which was caused by the stack pointer not being 16 byte aligned. |
Hi @Lichtso, I'm currently observing similar issue on MacOS running latest master: ~/solana (master) » solana program write-buffer /Users/norwnd/solana-random-number-betting-game/solana-program/target/deploy/bpf_program_template.so
[1] 80589 segmentation fault solana program write-buffer I assume it already includes the fix you mentioned above, hence I'm raising it hoping you can take a look, I'm quite new to Rust (and solana repo), but I managed to track the culprit down to let mnemonic = Mnemonic::new(MnemonicType::for_word_count(WORDS)?, Language::English); I also can't reproduce this segfault with a simple unit-test: #[test]
fn test_try_reproduce_segfault() {
let (_, mnemonic, _) = create_ephemeral_keypair().expect("got error");
assert_eq!("some phrase", mnemonic.phrase())
} and I'm not sure what to make of it, thoughts ? Also, I think this segfault wasn't a thing ~1 month ago, I think I started observing it after ~roughly recent Mac update about a week ago (could be a Rust/OS issue then, googling didn't help though). |
Problem
Running
solana program deploy
command on macOS crashes withSegmentation fault: 11
. This happens to solana built from source with the current top of the master branch, and only if built in release mode. The same source (of solana cli) built in debug mode works ok. The deployment is done to a local test validator.For example:
Or in debugger
Proposed Solution
Debug and fix.
The text was updated successfully, but these errors were encountered: