[Bug 250783] ld segmentation fault
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Nov 1 23:25:06 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250783
--- Comment #5 from Nick Venenga <nijave at gmail.com> ---
I tried the FreeBSD 13.0 VM
# cargo rustc --bin maturin --manifest-path Cargo.toml \-- -C link-arg=-s
Compiling maturin v0.8.3 (/root/maturin)
error: linking with `cc` failed: exit code: 254
|
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64"
"-Wl,--eh-frame-hdr" "-L" "/usr/local/lib/rustlib/x86_64-unknown-freebsd/lib"
"/root/maturin/target/debug/deps/maturin-fe53e6c49e774afc.1agzv0ps7sudcbsb.rcgu.o"
"/root/maturin/target/debug/deps/maturin-fe53e6c49e774afc.1cu2a2eew775gbht.rcgu.o"
"/root/matur"
= note: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and
include the crash backtrace.
Stack dump:
0. Program arguments: /usr/bin/ld -pie --eh-frame-hdr
-dynamic-linker /libexec/ld-elf.so.1 --hash-style=both --enable-new-dtags -o
/root/maturin/target/debug/deps/maturin-fe53e6c49e774afc /usr/lib/Scrt1.o
/usr/lib/crti.o /usr/lib/crtbeginS.o
-L/usr/local/lib/rustlib/x86_64-unknown-freebsd/lib -L/root/ma
#0 0x0000000001d1f23e PrintStackTrace
/usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:564:13
#1 0x0000000001d1d5a5 RunSignalHandlers
/usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:69:18
#2 0x0000000001d1f930 SignalHandler
/usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:3
#3 0x0000000803561b90 handle_signal
/usr/src/lib/libthr/thread/thr_sig.c:0:3
cc: error: unable to execute command: Segmentation fault (core
dumped)
cc: error: linker command failed due to signal (use -v to see
invocation)
error: aborting due to previous error
error: could not compile `maturin`.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000000000151245d in enqueue ()
at /usr/src/contrib/llvm-project/lld/ELF/MarkLive.cpp:194
194 /usr/src/contrib/llvm-project/lld/ELF/MarkLive.cpp: No such file or
directory.
[Current thread is 1 (LWP 100106)]
(gdb) bt
#0 0x000000000151245d in enqueue ()
at /usr/src/contrib/llvm-project/lld/ELF/MarkLive.cpp:194
#1
resolveReloc<llvm::object::Elf_Rel_Impl<llvm::object::ELFType<llvm::support::little,
true>, true> const> ()
at /usr/src/contrib/llvm-project/lld/ELF/MarkLive.cpp:108
#2 0x0000000001511eb0 in mark ()
at /usr/src/contrib/llvm-project/lld/ELF/MarkLive.cpp:279
#3 0x000000000150d6fc in run ()
at /usr/src/contrib/llvm-project/lld/ELF/MarkLive.cpp:242
#4 markLive<llvm::object::ELFType<llvm::support::little, true> > ()
at /usr/src/contrib/llvm-project/lld/ELF/MarkLive.cpp:379
#5 0x000000000147dcf8 in link<llvm::object::ELFType<llvm::support::little,
true> > () at /usr/src/contrib/llvm-project/lld/ELF/Driver.cpp:2114
#6 0x00000000014715bc in main ()
at /usr/src/contrib/llvm-project/lld/ELF/Driver.cpp:545
#7 0x000000000146fa7d in link ()
at /usr/src/contrib/llvm-project/lld/ELF/Driver.cpp:114
#8 0x000000000161aa45 in main ()
at /usr/src/contrib/llvm-project/lld/tools/lld/lld.cpp:146
(gdb) quit
root at freebsd:~/maturin # uname -a
FreeBSD freebsd 13.0-CURRENT FreeBSD 13.0-CURRENT #0 b9403d7aae8-c254071(main):
Thu Oct 29 08:06:03 UTC 2020
root at releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
root at freebsd:~/maturin # ld --version
LLD 11.0.0 (FreeBSD llvmorg-11.0.0-0-g176249bd673-1300007) (compatible with GNU
linkers)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-toolchain
mailing list