From nobody Sun Jul 27 11:58:36 2025 X-Original-To: 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 4bqg9p0MM4z62Lrk; Sun, 27 Jul 2025 11:58:38 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bqg9n6tPRz4MlD; Sun, 27 Jul 2025 11:58:37 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753617518; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SzUEtUugwM0DcNAYklc+zs6ghZ4HIkZfTWKcsSWxi6M=; b=X5d+ZiHA81Df0i47Dx9M3cLEOetZKE1MN3TqFDYMjWABQRq3eRDgTkqeTn1vpz6riuimEO 9EWhEhe/P0KfnmgajRymbb4QC4RZT0wXrDlQNZTJzt8GWT1Rd4UDFUP7HGYmpyiDa2x5IS nfOnowKSG3Ed/9OzvVzkIE0A/GfIaph4Y0nvXBIpCgXppwVSTiS9e+w1fEwzpWwoZH4HyZ OYr3YBeeorFg8br5zAcMYH7o8VlG0QXGF1B71yd3W4riCJixCfd2aWn9NZ29je16zbkRxL aMmzyI2DhzFXEZeVQAP2tlNaW+mYWcX7OPfgIPVCrM9sMwuE5qi2q6bA5jIteQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753617518; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SzUEtUugwM0DcNAYklc+zs6ghZ4HIkZfTWKcsSWxi6M=; b=leHs1zlUtTW7srqYQRdhmfNHtY9r4Xn1cn3NybH+d7ynVi9o3yzmGJ8xpQgYWRw5Ni+V8f Fe8tqBX1qxEuwQ31dIwugAcMZAxTnje9wxMS/o8InuIW/sTBlBL3iwBD2QMxvHa3hvlW3X trJtvnUXiiQgu1q+HEz/vH6EMX+tyhrYSc1MVg9Uj6rU/T60XvoCKE2VC9c4a1PeFT1i0/ 4LD4RVopciTQSLrZBzQjqKbejMBUkbH65DZ77LnfrNM2yl3ijT/X1cYpwf0pil+KGljpRd QbqCs0OhaSZDJGPrFajMBydt9Ufey0YX95PxOVpdGMV9R7QGd5cQZKJ7u1rECg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1753617518; a=rsa-sha256; cv=none; b=TLsynFJsmzBEjTzjlnO3VWCgi/BRwKcP+sqvZHkZdxyDQ7RywkSorx7RNuGoyVfaMoxcGn TFf3z/sRfiJMdnKx+YxvvuoTO2sLcpbY3NNRbm+hacJNYHStqdWw35Y7WlN3Vjy7qX2xRx jUeQ/I77kk80BWkPro2VMpF3DixO2ICuZr4m2CZgi7FNwLw5Zle1STLI2j/WOAHixa8YAL Tg6+gDmvugRNGRTAdlHf+jYkQmPbdd0AHXByBLJFO8mrvHKagPD/Togwj8ZRJCEGQQKQtE +HpBiM5rt1uKg5UizwdaFV4xLy8nDHqOx/l3JZKprI6K/juBwyJuXGi1/PYVHQ== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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 "tensor.andric.com", Issuer "R11" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4bqg9n5Vygz5mt; Sun, 27 Jul 2025 11:58:37 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (bladnoch-wifi.home.andric.com [192.168.0.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 7185E5AD44; Sun, 27 Jul 2025 13:58:36 +0200 (CEST) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3826.600.51.1.1\)) Subject: Re: LLVM broken on main (arm64)? From: Dimitry Andric In-Reply-To: Date: Sun, 27 Jul 2025 13:58:36 +0200 Cc: "Herbert J. Skuhra" , current@freebsd.org, arm@freebsd.org, Kevin Bowling Content-Transfer-Encoding: quoted-printable Message-Id: <7F8E9486-3FF5-436F-B584-8ACB7BCF1BAD@FreeBSD.org> References: To: Lexi Winter X-Mailer: Apple Mail (2.3826.600.51.1.1) On 27 Jul 2025, at 13:33, Lexi Winter wrote: >=20 > Dimitry Andric: >> On 27 Jul 2025, at 12:44, Herbert J. Skuhra = wrote: >>>=20 >>> after updating from main-n279078-1f2c178e5688 to >>> main-n279105-9b3055d0d4bc (arm64) I have the following issue: >>>=20 >>> $ 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_ostr= eam&, llvm::StringRef) + 412 >>> 3 libthr.so.3 0x00000edc06bafc38 _pthread_sigmask + 1320 >>> Segmentation fault >>=20 >> That's a very short trace, with no useful information. Maybe = installworld was half-finished? >=20 > i am seeing something similar on amd64 after updating past = 9b3055d0d4bc: >=20 > 1& 1? 172!freebsd15 ~/src/bsd/dev [lf/dev/pkgbase-toolchain]% cc >=20 > 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_ostr= eam&, 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 >=20 > i'm using pkgbase so unlikely to be a partial install. could it be = that > this change requires a clean build? I think it's likely that Kevin's https://reviews.freebsd.org/D50388 / = https://cgit.freebsd.org/src/commit/?id=3D9b3055d0d4bc is the cause: it = flips MK_LLVM_ASSERTIONS from "yes" to "no" by default. My guess is that = some objects, libraries or binaries do not get rebuilt, leading to = inconsistencies. There probably has to be another depend-cleanup.sh hack to get over = this. Another complication is that in depend-cleanup.sh you don't have = access to the MK_xxx options from src.opts.mk. -Dimitry