From nobody Mon Jul 28 02:34:49 2025 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 4br2d01tlMz63QXN for ; Mon, 28 Jul 2025 02:35:00 +0000 (UTC) (envelope-from cyric@mm.st) Received: from fout-b1-smtp.messagingengine.com (fout-b1-smtp.messagingengine.com [202.12.124.144]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4br2cz3Qb2z3lTP for ; Mon, 28 Jul 2025 02:34:59 +0000 (UTC) (envelope-from cyric@mm.st) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=mm.st header.s=fm3 header.b=ofivm0oE; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=FWA3Fipm; spf=pass (mx1.freebsd.org: domain of cyric@mm.st designates 202.12.124.144 as permitted sender) smtp.mailfrom=cyric@mm.st; dmarc=pass (policy=none) header.from=mm.st Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfout.stl.internal (Postfix) with ESMTP id 1697C1D0006E for ; Sun, 27 Jul 2025 22:34:58 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Sun, 27 Jul 2025 22:34:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mm.st; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1753670097; x=1753756497; bh=v2eZBu9kL+YBRTSlEzVmiWF5ZXtiujWsg/MPvDuIdsk=; b= ofivm0oEG8myqCo2hOTlWDtEfi1krfxDSrfAZCIfOzj7GAabovMxVtTl5QoZ/4IZ +zVAPtq6UUPZsjJU8P++WW0FOZ2kkFIbBlMZhvuubRLxIW1qUq7r5aG1RSVRG3q5 aqWbEo0XGK/X59K2ABfaVyLELOYlUP48YScJNd+9wpWKHP415RySkqftfXAFTyC9 c08hZMHn2EJGXvOTXCJFvzZVQ4O2IjsKECHMXPzgcaOkgyrK23NekZ8+hPwuqmBG fcCmjSYH+w/k7lNpjIn3laC0cU9W27c8YoPwOI0xD3xcyot1uFN4Obc9J+QTbVsv vhQ7yYPBvh2FOxmHrg3BdA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1753670097; x=1753756497; bh=v 2eZBu9kL+YBRTSlEzVmiWF5ZXtiujWsg/MPvDuIdsk=; b=FWA3FipmFL+X6Uf2V l3Vbb81TrGeCiM37IOyQuStlANKdsKx6lxC4f4nP7vcOJfqttP7olHaZXYjRZEir SPJdLxV6yuGvWgIhds2z/jA3LaCxjv+SgVNjq4WB+9pp8FBzxdwxPLZ9MP8e9mUw xOO1gRvUsUr9RtsNrrrks6HNIJonQWwm+fJxLy3jXT6U4HgcBs1ZgVMwmE6LutFh 31K2SvLAppMvBsvxP2tJQ2Q4I+cgCRlIQnoA6xeso+zHym6s2NtPmjzOZsiCinfJ TdD9e5e5A2ZJCu6GnKZoFIRqVO+0k0VLvTsGvStFqq8CRb9Iszd1r4Tvr4DCgEyQ Rw/Hw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdeltdellecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthejredttd dvjeenucfhrhhomheptgihrhhitgesmhhmrdhsthenucggtffrrghtthgvrhhnpeejteei uefhkeehhfdvvdehtdeuieevteeggfekveffteegfeegjeejgeeijeffvdenucffohhmrg hinhepfhhrvggvsghsugdrohhrghdpghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheptgihrhhitgesmhhmrdhsthdpnh gspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepfhhrvggv sghsugdqtghurhhrvghnthesfhhrvggvsghsugdrohhrgh X-ME-Proxy: Feedback-ID: icc3648d4:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 27 Jul 2025 22:34:56 -0400 (EDT) Message-ID: <8bfd193f-4279-4ad3-a25b-fffda11cc5b4@mm.st> Date: Mon, 28 Jul 2025 09:34:49 +0700 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 User-Agent: Mozilla Thunderbird Subject: Re: LLVM broken on main (arm64)? To: freebsd-current@freebsd.org References: Content-Language: en-US From: cyric@mm.st In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [0.25 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_SPAM_LONG(1.00)[0.999]; DMARC_POLICY_ALLOW(-0.50)[mm.st,none]; NEURAL_SPAM_MEDIUM(0.35)[0.354]; R_SPF_ALLOW(-0.20)[+ip4:202.12.124.128/27]; R_DKIM_ALLOW(-0.20)[mm.st:s=fm3,messagingengine.com:s=fm3]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[202.12.124.144:from]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[mm.st]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[mm.st]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[mm.st:+,messagingengine.com:+]; FROM_NO_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_DN_NONE(0.00)[]; DWL_DNSWL_NONE(0.00)[messagingengine.com:dkim]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:151847, ipnet:202.12.124.0/24, country:AU]; FROM_EQ_ENVFROM(0.00)[] X-Rspamd-Queue-Id: 4br2cz3Qb2z3lTP X-Spamd-Bar: / Lexi Winter wrote: > Dimitry Andric: >> On 27 Jul 2025, at 12:44, Herbert J. Skuhra wrote: >>> >>> after updating from main-n279078-1f2c178e5688 to >>> main-n279105-9b3055d0d4bc (arm64) I have the following issue: >>> >>> $ cc >>> PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script. >>> Stack dump: >>> 0. Program arguments: cc >>> 1. Compilation construction >>> Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it): >>> 0 libprivatellvm.so.19 0x00000edc041485ec llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 72 >>> 1 libprivatellvm.so.19 0x00000edc041464ec llvm::sys::RunSignalHandlers() + 128 >>> 2 libprivatellvm.so.19 0x00000edc04148d48 llvm::support::detail::provider_format_adapter::format(llvm::raw_ostream&, llvm::StringRef) + 412 >>> 3 libthr.so.3 0x00000edc06bafc38 _pthread_sigmask + 1320 >>> Segmentation fault >> >> That's a very short trace, with no useful information. Maybe installworld was half-finished? > > i am seeing something similar on amd64 after updating past 9b3055d0d4bc: > > 1& 1? 172!freebsd15 ~/src/bsd/dev [lf/dev/pkgbase-toolchain]% cc > > PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script. > Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it): > 0 libprivatellvm.so.19 0x00001ca34ed8f2c9 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 57 > 1 libprivatellvm.so.19 0x00001ca34ed8d185 llvm::sys::RunSignalHandlers() + 85 > 2 libprivatellvm.so.19 0x00001ca34ed8f9d7 llvm::support::detail::provider_format_adapter::format(llvm::raw_ostream&, llvm::StringRef) + 375 > 3 libthr.so.3 0x00001ca352fc88ec _pthread_sigmask + 1340 > 4 libthr.so.3 0x00001ca352fc7ebb pthread_signals_unblock_np + 1467 > 5 libthr.so.3 0x00001ca34449d2d3 pthread_signals_unblock_np + 18446744073462962643 > 6 libprivatellvm.so.19 0x00001ca34d5b28be llvm::cl::opt>::~opt() + 62 > 7 libc.so.7 0x00001ca35434131f __cxa_finalize + 351 > [2] 5802 bus error (core dumped) cc > > i'm using pkgbase so unlikely to be a partial install. could it be that > this change requires a clean build? And it looks like this for me, amd64, WITHOUT_CLEAN build (default): $ cc --version FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2) Target: x86_64-unknown-freebsd15.0 Thread model: posix InstalledDir: /usr/bin Build config: +assertions zsh: abort (core dumped) cc --version (gdb) bt #0 kill () at kill.S:4 #1 0x0000062f57af2540 in __fail (msg=0x62f579f5aa5 "stack overflow detected; terminated") at /usr/src/lib/libc/secure/libc_stack_protector.c:119 #2 0x0000062f57af24b0 in __stack_chk_fail () at /usr/src/lib/libc/secure/libc_stack_protector.c:126 #3 0x0000062f49fcebb6 in BuildCompilation () at /data/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/string:2330 #4 0x000006272564d3e4 in clang_main () at /usr/src/contrib/llvm-project/clang/tools/driver/driver.cpp:361 #5 0x000006272564bc22 in main () at /usr/src/usr.bin/clang/clang/clang-driver.cpp:17