From nobody Mon Mar 4 14:03:06 2024 X-Original-To: bugs@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 4TpL4p4yHZz5CgMp for ; Mon, 4 Mar 2024 14:03:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TpL4p2nN2z5797 for ; Mon, 4 Mar 2024 14:03:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709560986; a=rsa-sha256; cv=none; b=FsaXEwOuYVW1ZaZf4yZpTZL+jdG2iF9tiVB/RKbVFn8yDm+8DpqFI0zBIh/xvxNyWLrA3I WXKSBiRYke3ak1f+YuSqwBf829xEerrBCU/79410MCKomKRqA6+m7z+oC6ArLWA373ZdMf hBK3zTohBcUZ89eTYy5p5XoWdynulMu8Cx+aeWmSjCvjm1RoBpj8ESD4nO9hNE2C2OZcaM mP/CMeKq9LNbjQox0Vfr0dKFBBIN7fDkVSkfSCEpDbGDhW6HTqGMIikgT6tH4QLQho8w+/ hmtly0WJGFYXocGBLl/9/ZnTapVm53enc67ucPEnVMKHt2xAt4grwwWvlU16Qw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709560986; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=V4idytbm9gLRB15SnS+EekIigt4nv7vwOSLOVpWpxHY=; b=yx4EaqK0s0W0RBZYFWQ54l2z1HT8hMtbXjy3JDftjVcYZxEGijtbPHsq85FYTK7yetnHkF wZ7nPN98gBI9Z/sDIhp0jXrSoXZsGd7m7nl3fSFOrq0+aU0dpJ+uXe9MiqMyTK99yRG80V s42raF6+GsVgNLw0rqEzOqSqM4XPd8a5vv6lIDa5rfR0Sw5lrXTA7BzS90sGy0Con0w27s LVMAHXXwYvuySLP/RPvU72Iot1JR+sStX3kQjbzNNM2AuloqwCDcoO3pIzkqewnnmVeb3p E5IM41e8u++tkH9j0J7FpQyo4sQPgg8DkXZ6iN1NT0Ieoj3pg4+WeYDNCLmV5g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TpL4p2PflzPn2 for ; Mon, 4 Mar 2024 14:03:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 424E360t090498 for ; Mon, 4 Mar 2024 14:03:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 424E360v090493 for bugs@FreeBSD.org; Mon, 4 Mar 2024 14:03:06 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 277474] clang crashes with -fzero-call-used-regs when optimization is enabled Date: Mon, 04 Mar 2024 14:03:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dan-freebsd@berrange.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277474 Bug ID: 277474 Summary: clang crashes with -fzero-call-used-regs when optimization is enabled Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: dan-freebsd@berrange.com Updating QEMU's upstream CI to use the latest FreBSD 13.3 gcloud images, we= 're seeing a SEGV in clang 17: 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module '../qobject/qobject.= c'. 4. Running pass 'Prologue/Epilogue Insertion & Frame Finalization' on function '@qobject_destroy' #0 0x0000000005372051 PrintStackTrace /usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:602:13 #1 0x00000000053703f5 RunSignalHandlers /usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:105:18 #2 0x0000000005338ce5 HandleCrash /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:73:5 #3 0x0000000005338ce5 CrashRecoverySignalHandler /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:390= :51 #4 0x000000082bd674af handle_signal /usr/src/lib/libthr/thread/thr_sig.c:0= :3 #5 0x000000082bd66a6b thr_sighandler /usr/src/lib/libthr/thread/thr_sig.c:245:1 #6 0x00007ffffffff923 ([vdso]+0x2d3) #7 0x0000000004d94d71 reset /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/BitVector.h:398:30 #8 0x0000000004d94d71 insertZeroCallUsedRegs /usr/src/contrib/llvm-project/llvm/lib/CodeGen/PrologEpilogInserter.cpp:129= 1:22 #9 0x0000000004d94d71 insertPrologEpilogCode /usr/src/contrib/llvm-project/llvm/lib/CodeGen/PrologEpilogInserter.cpp:116= 9:3 #10 0x0000000004d94d71 runOnMachineFunction /usr/src/contrib/llvm-project/llvm/lib/CodeGen/PrologEpilogInserter.cpp:263= :5 #11 0x0000000004b630b5 runOnFunction /usr/src/contrib/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:91:13 #12 0x0000000004fc19eb runOnFunction /usr/src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1435:27 #13 0x0000000004fc7804 runOnModule /usr/src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1481:13 #14 0x0000000004fc2092 runOnModule /usr/src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27 #15 0x0000000004fc2092 run /usr/src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:535:44 #16 0x0000000002f5b83e ~TimeTraceScope /usr/src/contrib/llvm-project/llvm/include/llvm/Support/TimeProfiler.h:155:9 #17 0x0000000002f5b83e RunCodegenPipeline /usr/src/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1116:3 #18 0x0000000002f5b83e EmitAssembly /usr/src/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1137:3 Although the stack trace is different, based on "insertZeroCallUsedRegs" function in frame #8 which, I'm fairly confident it'll end up being this upstream bug in clang 17: https://github.com/llvm/llvm-project/issues/75168 which should be fixable with =20 https://github.com/llvm/llvm-project/commit/f800c1f3b207e7bcdc8b4c7192928d9= a078242a0 --=20 You are receiving this mail because: You are the assignee for the bug.=