From nobody Mon May 23 02:17:44 2022 X-Original-To: toolchain@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 444BC1AE8080 for ; Mon, 23 May 2022 02:17:45 +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 4L61FN6qGvz3MrP for ; Mon, 23 May 2022 02:17:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 C72652708F for ; Mon, 23 May 2022 02:17:44 +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 24N2HiDw098262 for ; Mon, 23 May 2022 02:17:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24N2HiZE098261 for toolchain@FreeBSD.org; Mon, 23 May 2022 02:17:44 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: toolchain@FreeBSD.org Subject: [Bug 264157] clang-13 crashes while compiling tests from devel/vc Date: Mon, 23 May 2022 02:17:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653272265; 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: in-reply-to:in-reply-to:references:references; bh=9PNf6iO5+GyZV6EC5VGXvbs6N3ufn1FAm5DMmiklanc=; b=iRjj/Ak7mmKTku+IgtU1QtVfFDmMtkAgFqqgUd4njzZ6nlepPhMvuqPGcGbhlNohSdKaK6 qQ8d4elxkeiOdbTQW6hhsUE7YZd46Y/ijTejV0FII3sBBfbZ24eToBsMfKBLjMK4sefpqc U8EZ8ZUR6sVLidxIjB4pxoYDaSF+oELLn7QOmiUR/2llZiqcKfWombskpxH3XSLVFDAtQ9 es//5QFgfHuAAEJXJKg8Hjr8NQ/DVSB3DVUaPD6TSwp0wG/j02u5HXVPrVAGu4dmBmLdxk LFjrNgOzjE0Ktpabu7HUyDnXpIGMxNvUzFbp+7Vsh8MGOk73/o3wvOyvdG/CQQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653272265; a=rsa-sha256; cv=none; b=NKFLnftNAVwHyblQPgG6pGEohufommhhQzhiI0Ng4i6lzkWbuueX4nIZNSCNNSW0HILPlV C8eSW3i6XTTOrgwau6sWamUiH+4VMpWhxfT7ys2DBGWSfpfohmWGqXIeQuY+u+6WNOwKXt gHeOkulHR/Uw3ldEcV3m1nJ5Tg8V0x98JzwUd5ig67b4+dByc3zI2AwMxnpmOBwChAa5Ia KDTEuTMgVgSie00SADcCASqjxNxOuRr1xGU0ZCSiOQ/2gXOvYQKRmxBpPed4bolI50mJj9 GToEKEgYsKaATu5KiBHsB8H3HIg2PA4ituB5srsuSaA+yRQYWbT1Erpf8ZUQDw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264157 Mark Millard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marklmi26-fbsd@yahoo.com --- Comment #1 from Mark Millard --- (In reply to Yuri Victorovich from comment #0) This gives a little bit of local information about the specific error from my trying the reproducer. My information has backtraces as I build even non-debug style without stripping symbols. Relative to potential llvm14 status, it reports: error: unknown argument: '-munwind-tables' On 13.1, using its llvm13 context, I see things like: # . ./scalaraccess-7a4b7b.sh /disk-samsung/freebsd-ports/devel/vc/work/Vc-1.4.3/tests/scalaraccess.cpp:3= 3:1: error: SSE2 register return with SSE2 disabled TEST_TYPES(V, reads, concat) ^ . . . There are a bunch. It eventually gets: template inline void readsConstantIndexTest(V a,= V b) ^ /disk-samsung/freebsd-ports/devel/vc/work/Vc-1.4.3/tests/scalaraccess.cpp:7= 0:49: error: SSE2 register return with SSE2 disabled /disk-samsung/freebsd-ports/devel/vc/work/Vc-1.4.3/tests/scalaraccess.cpp:7= 0:49: error: SSE2 register return with SSE2 disabled /disk-samsung/freebsd-ports/devel/vc/work/Vc-1.4.3/tests/scalaraccess.cpp:7= 0:49: error: SSE2 register return with SSE2 disabled /disk-samsung/freebsd-ports/devel/vc/work/Vc-1.4.3/tests/scalaraccess.cpp:7= 0:49: error: SSE2 register return with SSE2 disabled /disk-samsung/freebsd-ports/devel/vc/work/Vc-1.4.3/tests/scalaraccess.cpp:7= 0:49: error: SSE2 register return with SSE2 disabled 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: /usr/bin/c++ -cc1 -triple x86_64-unknown-freebsd= 13.1 -emit-obj --mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names -main-file-name scalaraccess.cpp -mrelocation-model st= atic -mframe-pointer=3Dall -relaxed-aliasing -ffp-contract=3Dfast -fno-rounding-= math -mfpmath sse -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-feature -sse2 -target-feature -sse3 -target-feature -ssse3 -target-feature -sse4.1 -target-feature -sse4.2 -target-feature -sse4a -target-feature -avx -target-feature -fma -target-feature -bmi2 -target-fea= ture -avx2 -target-feature -xop -target-feature -fma4 -target-feature -avx512f -target-feature -avx512vl -target-feature -avx512pf -target-feature -avx512= er -target-feature -avx512cd -target-feature -avx512dq -target-feature -avx512= bw -target-feature -avx512ifma -target-feature -avx512vbmi -tune-cpu generic -debugger-tuning=3Dgdb -fcoverage-compilation-dir=3D/disk-samsung/freebsd-ports/devel/vc/work/.bui= ld -sys-header-deps -D COMPILE_FOR_UNIT_TESTS -D HAVE_CXX_ABI_H -D TESTDATA_DIR=3D\"/disk-samsung/freebsd-ports/devel/vc/work/Vc-1.4.3/tests/t= estdata/\" -D Vc_IMPL=3DScalar -O2 -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare -Wno-local-type-template-args -Wno-unnamed-type-template-args -std=3Dc++14 -fdeprecated-macro -fdebug-compilation-dir=3D/disk-samsung/freebsd-ports/devel/vc/work/.build -ftemplate-depth 128 -ferror-limit 19 -stack-protector 2 -fgnuc-version=3D4= .2.1 -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=3D1 -x c++ scalaraccess-7a4b7b.cpp 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'scalaraccess-7a4b7b.cpp'. 4. Running pass 'X86 FP Stackifier' on function '@_Z22readsConstantIndexTestIN4Vc_16VectorIdNS0_9VectorAbi6ScalarEEELm0EEvT= _S5_' #0 0x00000000048a7860 PrintStackTrace /usr/13_1R-src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:565:13 #1 0x00000000048a5cd5 RunSignalHandlers /usr/13_1R-src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:98:18 #2 0x00000000048a7f70 SignalHandler /usr/13_1R-src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:3 #3 0x00000008289875b0 handle_signal /usr/13_1R-src/lib/libthr/thread/thr_sig.c:0:3 #4 0x0000000828986b6f thr_sighandler /usr/13_1R-src/lib/libthr/thread/thr_sig.c:247:1 #5 0x00007fffffffe2d3 ([vdso]+0x2d3) #6 0x00000000053aca70 handleSpecialFP /usr/13_1R-src/contrib/llvm-project/llvm/lib/Target/X86/X86FloatingPoint.cp= p:1514:19 #7 0x00000000053aca70 processBasicBlock /usr/13_1R-src/contrib/llvm-project/llvm/lib/Target/X86/X86FloatingPoint.cp= p:462:29 #8 0x00000000053ab26c runOnMachineFunction /usr/13_1R-src/contrib/llvm-project/llvm/lib/Target/X86/X86FloatingPoint.cp= p:375:13 #9 0x00000000041578ee runOnFunction /usr/13_1R-src/contrib/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cp= p:0:13 #10 0x0000000004538353 runOnFunction /usr/13_1R-src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1439:= 27 #11 0x000000000453e253 runOnModule /usr/13_1R-src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1485:= 13 #12 0x0000000004538929 runOnModule /usr/13_1R-src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27 #13 0x0000000004538929 run /usr/13_1R-src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:542:44 #14 0x000000000294294a EmitAssemblyWithNewPassManager /usr/13_1R-src/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1501:3 #15 0x000000000293d87e EmitBackendOutput /usr/13_1R-src/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:0:15 #16 0x0000000002bf955f reset /usr/obj/BUILDs/13_1R-amd64-nodbg-clang/usr/13_1R-src/amd64.amd64/tmp/usr/i= nclude/c++/v1/__memory/unique_ptr.h:315:28 #17 0x0000000002bf955f ~unique_ptr /usr/obj/BUILDs/13_1R-amd64-nodbg-clang/usr/13_1R-src/amd64.amd64/tmp/usr/i= nclude/c++/v1/__memory/unique_ptr.h:272:19 #18 0x0000000002bf955f HandleTranslationUnit /usr/13_1R-src/contrib/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:334= :7 #19 0x0000000003030e34 begin /usr/obj/BUILDs/13_1R-amd64-nodbg-clang/usr/13_1R-src/amd64.amd64/tmp/usr/i= nclude/c++/v1/vector:1539:30 #20 0x0000000003030e34 finalize >, std::__1::allocator > > > > /usr/13_1R-src/contrib/llvm-project/clang/include/clang/Sema/TemplateInstCa= llback.h:54:16 #21 0x0000000003030e34 ParseAST /usr/13_1R-src/contrib/llvm-project/clang/lib/Parse/ParseAST.cpp:178:3 #22 0x0000000002b509b6 Execute /usr/13_1R-src/contrib/llvm-project/clang/lib/Frontend/FrontendAction.cpp:9= 55:10 #23 0x0000000002ad68e6 getPtr /usr/13_1R-src/contrib/llvm-project/llvm/include/llvm/Support/Error.h:274:42 #24 0x0000000002ad68e6 operator bool /usr/13_1R-src/contrib/llvm-project/llvm/include/llvm/Support/Error.h:236:16 #25 0x0000000002ad68e6 ExecuteAction /usr/13_1R-src/contrib/llvm-project/clang/lib/Frontend/CompilerInstance.cpp= :974:23 #26 0x0000000002bf3827 ExecuteCompilerInvocation /usr/13_1R-src/contrib/llvm-project/clang/lib/FrontendTool/ExecuteCompilerI= nvocation.cpp:278:25 #27 0x0000000002215070 cc1_main /usr/13_1R-src/contrib/llvm-project/clang/tools/driver/cc1_main.cpp:246:15 #28 0x0000000002221ac5 ExecuteCC1Tool /usr/13_1R-src/contrib/llvm-project/clang/tools/driver/driver.cpp:338:12 Segmentation fault (core dumped) For stlcontainer-4e1702 it is similar and the backtrace looks like: . ./stlcontainer-4e1702.sh . . . /disk-samsung/freebsd-ports/devel/vc/work/Vc-1.4.3/tests/stlcontainer.cpp:7= 4:6: error: SSE2 register return with SSE2 disabled In file included from /disk-samsung/freebsd-ports/devel/vc/work/Vc-1.4.3/tests/stlcontainer.cpp:2= 4: In file included from /disk-samsung/freebsd-ports/devel/vc/work/Vc-1.4.3/tests/unittest.h:30: In file included from /disk-samsung/freebsd-ports/devel/vc/work/Vc-1.4.3/tests/virtest/vir/test.h= :34: /disk-samsung/freebsd-ports/devel/vc/work/Vc-1.4.3/tests/virtest/vir/detail= /ulp.h:93:32: error: SSE2 register return with SSE2 disabled template inline T ulpDiffToReferenceSigned(const T &_val, cons= t T &_ref) ^ fatal error: too many errors emitted, stopping now [-ferror-limit=3D] 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: /usr/bin/c++ -cc1 -triple x86_64-unknown-freebsd= 13.1 -emit-obj --mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names -main-file-name stlcontainer.cpp -mrelocation-model st= atic -mframe-pointer=3Dall -relaxed-aliasing -ffp-contract=3Dfast -fno-rounding-= math -mfpmath sse -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-feature -sse2 -target-feature -sse3 -target-feature -ssse3 -target-feature -sse4.1 -target-feature -sse4.2 -target-feature -sse4a -target-feature -avx -target-feature -fma -target-feature -bmi2 -target-fea= ture -avx2 -target-feature -xop -target-feature -fma4 -target-feature -avx512f -target-feature -avx512vl -target-feature -avx512pf -target-feature -avx512= er -target-feature -avx512cd -target-feature -avx512dq -target-feature -avx512= bw -target-feature -avx512ifma -target-feature -avx512vbmi -tune-cpu generic -debugger-tuning=3Dgdb -fcoverage-compilation-dir=3D/disk-samsung/freebsd-ports/devel/vc/work/.bui= ld -sys-header-deps -D COMPILE_FOR_UNIT_TESTS -D HAVE_CXX_ABI_H -D TESTDATA_DIR=3D\"/disk-samsung/freebsd-ports/devel/vc/work/Vc-1.4.3/tests/t= estdata/\" -D Vc_IMPL=3DScalar -O2 -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare -Wno-local-type-template-args -Wno-unnamed-type-template-args -std=3Dc++14 -fdeprecated-macro -fdebug-compilation-dir=3D/disk-samsung/freebsd-ports/devel/vc/work/.build -ftemplate-depth 128 -ferror-limit 19 -stack-protector 2 -fgnuc-version=3D4= .2.1 -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=3D1 -x c++ stlcontainer-4e1702.cpp 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'stlcontainer-4e1702.cpp'. 4. Running pass 'X86 FP Stackifier' on function '@_ZZN5Tests12simdForEach_IN4Vc_16VectorIdNS1_9VectorAbi6ScalarEEEE3runEvEN= KUlT_E_clIS5_EEDaS7_' #0 0x00000000048a7860 PrintStackTrace /usr/13_1R-src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:565:13 #1 0x00000000048a5cd5 RunSignalHandlers /usr/13_1R-src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:98:18 #2 0x00000000048a7f70 SignalHandler /usr/13_1R-src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:3 #3 0x0000000827d3f5b0 handle_signal /usr/13_1R-src/lib/libthr/thread/thr_sig.c:0:3 #4 0x0000000827d3eb6f thr_sighandler /usr/13_1R-src/lib/libthr/thread/thr_sig.c:247:1 #5 0x00007fffffffe2d3 ([vdso]+0x2d3) #6 0x00000000053aca70 handleSpecialFP /usr/13_1R-src/contrib/llvm-project/llvm/lib/Target/X86/X86FloatingPoint.cp= p:1514:19 #7 0x00000000053aca70 processBasicBlock /usr/13_1R-src/contrib/llvm-project/llvm/lib/Target/X86/X86FloatingPoint.cp= p:462:29 #8 0x00000000053ab26c runOnMachineFunction /usr/13_1R-src/contrib/llvm-project/llvm/lib/Target/X86/X86FloatingPoint.cp= p:375:13 #9 0x00000000041578ee runOnFunction /usr/13_1R-src/contrib/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cp= p:0:13 #10 0x0000000004538353 runOnFunction /usr/13_1R-src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1439:= 27 #11 0x000000000453e253 runOnModule /usr/13_1R-src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1485:= 13 #12 0x0000000004538929 runOnModule /usr/13_1R-src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27 #13 0x0000000004538929 run /usr/13_1R-src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:542:44 #14 0x000000000294294a EmitAssemblyWithNewPassManager /usr/13_1R-src/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1501:3 #15 0x000000000293d87e EmitBackendOutput /usr/13_1R-src/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:0:15 #16 0x0000000002bf955f reset /usr/obj/BUILDs/13_1R-amd64-nodbg-clang/usr/13_1R-src/amd64.amd64/tmp/usr/i= nclude/c++/v1/__memory/unique_ptr.h:315:28 #17 0x0000000002bf955f ~unique_ptr /usr/obj/BUILDs/13_1R-amd64-nodbg-clang/usr/13_1R-src/amd64.amd64/tmp/usr/i= nclude/c++/v1/__memory/unique_ptr.h:272:19 #18 0x0000000002bf955f HandleTranslationUnit /usr/13_1R-src/contrib/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:334= :7 #19 0x0000000003030e34 begin /usr/obj/BUILDs/13_1R-amd64-nodbg-clang/usr/13_1R-src/amd64.amd64/tmp/usr/i= nclude/c++/v1/vector:1539:30 #20 0x0000000003030e34 finalize >, std::__1::allocator > > > > /usr/13_1R-src/contrib/llvm-project/clang/include/clang/Sema/TemplateInstCa= llback.h:54:16 #21 0x0000000003030e34 ParseAST /usr/13_1R-src/contrib/llvm-project/clang/lib/Parse/ParseAST.cpp:178:3 #22 0x0000000002b509b6 Execute /usr/13_1R-src/contrib/llvm-project/clang/lib/Frontend/FrontendAction.cpp:9= 55:10 #23 0x0000000002ad68e6 getPtr /usr/13_1R-src/contrib/llvm-project/llvm/include/llvm/Support/Error.h:274:42 #24 0x0000000002ad68e6 operator bool /usr/13_1R-src/contrib/llvm-project/llvm/include/llvm/Support/Error.h:236:16 #25 0x0000000002ad68e6 ExecuteAction /usr/13_1R-src/contrib/llvm-project/clang/lib/Frontend/CompilerInstance.cpp= :974:23 #26 0x0000000002bf3827 ExecuteCompilerInvocation /usr/13_1R-src/contrib/llvm-project/clang/lib/FrontendTool/ExecuteCompilerI= nvocation.cpp:278:25 #27 0x0000000002215070 cc1_main /usr/13_1R-src/contrib/llvm-project/clang/tools/driver/cc1_main.cpp:246:15 #28 0x0000000002221ac5 ExecuteCC1Tool /usr/13_1R-src/contrib/llvm-project/clang/tools/driver/driver.cpp:338:12 Segmentation fault (core dumped) --=20 You are receiving this mail because: You are the assignee for the bug.=