From nobody Sun Feb 19 00:33:36 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PK63l4V4pz3s7yJ for ; Sun, 19 Feb 2023 00:33:39 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (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 (2048 bits) client-digest SHA256) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PK63k3hDLz3yvZ for ; Sun, 19 Feb 2023 00:33:38 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of sgk@troutmask.apl.washington.edu has no SPF policy when checking 128.95.76.21) smtp.mailfrom=sgk@troutmask.apl.washington.edu; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=washington.edu (policy=none) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.17.1/8.17.1) with ESMTPS id 31J0XaDS089911 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Sat, 18 Feb 2023 16:33:36 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.17.1/8.17.1/Submit) id 31J0XaPY089910 for freebsd-current@freebsd.org; Sat, 18 Feb 2023 16:33:36 -0800 (PST) (envelope-from sgk) Date: Sat, 18 Feb 2023 16:33:36 -0800 From: Steve Kargl To: freebsd-current@freebsd.org Subject: core dump in ld during buildworld Message-ID: Reply-To: sgk@troutmask.apl.washington.edu List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-2.90 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_LONG(-0.90)[-0.897]; DMARC_POLICY_SOFTFAIL(0.10)[washington.edu : No valid SPF, No valid DKIM,none]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; R_SPF_NA(0.00)[no SPF record]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; ASN(0.00)[asn:73, ipnet:128.95.0.0/16, country:US]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; HAS_REPLYTO(0.00)[sgk@troutmask.apl.washington.edu] X-Rspamd-Queue-Id: 4PK63k3hDLz3yvZ X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N During biuldworld,=20 =3D=3D> usr.bin/nm (obj,all,install) cc -O2 -pipe -g -fno-common -I/usr/src/contrib/elftoolchain/libelftc -I/usr= /src/contrib/elftoolchain/common -std=3Dgnu99 -Wno-format-zero-length -Wsys= tem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototy= pes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-= strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts= -Wnested-externs -Wold-style-definition -Wno-pointer-sign -Wdate-time -Wmi= ssing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plu= s-int -Wno-unused-const-variable -Wno-error=3Dunused-but-set-variable -Qunu= sed-arguments -I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include -Wl,-z= relro -static -L/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/lib -o nm nm.= o -L/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/libdwarf -ldwarf -L/usr= /obj/usr/src/amd64.amd64/tmp/obj-tools/lib/libelf -lelf -L/usr/obj/usr/src/= amd64.amd64/tmp/obj-tools/lib/libz -lz -L/usr/obj/usr/src/amd64.amd64/tmp/o= bj-tools/lib/libelftc -lelftc_pie -L/usr/obj/usr/src/amd64.amd64/tmp/obj-to= ols/lib/libelf -lelf -legacy PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include = the crash backtrace. Stack dump: 0. Program arguments: /usr/bin/ld --eh-frame-hdr -Bstatic -o nm /usr/l= ib/crt1.o /usr/lib/crti.o /usr/lib/crtbeginT.o -L/usr/obj/usr/src/amd64.amd= 64/tmp/legacy/usr/lib -L/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/libd= warf -L/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/libelf -L/usr/obj/usr= /src/amd64.amd64/tmp/obj-tools/lib/libz -L/usr/obj/usr/src/amd64.amd64/tmp/= obj-tools/lib/libelftc -L/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/lib= elf -L/usr/lib -zrelro nm.o -ldwarf -lelf -lz -lelftc_pie -lelf -legacy -lg= cc -lgcc_eh -lc -lgcc -lgcc_eh /usr/lib/crtend.o /usr/lib/crtn.o #0 0x000000000164f1c1 (/usr/bin/ld+0x164f1c1) #1 0x000000000164d4a5 (/usr/bin/ld+0x164d4a5) #2 0x000000000164f8e0 (/usr/bin/ld+0x164f8e0) #3 0x0000000825243a60 (/lib/libthr.so.3+0x19a60) #4 0x000000082524301f (/lib/libthr.so.3+0x1901f) #5 0x00000008231e48a3 ([vdso]+0x2d3) #6 0x0000000000cf4830 (/usr/bin/ld+0xcf4830) #7 0x0000000000cf7b89 (/usr/bin/ld+0xcf7b89) #8 0x0000000000cf55a3 (/usr/bin/ld+0xcf55a3) #9 0x0000000000cf5217 (/usr/bin/ld+0xcf5217) #10 0x0000000000dabe23 (/usr/bin/ld+0xdabe23) #11 0x0000000000da7754 (/usr/bin/ld+0xda7754) #12 0x0000000000cf4ec5 (/usr/bin/ld+0xcf4ec5) #13 0x0000000000cc6e83 (/usr/bin/ld+0xcc6e83) #14 0x0000000000cbe4bc (/usr/bin/ld+0xcbe4bc) #15 0x0000000000cbccda (/usr/bin/ld+0xcbccda) cc: error: unable to execute command: Segmentation fault (core dumped) cc: error: linker command failed due to signal (use -v to see invocation) *** Error code 254 Stop. make[3]: stopped in /usr/src/usr.bin/nm *** Error code 1 % find /usr/obj/ -name \*.core /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/usr.bin/nm/ld.lld.core % uname -a FreeBSD hotrats 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-n260094-906c312bb= f74: Fri Feb 3 21:28:39 PST 2023 kargl@hotrats:/usr/obj/usr/src/amd64.= amd64/sys/HOTRATS amd64 Is the wrong ld being called? The failing command shows /usr/bin/ld. Should this be /usr/obj/usr/src/amd64.amd64/tmp/usr/bin/ld? --=20 Steve