Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Nov 2020 23:25:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 250783] ld segmentation fault
Message-ID:  <bug-250783-29464-YaLLpcUjVQ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-250783-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-250783-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250783

--- Comment #5 from Nick Venenga <nijave@gmail.com> ---
I tried the FreeBSD 13.0 VM

# cargo rustc --bin maturin --manifest-path Cargo.toml \-- -C link-arg=3D-s
   Compiling maturin v0.8.3 (/root/maturin)=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
error: linking with `cc` failed: exit code: 254
  |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20
  =3D note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64"
"-Wl,--eh-frame-hdr" "-L" "/usr/local/lib/rustlib/x86_64-unknown-freebsd/li=
b"
"/root/maturin/target/debug/deps/maturin-fe53e6c49e774afc.1agzv0ps7sudcbsb.=
rcgu.o"
"/root/maturin/target/debug/deps/maturin-fe53e6c49e774afc.1cu2a2eew775gbht.=
rcgu.o"
"/root/matur"
  =3D note: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ =
and
include the crash backtrace.
          Stack dump:=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
          0.    Program arguments: /usr/bin/ld -pie --eh-frame-hdr
-dynamic-linker /libexec/ld-elf.so.1 --hash-style=3Dboth --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=20
          #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=20
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@freebsd:~/maturin # uname -a
FreeBSD freebsd 13.0-CURRENT FreeBSD 13.0-CURRENT #0 b9403d7aae8-c254071(ma=
in):
Thu Oct 29 08:06:03 UTC 2020=20=20=20=20
root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
root@freebsd:~/maturin # ld --version
LLD 11.0.0 (FreeBSD llvmorg-11.0.0-0-g176249bd673-1300007) (compatible with=
 GNU
linkers)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-250783-29464-YaLLpcUjVQ>