#[link(kind = "static", name = "c")]
segfaults on run
#124043
Labels
A-linkage
Area: linking into static, shared libraries and binaries
C-bug
Category: This is a bug.
O-linux
Operating system: Linux
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
While working on #123974, I had a failure when running doctests of the unstable book. Rustdoc generates this code:
If you compile and run this program (on linux x86_64), it'll segfault. Commenting
#[link(kind = "static", name = "c")]
will make it run without problem.The text was updated successfully, but these errors were encountered: