-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.
Description
I tried this code:
cargo new bug
cd bug
cargo build --target x86_64-unknown-linux-musl
./target/x86_64-unknown-linux-musl/debug/bug
> Segmentation fault (core dumped)
I expected to have it say hello world.
Instead, this happened:
(gdb) r
Starting program: /tmp/bug/target/x86_64-unknown-linux-musl/debug/bug
Program received signal SIGSEGV, Segmentation fault.
0x000055555555916b in _start_c ()
(gdb) bt
#0 0x000055555555916b in _start_c ()
#1 0x00007fffffffbb89 in ?? ()
#2 0x00000000bfebfbff in ?? ()
#3 0x0000000000000064 in ?? ()
#4 0x0000000000000000 in ?? ()
(gdb)
Meta
rustc --version --verbose
:
rustc 1.49.0 (e1884a8e3 2020-12-29)
binary: rustc
commit-hash: e1884a8e3c3e813aada8254edfa120e85bf5ffca
commit-date: 2020-12-29
host: x86_64-unknown-linux-gnu
release: 1.49.0
I am on nixos 20.09.2812.f18fbc33930 (Nightingale)
uname -a
: Linux dell 5.4.93 #1-NixOS SMP Wed Jan 27 10:47:55 UTC 2021 x86_64 GNU/Linux
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.