-
Notifications
You must be signed in to change notification settings - Fork 163
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
Using PkarrPublisher on the macOS platform in release mode causes a segmentation fault. #2844
Comments
I tested it on macOS based on Apple Silicon (M4), and the results were consistent with x64. |
you are saying it segfaults on arm as well? that’s very surprising, as I am using this actively on macos arm and we run full ci on that |
are you by any chance cross compiling? or are you building on the target machines directly? |
I apologize for the confusion. After retesting on the M4, I realized there was no issue. My initial mistake was due to wrapping iroh-net for Flutter, where Rust segfaults don't crash the app. Seeing errors on the M4 from iroh-net led to my incorrect judgment. The issue might be related to my own code, and I need to investigate further. |
no worries, appreciate the update. let us know what you find |
I tested with the latest master code on x64 macos, and the segmentation fault still occurs. |
Environment:
x64_64
How to reproduce?
Use
.discovery_n0()
inEndpoint::builder()
for anyiroh-net
example, and run the example in release mode on macOS.Commenting out the following code in
discovery_n0
avoids the segmentation fault:Log
Log information when a segmentation fault occurs while running with lldb:
The text was updated successfully, but these errors were encountered: