From nobody Fri Jul 7 15:43:33 2023 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 4QyHjx6BkVz4lkpb for ; Fri, 7 Jul 2023 15:43:33 +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 4QyHjx3sG9z45jb for ; Fri, 7 Jul 2023 15:43:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688744613; 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=pH9kYQr9Ay+DMNKrj7BVbPlG6Oy6LFA0PeD3aExzux0=; b=MFmy0licCXt63R89KW4Sx+8/8oBaLdZp4X2LQiiCE4bd34Wrt2/pFA0wOusL/s2IEMzF6e MCdVPXg4kH2fk2V7O5leZbIl6SGORFV+eC8zfLxP6fnTjZU4ta41B+DYtEuKIKlHTT9yzS raHcCiDi9UeEgxXwn+xqE3nJwYGEe1PqggYVm5a/Xzu8jjV7IrB2ynzI3L+zfrGTjoJKk9 kLgLxDIEZ6PFI2ic8uQU8yab6B81o1K55SqRLB2EPGQOauxk3IVRiy4G9dT/AWHzuLIc31 Q/TtNkl9koeYkkcHTyVgbDJUebg7iGhWDVK/XsNM3UueqGrgJfcso0ArplgXmA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688744613; a=rsa-sha256; cv=none; b=ymcKqN1gn29lkkBNgDpjpbv/NPdZDBgY6iwMy10ic/Al6eBqzgW2uglwR7e3UsPKCfFVcZ aQmqRvNhlT9upYQ3oRrziNnVnziiw19V4MKKPG9BzAE4JiSOeugFqHNO4DKS+vSJY7gkpl HFACZibp9eijoabLbHE29OZpo+ym+D79sxT9goEeiN4um5pgo87xdPBTqGorsIWmAx+ajG fJvp7//nFHBllOuqURWc8wcI+sbwHppOy9mUA1nmTzs+sPcK0w112iGqZuvioMbibtY+w4 sQMhoKPYxUlyRNU8ZUQkhxgr4hC+GHW4GgRHkuWv0THK4UF87OshIgjA9ExFRA== 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 4QyHjx2xHfzl45 for ; Fri, 7 Jul 2023 15:43:33 +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 367FhXlV014067 for ; Fri, 7 Jul 2023 15:43:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 367FhXqK014066 for bugs@FreeBSD.org; Fri, 7 Jul 2023 15:43:33 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 272415] clang 16.0.6 and 15.0.7 crash Date: Fri, 07 Jul 2023 15:43:33 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org 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 cc 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272415 Bug ID: 272415 Summary: clang 16.0.6 and 15.0.7 crash Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: markj@FreeBSD.org CC: dim@FreeBSD.org While porting libvmmapi to work on arm64, I am doing some questionable thin= gs with the preprocessor and managed to crash clang. I verified that the prob= lem occurs with 15.0.7 and 16.0.6; I don't have a development version of LLVM l= ying around to test with. Assertion failed: (Init->containsErrors() && "Dependent code should only oc= cur in error-recovery path."), function CheckForConstantInitializer, file /root/freebsd/contrib/llvm-project/clang/lib/Sema/SemaDecl.cpp, line 11845.= =20=20=20=20=20 PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include = the crash backtrace, preprocessed source, and associated run script.=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 Stack dump:=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 0. Program arguments: cc -O2 -pipe -fno-common -I/usr/home/markj/src/freebsd/lib/libvmmapi -g -gz=3Dzlib -MD -MF.depend.vmmapi_machdep.o -MTvmmapi_machdep.o -std=3Dgnu99 -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers -Werror -= Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmiss ing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Wnested-externs -Wold-style-definition -Wno-pointer-sign -Wdate-time -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-vari able -Wno-error=3Dunused-but-set-parameter -Qunused-arguments -c /usr/home/markj/src/freebsd/lib/libvmmapi/amd64/vmmapi_machdep.c -o vmmapi_machdep.o=20=20=20=20=20=20=20=20=20=20=20=20 1. /usr/home/markj/src/freebsd/lib/libvmmapi/amd64/vmmapi_machdep.c:84= :46: current parser token ';' #0 0x0000000005390c51 PrintStackTrace /root/freebsd/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:565:13= =20=20=20=20=20 #1 0x000000000538ef45 RunSignalHandlers /root/freebsd/contrib/llvm-project/llvm/lib/Support/Signals.cpp:104:18=20= =20=20=20=20=20=20=20=20=20 #2 0x000000000533762e HandleCrash /root/freebsd/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cp= p:76:5=20 #3 0x00000000053377f3 CrashRecoverySignalHandler /root/freebsd/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cp= p:0:51=20 #4 0x0000000806a81b5e handle_signal /root/freebsd/lib/libthr/thread/thr_sig.c:0:3 #5 0x0000000806a81119 thr_sighandler /root/freebsd/lib/libthr/thread/thr_sig.c:247:1 #6 0x00007ffffffff2d3 ([vdso]+0x2d3) #7 0x0000000806d3733a thr_kill /usr/obj/root/freebsd/amd64.amd64/lib/libc/thr_kill.S:4:0 #8 0x0000000806cafe14 raise /root/freebsd/lib/libc/gen/raise.c:0:10 #9 0x0000000806d60dc9 abort /root/freebsd/lib/libc/stdlib/abort.c:73:17 #10 0x0000000806c92f21 (/lib/libc.so.7+0x93f21) #11 0x0000000003a46261 (/usr/bin/cc+0x3a46261) #12 0x0000000003a47f0f AddInitializerToDecl /root/freebsd/contrib/llvm-project/clang/lib/Sema/SemaDecl.cpp:0:7 #13 0x00000000037b364c ParseDeclarationAfterDeclaratorAndAttributes /root/freebsd/contrib/llvm-project/clang/lib/Parse/ParseDecl.cpp:0:17 #14 0x00000000037b0b17 ParseDeclGroup /root/freebsd/contrib/llvm-project/clang/lib/Parse/ParseDecl.cpp:2181:21 #15 0x000000000375cdc0 ParseDeclOrFunctionDefInternal /root/freebsd/contrib/llvm-project/clang/lib/Parse/Parser.cpp:0:10 #16 0x000000000375c76f ParseDeclarationOrFunctionDefinition /root/freebsd/contrib/llvm-project/clang/lib/Parse/Parser.cpp:1193:12 #17 0x000000000375b44d ParseExternalDeclaration /root/freebsd/contrib/llvm-project/clang/lib/Parse/Parser.cpp:0:12 #18 0x00000000037590dc ParseTopLevelDecl /root/freebsd/contrib/llvm-project/clang/lib/Parse/Parser.cpp:737:10 #19 0x000000000375338e ParseAST /root/freebsd/contrib/llvm-project/clang/lib/Parse/ParseAST.cpp:161:5 #20 0x000000000311f06f Execute /root/freebsd/contrib/llvm-project/clang/lib/Frontend/FrontendAction.cpp:10= 41:10 #21 0x00000000030ae81f getPtr /root/freebsd/contrib/llvm-project/llvm/include/llvm/Support/Error.h:271:42 #22 0x00000000030ae81f operator bool /root/freebsd/contrib/llvm-project/llvm/include/llvm/Support/Error.h:234:16 #23 0x00000000030ae81f ExecuteAction /root/freebsd/contrib/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:= 1035:23 #24 0x00000000031dedf4 ExecuteCompilerInvocation /root/freebsd/contrib/llvm-project/clang/lib/FrontendTool/ExecuteCompilerIn= vocation.cpp:266:25 #25 0x000000000264203b cc1_main /root/freebsd/contrib/llvm-project/clang/tools/driver/cc1_main.cpp:250:15 #26 0x000000000264fb24 ExecuteCC1Tool /root/freebsd/contrib/llvm-project/clang/tools/driver/driver.cpp:317:12 #27 0x0000000002f58337 operator() /root/freebsd/contrib/llvm-project/clang/lib/Driver/Job.cpp:407:30 #28 0x0000000002f58337 callback_fn<(lambda at /root/freebsd/contrib/llvm-project/clang/lib/Driver/Job.cpp:407:22)> /root/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtra= s.h:45:12 #29 0x0000000005337565 operator() /root/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtra= s.h:0:12 #30 0x0000000005337565 RunSafely /root/freebsd/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cp= p:425:3 #31 0x0000000002f57f40 Execute /root/freebsd/contrib/llvm-project/clang/lib/Driver/Job.cpp:407:7 #32 0x0000000002f20ebb ExecuteCommand /root/freebsd/contrib/llvm-project/clang/lib/Driver/Compilation.cpp:200:15 #33 0x0000000002f21188 ExecuteJobs /root/freebsd/contrib/llvm-project/clang/lib/Driver/Compilation.cpp:254:13 #34 0x0000000002f38b2f empty /root/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/SmallVector.h:73:47 #35 0x0000000002f38b2f ExecuteCompilation /root/freebsd/contrib/llvm-project/clang/lib/Driver/Driver.cpp:1738:23 #36 0x000000000264f551 main /root/freebsd/contrib/llvm-project/clang/tools/driver/driver.cpp:513:21 cc: error: clang frontend command failed with exit code 134 (use -v to see invocation) FreeBSD clang version 15.0.7 (https://github.com/llvm/llvm-project.git llvmorg-15.0.7-0-g8dfdcc7b7bf6) Target: x86_64-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin cc: note: diagnostic msg:=20 ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: cc: note: diagnostic msg: /tmp/vmmapi_machdep-f24eec.c cc: note: diagnostic msg: /tmp/vmmapi_machdep-f24eec.sh --=20 You are receiving this mail because: You are the assignee for the bug.=