From nobody Tue Jul 29 23:17:41 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 4bsB8Z0nWlz62mCM for ; Tue, 29 Jul 2025 23:17:50 +0000 (UTC) (envelope-from cyric@mm.st) Received: from fout-a2-smtp.messagingengine.com (fout-a2-smtp.messagingengine.com [103.168.172.145]) (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 4bsB8Y2YXwz4Kjw for ; Tue, 29 Jul 2025 23:17:49 +0000 (UTC) (envelope-from cyric@mm.st) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=mm.st header.s=fm3 header.b=VmYMnmV0; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=ST2O2PAw; spf=pass (mx1.freebsd.org: domain of cyric@mm.st designates 103.168.172.145 as permitted sender) smtp.mailfrom=cyric@mm.st; dmarc=pass (policy=none) header.from=mm.st Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfout.phl.internal (Postfix) with ESMTP id 78432EC348E for ; Tue, 29 Jul 2025 19:17:45 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Tue, 29 Jul 2025 19:17:45 -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=1753831065; x=1753917465; bh=scXDtvwu7yEi3kW4444EWxXUKMJ1umRKQ75JfT687l8=; b= VmYMnmV0FSDCQmhSKNBZ0Shr5mQ1TkDd1OxrG4qTYKA7KuVXuP/CPFyGul8R3XfO r0me98ajw0sQJuiXk7qFN3Xj3NSSkO2BimFqw5ASieV0vJ52auz7rHemnRbA+Hgj 5qguNGG0jn0Ec/8O1KwClSsKu90GTTTl+BGl+gvplPWeCyMfLxpbgiLePBRuxTwX Iur+21dLwMACyex50Gis1Wmgd7My2v06WDiuff2DuytqEJ2gp60LC1hwZLEYiAv1 Ia5WWGkIOWoF4ipYTaPQILc+nRekfc+BmSVui82uHEMukBOlHFUz0GeNe1F6Helw j8xPaYYxRujLkvGPsriaqA== 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=1753831065; x=1753917465; bh=s cXDtvwu7yEi3kW4444EWxXUKMJ1umRKQ75JfT687l8=; b=ST2O2PAwKEQwhx+Lc y7qMQgvh8wMt1U5R38TMGvfUGbhfQw+5GKd2j2m10unbLE5zJb5ZwmvMDU6u+bQ3 bpOkFm+JaWloTFpG0vbG+RypsOi73YNckskARPuMg5R0rZi7AODvQvM5+TvCFZ+F yXO07v2UtpP54TEHfg+lBbouje4aDZgZ6TRr+UXwSRh2BsTcxiyTtmnyieox4tww Yury75LfcSsLbWYrbBfYi3lOCSZqsOiCDqwO5sgNZgaOs5/PCVK5j0gQr99YVe1v 9+IUEN2t931GJi7ubv6lUf8FbdCtmfBGmEYYC/qedcK7KdBPEfOSgpyFGQvDxdfF qXPUA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdelieefhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttd dvjeenucfhrhhomheptgihrhhitgesmhhmrdhsthenucggtffrrghtthgvrhhnpeegffej ffduffefueelfeektdfgkeejteeltdelvddutefhueegfeeitefhudetudenucffohhmrg hinhepfhhrvggvsghsugdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpegthihrihgtsehmmhdrshhtpdhnsggprhgtphhtthhopedupd hmohguvgepshhmthhpohhuthdprhgtphhtthhopehfrhgvvggsshguqdgtuhhrrhgvnhht sehfrhgvvggsshgurdhorhhg X-ME-Proxy: Feedback-ID: icc3648d4:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 29 Jul 2025 19:17:44 -0400 (EDT) Message-ID: <394d94f3-670e-4452-96f4-db79e6f68eb0@mm.st> Date: Wed, 30 Jul 2025 06:17:41 +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: <8bfd193f-4279-4ad3-a25b-fffda11cc5b4@mm.st> Content-Language: en-US From: cyric@mm.st In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-2.98 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.88)[-0.883]; DMARC_POLICY_ALLOW(-0.50)[mm.st,none]; R_DKIM_ALLOW(-0.20)[mm.st:s=fm3,messagingengine.com:s=fm3]; R_SPF_ALLOW(-0.20)[+ip4:103.168.172.128/27]; RCVD_IN_DNSWL_LOW(-0.10)[103.168.172.145:from]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[mm.st]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[mm.st]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[mm.st:+,messagingengine.com:+]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:151847, ipnet:103.168.172.0/24, country:AU]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_NO_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[messagingengine.com:dkim] X-Rspamd-Queue-Id: 4bsB8Y2YXwz4Kjw X-Spamd-Bar: -- Kevin Bowling wrote: > On Sun, Jul 27, 2025 at 7:36 PM wrote: >> >> 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): > > Can you confirm if simply setting WITH_LLVM_ASSERTIONS fixes the > issue? No clean, no blowing away /usr/obj, etc. I just need a > confirmation from someone that a reversion would actually work or if > we are stuck in for something deeper. The problem here is that any cc call dumps core and I can't rebuild anything. I already wiped the obj directory and now trying to restore the compiler using llvm19 from packages as suggested in other replies.