-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
ld.so assertion failure when using raw-dylib on Linux #145854
Copy link
Copy link
Open
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.F-raw_dylib`#![feature(raw_dylib)]``#![feature(raw_dylib)]`O-linuxOperating system: LinuxOperating system: LinuxT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.F-raw_dylib`#![feature(raw_dylib)]``#![feature(raw_dylib)]`O-linuxOperating system: LinuxOperating system: LinuxT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried the raw-dylib feature in fortanix/rust-sgx#804 but unfortunately I couldn't get it to work. I'm getting this error when doing
cargo run -p fortanix-sgx-tools --bin ftxsgx-runner.This is on Ubuntu 24.04 with libc 2.39-0ubuntu8.5. rustc 1.89.0-nightly (d4e1159 2025-06-21).
There are no major differences in
objdump -P(just the ordering of DT_NEEDED entries is different, but I don't think that should matter?). There is a small difference inobjdump -T:I don't know that this is related to the assertion failure, but it's a bit surprising to me the F flag isn't getting set using the new method. I'm using
extern { fn ... }in addition to using.type ..., functionin assembly.