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
I'm porting Zed to Linux - zed-industries/zed#7343
It's currently crashing on startup even before main is entered.
Call stacks are corrupted until I build with "safestack" sanitizer, in which case it produces the following stack: openssl-crash2-stack.txt
Strace shows the configuration file read as the last thing:
Tried removing both features here - makes no difference, still crashes in the same place.
kvark
changed the title
Static curl is corrupting the stack at startup in OpenSSL's provider_conf_init
Corrupting the stack at startup in OpenSSL's provider_conf_initFeb 4, 2024
Based on feedback from "gabydd" in Zed Discord, this issue is likely caused by our erroneous build.rs instructions:
println!("cargo:rustc-env=MACOSX_DEPLOYMENT_TARGET=10.15.7");println!("cargo:rerun-if-env-changed=ZED_BUNDLE");if std::env::var("ZED_BUNDLE").ok().as_deref() == Some("true"){// Find WebRTC.framework in the Frameworks folder when running as part of an application bundle.println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path/../Frameworks");}else{// Find WebRTC.framework as a sibling of the executable when running outside of an application bundle.println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path");}// Weakly link ReplayKit to ensure Zed can be used on macOS 10.15+.println!("cargo:rustc-link-arg=-Wl,-weak_framework,ReplayKit");// Seems to be required to enable Swift concurrencyprintln!("cargo:rustc-link-arg=-Wl,-rpath,/usr/lib/swift");// Register exported Objective-C selectors, protocols, etcprintln!("cargo:rustc-link-arg=-Wl,-ObjC");
These aren't supposed to be on with Linux. Closing.
I'm porting Zed to Linux - zed-industries/zed#7343
It's currently crashing on startup even before
main
is entered.Call stacks are corrupted until I build with "safestack" sanitizer, in which case it produces the following stack:
openssl-crash2-stack.txt
Strace shows the configuration file read as the last thing:
I believe the callstack is coming from curl, which is coming to Zed through this dependency:
Note: was first submitted to sfackler/rust-openssl#2160
The text was updated successfully, but these errors were encountered: