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
When using the identity::ed25519::SecretKey::from_bytes function from rust-libp2p in a release build on Linux (Ubuntu 24), a segmentation fault occurs. This happens during the process of deriving a libp2p identity in our project. The issue appears to be specific to Linux systems and only occurs when building in release mode.
Hi! Thanks for the report, version 0.42.2 is from more than two years ago. Can you reproduce this in a recent version?
binarybaron
changed the title
Segmentation fault in identity::ed25519::SecretKey::from_bytes on Linux
Segmentation fault in identity::ed25519::SecretKey::from_bytes on Linux
Oct 12, 2024
Summary
When using the identity::ed25519::SecretKey::from_bytes function from rust-libp2p in a release build on Linux (Ubuntu 24), a segmentation fault occurs. This happens during the process of deriving a libp2p identity in our project. The issue appears to be specific to Linux systems and only occurs when building in release mode.
https://github.com/UnstoppableSwap/core/blob/d4503a6e9cd9d5ec3d3faef8ff956c32875f6335/swap/src/seed.rs#L44-L49
UnstoppableSwap/core#95
Expected behavior
The identity::ed25519::SecretKey::from_bytes function should safely create a SecretKey from the provided bytes without causing a crash.
Actual behavior
The application crashes with a segmentation fault when calling identity::ed25519::SecretKey::from_bytes.
Relevant log output
Possible Solution
No response
Version
We're using 0.42.2. We know this is relatively old but upgrading is a ton of work (we're on it)
Would you like to work on fixing this bug ?
Yes
The text was updated successfully, but these errors were encountered: