From nobody Mon Jul 28 07:38:03 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 4br9M11KSTz620Z6 for ; Mon, 28 Jul 2025 07:38:21 +0000 (UTC) (envelope-from kevin.bowling@kev009.com) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4br9M04hsSz3Cyx for ; Mon, 28 Jul 2025 07:38:20 +0000 (UTC) (envelope-from kevin.bowling@kev009.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qt1-x82f.google.com with SMTP id d75a77b69052e-4ab63f8fb91so29359841cf.0 for ; Mon, 28 Jul 2025 00:38:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kev009.com; s=google; t=1753688295; x=1754293095; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=G9Q4A9I6mrO7YvdpZs9KHn7FdEvgtAVGy7z1BOE1muw=; b=U6SBY3eBKOOf9g62pE47GlmDWZ/c9hEeTqGZWPB08xf9pZfLHJKz19a2bVAO5sferi mIt0HIgkpilj0fjiMQKBRqc+Zmc3TRpVeRn/AR1e/nT6PZgYPx5+efqgCm8H0TOt139c VgikSoNdH8W59FwgkidtFGcqFD54YVSNZvcMk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753688295; x=1754293095; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=G9Q4A9I6mrO7YvdpZs9KHn7FdEvgtAVGy7z1BOE1muw=; b=eg8B/y3vnVzslonHkwfh+Y4Or2Gr1nEBa/EcPEEOi8J7tT8WDV63jnDCfC9srfP5F4 L4G+1S17EiompyJTh4XsHxwvzVcYgXh/aApN4XLWjYVyHMgDNgk7nv6FYbSMO5KC/gNZ zbZAbodM7ENwaIYVZUhN1TiJ1Dowkum5+4Scohd8h480syDpPi1gEaBp799+AW4YdVqA Z4k6WwzBAnplIUjYgLJSEEiRb2d28oPqvMQyusCh6o84Xlf2nEWJsukJwYpt4eeXF4OD jjDvlpBhb308xtCDIKjzPBznrvdhMzl+sNYcT0vl8muyVvofMxfysxTXrwDnPrLMdaXX jvOg== X-Gm-Message-State: AOJu0Ywe16amtB5XFJdVQgUWo/2AOuDbkaY9vshEp/3r9GIW8RttNvu1 CSMdwp3nsz7VP8iyrf1jTTgYAx7BqNO2N0jxdQ7OTXD1r+eLYt452fz+epDlte1UKjcIn4C4saJ MLgXLgCV/d6lWbkS7qGL2bPsibi65fuzIYJDCVVcynGSW1P55IUVZ6LZj X-Gm-Gg: ASbGncubtIR1TuDEYPQUeqteZQ0WTaV6pMfnWqNVcRoBO2s2SSPAvB1OyRxcxkl5Fhw ZfKNUSM7q0EIw5h7fAyqOq0KcuJi+kuUj2dyrq/PetGjoUCjYwVJdBPUHTRYS0vq2wj8DHH2oP9 u5A153aaR2tRA12hr9YiuMbxwUkA91ni/MoPgxgEYsSVp7YoXqOejE+PhHMlsJTTzxQprYpcv1V oTF26Ab X-Google-Smtp-Source: AGHT+IFta+ykpER+/6SA57fIn8a4WB8q2y4UJnIk4/WtywV8Vr+8ccgI+WiDhlg9dUT64BtlJrQEUuPwWfn8zHMenFo= X-Received: by 2002:a05:622a:a28c:b0:4a9:ae5a:e8a6 with SMTP id d75a77b69052e-4ae98cd9171mr105836711cf.47.1753688294985; Mon, 28 Jul 2025 00:38:14 -0700 (PDT) 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 References: <8bfd193f-4279-4ad3-a25b-fffda11cc5b4@mm.st> In-Reply-To: <8bfd193f-4279-4ad3-a25b-fffda11cc5b4@mm.st> From: Kevin Bowling Date: Mon, 28 Jul 2025 00:38:03 -0700 X-Gm-Features: Ac12FXwJhmacYREwzQdqo7fkvGiMfhC89NoK1XiLkLnA50Fo56tBpEASKMzGkkM Message-ID: Subject: Re: LLVM broken on main (arm64)? To: cyric@mm.st Cc: freebsd-current@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4br9M04hsSz3Cyx X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] On Sun, Jul 27, 2025 at 7:36=E2=80=AFPM 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 in= clude 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 y= our 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::RunSignalHandle= rs() + 128 > >>> 2 libprivatellvm.so.19 0x00000edc04148d48 llvm::support::detail::pro= vider_format_adapter::format(llvm::raw_ostream&, llvm::StringRef) + 41= 2 > >>> 3 libthr.so.3 0x00000edc06bafc38 _pthread_sigmask + 1320 > >>> Segmentation fault > >> > >> That's a very short trace, with no useful information. Maybe installwo= rld 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 incl= ude the crash backtrace, preprocessed source, and associated run script. > > Stack dump without symbol names (ensure you have llvm-symbolizer in you= r PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it): > > 0 libprivatellvm.so.19 0x00001ca34ed8f2c9 llvm::sys::PrintStackTrace(l= lvm::raw_ostream&, int) + 57 > > 1 libprivatellvm.so.19 0x00001ca34ed8d185 llvm::sys::RunSignalHandlers= () + 85 > > 2 libprivatellvm.so.19 0x00001ca34ed8f9d7 llvm::support::detail::provi= der_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 tha= t > > 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. > $ 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=3D0x62f579f5aa5 "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 >