Date: Mon, 23 May 2022 02:17:44 +0000 From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 264157] clang-13 crashes while compiling tests from devel/vc Message-ID: <bug-264157-29464-piC3Ex32y0@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-264157-29464@https.bugs.freebsd.org/bugzilla/> References: <bug-264157-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264157 Mark Millard <marklmi26-fbsd@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marklmi26-fbsd@yahoo.com --- Comment #1 from Mark Millard <marklmi26-fbsd@yahoo.com> --- (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<AllVectors, SimdArrayList>) ^ . . . There are a bunch. It eventually gets: template <typename V, size_t Index> 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. <eof> 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::vector<std::__1::unique_ptr<clang::TemplateInstantiation= Callback, std::__1::default_delete<clang::TemplateInstantiationCallback> >, std::__1::allocator<std::__1::unique_ptr<clang::TemplateInstantiationCallba= ck, std::__1::default_delete<clang::TemplateInstantiationCallback> > > > > /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 <typename T> 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. <eof> 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::vector<std::__1::unique_ptr<clang::TemplateInstantiation= Callback, std::__1::default_delete<clang::TemplateInstantiationCallback> >, std::__1::allocator<std::__1::unique_ptr<clang::TemplateInstantiationCallba= ck, std::__1::default_delete<clang::TemplateInstantiationCallback> > > > > /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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264157-29464-piC3Ex32y0>