[llvm-bugs] [Bug 48488] New: Clang crash while compiling source with missing { in move constructor

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Dec 11 10:57:13 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=48488

            Bug ID: 48488
           Summary: Clang crash while compiling source with missing { in
                    move constructor
           Product: clang
           Version: 11.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++2a
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ovzxemul at gmail.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

While compiling a source with missing { got clang crash after pringing a bunch
or compilation error messages. The preprocessed source is 800K lines, I haven't
(yet) managed to narrow it down :( gzipped it's 3.9M in size, so here's the
link:

https://drive.google.com/file/d/1UWtTP3D4t9r8Mny-0R5IEnqSaO0ymLVb/view?usp=sharing

And the report itself:


fatal error: too many errors emitted, stopping now [-ferror-limit=]
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang++ -std=gnu++20 -O1 --std=gnu++20
-ffile-prefix-map=/home/xemul/src/scylla=. -march=westmere -fvisibility=hidden
-Wall -Wno-mismatched-tags -Wno-tautological-compare -Wno-parentheses-equality
-Wno-c++11-narrowing -Wno-c++1z-extensions -Wno-sometimes-uninitialized
-Wno-return-stack-address -Wno-missing-braces -Wno-unused-lambda-capture
-Wno-misleading-indentation -Wno-overflow -Wno-noexcept-type -Wno-error=cpp
-Wno-ignored-attributes -Wno-overloaded-virtual
-Wno-unused-command-line-argument -Wno-inconsistent-missing-override
-Wno-defaulted-function-deleted -Wno-redeclared-class-member
-Wno-pessimizing-move -Wno-redundant-move -Wno-gnu-designator
-Wno-instantiation-after-specialization -Wno-unused-private-field
-Wno-unsupported-friend -Wno-unused-variable -Wno-return-std-move
-Wno-delete-non-abstract-non-virtual-dtor -Wno-unknown-attributes
-Wno-braced-scalar-init -Wno-unused-value -Wno-range-loop-construct
-Wno-unused-function -Wno-implicit-int-float-conversion
-Wno-delete-abstract-non-virtual-dtor -Wno-uninitialized-const-reference
-Wno-psabi -Wno-error=deprecated-declarations -Werror
-I/home/xemul/src/scylla/seastar/include
-I/home/xemul/src/scylla/build/dev/seastar/gen/include -U_FORTIFY_SOURCE
-DSEASTAR_SSTRING -DSEASTAR_API_LEVEL=6
-DSEASTAR_ENABLE_ALLOC_FAILURE_INJECTION -DSEASTAR_TYPE_ERASE_MORE -DFMT_LOCALE
-DFMT_SHARED -I/usr/include/p11-kit-1 -DDEVEL
-DSEASTAR_ENABLE_ALLOC_FAILURE_INJECTION -DSCYLLA_ENABLE_ERROR_INJECTION
-iquote. -iquote build/dev/gen -DBOOST_TEST_DYN_LINK -I abseil
-DXXH_PRIVATE_API -DSEASTAR_TESTING_MAIN -DHAVE_LZ4_COMPRESS_DEFAULT -c -o
build/dev/counters.o counters.cc 
1.      ./mutation_fragment.hh:395:95: current parser token ')'
2.      ./mutation_fragment.hh:276:1: parsing struct/union/class body
'mutation_fragment'
/lib64/libLLVM-11.so(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x2a)[0x7ff3554b427a]
/lib64/libLLVM-11.so(_ZN4llvm3sys17RunSignalHandlersEv+0x34)[0x7ff3554b24e4]
/lib64/libLLVM-11.so(+0x9bfa48)[0x7ff3553e8a48]
/lib64/libc.so.6(+0x3da60)[0x7ff354698a60]
/lib64/libclang-cpp.so.11(+0x22a87d5)[0x7ff35bfc97d5]
/lib64/libclang-cpp.so.11(+0x220f043)[0x7ff35bf30043]
/lib64/libclang-cpp.so.11(_ZN5clang4Sema20GetTypeForDeclaratorERNS_10DeclaratorEPNS_5ScopeE+0xdd)[0x7ff35b14eb4d]
/lib64/libclang-cpp.so.11(_ZN5clang4Sema20ActOnParamDeclaratorEPNS_5ScopeERNS_10DeclaratorE+0x11e)[0x7ff35accee7e]
/lib64/libclang-cpp.so.11(_ZN5clang6Parser31ParseParameterDeclarationClauseENS_17DeclaratorContextERNS_16ParsedAttributesERN4llvm15SmallVectorImplINS_15DeclaratorChunk9ParamInfoEEERNS_14SourceLocationE+0x475)[0x7ff35a6229a5]
/lib64/libclang-cpp.so.11(_ZN5clang6Parser23ParseFunctionDeclaratorERNS_10DeclaratorERNS_16ParsedAttributesERNS_24BalancedDelimiterTrackerEbb+0x76a)[0x7ff35a623bba]
/lib64/libclang-cpp.so.11(_ZN5clang6Parser21ParseDirectDeclaratorERNS_10DeclaratorE+0xb47)[0x7ff35a626547]
/lib64/libclang-cpp.so.11(_ZN5clang6Parser41ParseCXXMemberDeclaratorBeforeInitializerERNS_10DeclaratorERNS_14VirtSpecifiersERNS_12ActionResultIPNS_4ExprELb1EEERNS0_18LateParsedAttrListE+0x2e5)[0x7ff35a653b85]
/lib64/libclang-cpp.so.11(_ZN5clang6Parser30ParseCXXClassMemberDeclarationENS_15AccessSpecifierERNS_16ParsedAttributesERKNS0_18ParsedTemplateInfoEPNS_21ParsingDeclRAIIObjectE+0x48f)[0x7ff35a65425f]
/lib64/libclang-cpp.so.11(_ZN5clang6Parser41ParseCXXClassMemberDeclarationWithPragmasERNS_15AccessSpecifierERNS0_25ParsedAttributesWithRangeENS_17TypeSpecifierTypeEPNS_4DeclE+0x4ae)[0x7ff35a65678e]
/lib64/libclang-cpp.so.11(_ZN5clang6Parser27ParseCXXMemberSpecificationENS_14SourceLocationES1_RNS0_25ParsedAttributesWithRangeEjPNS_4DeclE+0x40f)[0x7ff35a656d9f]
/lib64/libclang-cpp.so.11(_ZN5clang6Parser19ParseClassSpecifierENS_3tok9TokenKindENS_14SourceLocationERNS_8DeclSpecERKNS0_18ParsedTemplateInfoENS_15AccessSpecifierEbNS0_15DeclSpecContextERNS0_25ParsedAttributesWithRangeE+0x16cf)[0x7ff35a65909f]
/lib64/libclang-cpp.so.11(_ZN5clang6Parser26ParseDeclarationSpecifiersERNS_8DeclSpecERKNS0_18ParsedTemplateInfoENS_15AccessSpecifierENS0_15DeclSpecContextEPNS0_18LateParsedAttrListE+0x7e6)[0x7ff35a6198d6]
/lib64/libclang-cpp.so.11(_ZN5clang6Parser30ParseDeclOrFunctionDefInternalERNS0_25ParsedAttributesWithRangeERNS_15ParsingDeclSpecENS_15AccessSpecifierE+0x80)[0x7ff35a6a04a0]
/lib64/libclang-cpp.so.11(_ZN5clang6Parser36ParseDeclarationOrFunctionDefinitionERNS0_25ParsedAttributesWithRangeEPNS_15ParsingDeclSpecENS_15AccessSpecifierE+0x23d)[0x7ff35a6a0bfd]
/lib64/libclang-cpp.so.11(_ZN5clang6Parser24ParseExternalDeclarationERNS0_25ParsedAttributesWithRangeEPNS_15ParsingDeclSpecE+0x7f3)[0x7ff35a6bbcc3]
/lib64/libclang-cpp.so.11(_ZN5clang6Parser17ParseTopLevelDeclERNS_9OpaquePtrINS_12DeclGroupRefEEEb+0x15b)[0x7ff35a6bbebb]
/lib64/libclang-cpp.so.11(_ZN5clang8ParseASTERNS_4SemaEbb+0x249)[0x7ff35a60cad9]
/lib64/libclang-cpp.so.11(_ZN5clang14FrontendAction7ExecuteEv+0xb1)[0x7ff35b9c1471]
/lib64/libclang-cpp.so.11(_ZN5clang16CompilerInstance13ExecuteActionERNS_14FrontendActionE+0x1e3)[0x7ff35b9949d3]
/lib64/libclang-cpp.so.11(_ZN5clang25ExecuteCompilerInvocationEPNS_16CompilerInstanceE+0x6d0)[0x7ff35ba23010]
/usr/bin/clang++(_Z8cc1_mainN4llvm8ArrayRefIPKcEES2_Pv+0x910)[0x56436fe0ce80]
/usr/bin/clang++(+0x17b09)[0x56436fe0fb09]
/lib64/libclang-cpp.so.11(+0x19b5415)[0x7ff35b6d6415]
/lib64/libLLVM-11.so(_ZN4llvm20CrashRecoveryContext9RunSafelyENS_12function_refIFvvEEE+0x23)[0x7ff3553e8b53]
/lib64/libclang-cpp.so.11(_ZNK5clang6driver10CC1Command7ExecuteEN4llvm8ArrayRefINS2_8OptionalINS2_9StringRefEEEEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb+0x14f)[0x7ff35b6e99ef]
/lib64/libclang-cpp.so.11(_ZNK5clang6driver11Compilation14ExecuteCommandERKNS0_7CommandERPS3_+0x97)[0x7ff35b6efe07]
/lib64/libclang-cpp.so.11(_ZNK5clang6driver11Compilation11ExecuteJobsERKNS0_7JobListERN4llvm15SmallVectorImplISt4pairIiPKNS0_7CommandEEEE+0x73)[0x7ff35b6f01c3]
/lib64/libclang-cpp.so.11(_ZN5clang6driver6Driver18ExecuteCompilationERNS0_11CompilationERN4llvm15SmallVectorImplISt4pairIiPKNS0_7CommandEEEE+0xe3)[0x7ff35b6f1503]
/usr/bin/clang++(main+0x2277)[0x56436fe09497]
/lib64/libc.so.6(__libc_start_main+0xf2)[0x7ff3546831e2]
/usr/bin/clang++(_start+0x2e)[0x56436fe0a55e]
clang-11: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 11.0.0 (Fedora 11.0.0-2.fc33)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg: 
********************

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201211/92b60f8b/attachment.html>


More information about the llvm-bugs mailing list