From owner-freebsd-toolchain@freebsd.org Sun Nov 1 23:25:06 2020 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 828EA45E149 for ; Sun, 1 Nov 2020 23:25:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4CPXFt2zxXz3WNt for ; Sun, 1 Nov 2020 23:25:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 6693445E398; Sun, 1 Nov 2020 23:25:06 +0000 (UTC) Delivered-To: toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 665D445E1B0 for ; Sun, 1 Nov 2020 23:25:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CPXFt256Tz3WQt for ; Sun, 1 Nov 2020 23:25:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 123A21FFF4 for ; Sun, 1 Nov 2020 23:25:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 0A1NP58Y094718 for ; Sun, 1 Nov 2020 23:25:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0A1NP5ok094717 for toolchain@FreeBSD.org; Sun, 1 Nov 2020 23:25:05 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 250783] ld segmentation fault Date: Sun, 01 Nov 2020 23:25:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: nijave@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Nov 2020 23:25:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250783 --- Comment #5 from Nick Venenga --- 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, 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 > () at /usr/src/contrib/llvm-project/lld/ELF/MarkLive.cpp:379 #5 0x000000000147dcf8 in link > () 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.=