Skip to content

clang crashes on Assertion `NextLocalOffset + Length + 1 > NextLocalOffset && NextLocalOffset + Length + 1 <= CurrentLoadedOffset && "Ran out of source locations!"' failed. #42893

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
eldiener mannequin opened this issue Oct 3, 2019 · 15 comments
Labels
bugzilla Issues migrated from bugzilla c++ clang:frontend Language frontend issues, e.g. anything involving "Sema" crash Prefer [crash-on-valid] or [crash-on-invalid] duplicate Resolved as duplicate

Comments

@eldiener
Copy link
Mannequin

eldiener mannequin commented Oct 3, 2019

Bugzilla Link 43548
Version trunk
OS Linux
CC @DougGregor,@zygoloid
@eldiener
Copy link
Mannequin Author

eldiener mannequin commented Oct 3, 2019

I am the author and maintainer of the Boost VMD library. When running the test_doc_modifiers_return_type test I received a stack dump. The output of the stack dump is:

clang-10: /opt/LinuxShare/vcs/llvm-project/clang/lib/Basic/SourceManager.cpp:634: clang::SourceLocation clang::SourceManager::createExpansionLocImpl(const clang::SrcMgr::ExpansionInfo&, unsigned int, int, unsigned int): Assertion `NextLocalOffset + TokLength + 1 > NextLocalOffset && NextLocalOffset + TokLength + 1 <= CurrentLoadedOffset && "Ran out of source locations!"' failed.
Stack dump:
0. Program arguments: /home/fceldiener/build/clang/final/bin/clang-10 -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name test_doc_modifiers_return_type.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mframe-pointer=all -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -resource-dir /home/fceldiener/build/clang/final/lib/clang/10.0.0 -D BOOST_ALL_NO_LIB=1 -I ../../.. -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9 -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/x86_64-redhat-linux -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/backward -internal-isystem /usr/local/include -internal-isystem /home/fceldiener/build/clang/final/lib/clang/10.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O0 -Wall -pedantic-errors -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /opt/LinuxShare/vcs/modular-boost/libs/vmd/test -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -fvisibility-inlines-hidden -pthread -fno-inline -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -faddrsig -o /home/fceldiener/build/boost/bin.v2/libs/vmd/test/test_doc_modifiers_return_type.test/clang-c11-linux-10.0/debug/threading-multi/visibility-hidden/test_doc_modifiers_return_type.o -x c++ test_doc_modifiers_return_type.cpp

  1. ../../../libs/vmd/test/test_doc_modifiers_return_type.cxx:181:2: current parser token 'BOOST_TEST'
  2. ../../../libs/vmd/test/test_doc_modifiers_return_type.cxx:23:3: parsing function body 'main'
  3. ../../../libs/vmd/test/test_doc_modifiers_return_type.cxx:23:3: in compound statement ('{}')
    #​0 0x000000000280e1ca llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/home/fceldiener/build/clang/final/bin/clang-10+0x280e1ca)
    #​1 0x000000000280c244 llvm::sys::RunSignalHandlers() (/home/fceldiener/build/clang/final/bin/clang-10+0x280c244)
    #​2 0x000000000280c3a5 SignalHandler(int) (/home/fceldiener/build/clang/final/bin/clang-10+0x280c3a5)
    #​3 0x00007fd7654edc60 __restore_rt (/lib64/libpthread.so.0+0x12c60)
    #​4 0x00007fd764fc6e35 raise (/lib64/libc.so.6+0x37e35)
    #​5 0x00007fd764fb1895 abort (/lib64/libc.so.6+0x22895)
    #​6 0x00007fd764fb1769 _nl_load_domain.cold (/lib64/libc.so.6+0x22769)
    #​7 0x00007fd764fbf566 (/lib64/libc.so.6+0x30566)
    #​8 0x00000000029f9344 clang::SourceManager::createExpansionLocImpl(clang::SrcMgr::ExpansionInfo const&, unsigned int, int, unsigned int) (/home/fceldiener/build/clang/final/bin/clang-10+0x29f9344)
    #​9 0x00000000029f94bc clang::SourceManager::createExpansionLoc(clang::SourceLocation, clang::SourceLocation, clang::SourceLocation, unsigned int, bool, int, unsigned int) (/home/fceldiener/build/clang/final/bin/clang-10+0x29f94bc)
    #​10 0x0000000004ed199b clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed199b)
    #​11 0x0000000004e9f489 clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4e9f489)
    #​12 0x0000000004eae6b2 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eae6b2)
    #​13 0x0000000004ec5459 clang::Preprocessor::HandleIdentifier(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ec5459)
    #​14 0x0000000004eca119 clang::Preprocessor::Lex(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eca119)
    #​15 0x0000000004ed3838 clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed3838)
    #​16 0x0000000004ed0fa4 clang::TokenLexer::ExpandFunctionArguments() (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed0fa4)
    #​17 0x0000000004ed19df clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed19df)
    #​18 0x0000000004e9f489 clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4e9f489)
    #​19 0x0000000004eae6b2 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eae6b2)
    #​20 0x0000000004ec5459 clang::Preprocessor::HandleIdentifier(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ec5459)
    #​21 0x0000000004eca119 clang::Preprocessor::Lex(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eca119)
    #​22 0x0000000004ed3838 clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed3838)
    #​23 0x0000000004ed0fa4 clang::TokenLexer::ExpandFunctionArguments() (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed0fa4)
    #​24 0x0000000004ed19df clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed19df)
    #​25 0x0000000004e9f489 clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4e9f489)
    #​26 0x0000000004eae6b2 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eae6b2)
    #​27 0x0000000004ec5459 clang::Preprocessor::HandleIdentifier(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ec5459)
    #​28 0x0000000004eca119 clang::Preprocessor::Lex(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eca119)
    #​29 0x0000000004ed3838 clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed3838)
    #​30 0x0000000004ed0fa4 clang::TokenLexer::ExpandFunctionArguments() (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed0fa4)
    #​31 0x0000000004ed19df clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed19df)
    #​32 0x0000000004e9f489 clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4e9f489)
    #​33 0x0000000004eae6b2 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eae6b2)
    #​34 0x0000000004ec5459 clang::Preprocessor::HandleIdentifier(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ec5459)
    #​35 0x0000000004eca119 clang::Preprocessor::Lex(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eca119)
    #​36 0x0000000004ed3838 clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed3838)
    #​37 0x0000000004ed0fa4 clang::TokenLexer::ExpandFunctionArguments() (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed0fa4)
    #​38 0x0000000004ed19df clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed19df)
    #​39 0x0000000004e9f489 clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4e9f489)
    #​40 0x0000000004eae6b2 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eae6b2)
    #​41 0x0000000004ec5459 clang::Preprocessor::HandleIdentifier(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ec5459)
    #​42 0x0000000004eca119 clang::Preprocessor::Lex(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eca119)
    #​43 0x0000000004ed3838 clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed3838)
    #​44 0x0000000004ed0fa4 clang::TokenLexer::ExpandFunctionArguments() (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed0fa4)
    #​45 0x0000000004ed19df clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed19df)
    #​46 0x0000000004e9f489 clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4e9f489)
    #​47 0x0000000004eae6b2 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eae6b2)
    #​48 0x0000000004ec5459 clang::Preprocessor::HandleIdentifier(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ec5459)
    #​49 0x0000000004eca119 clang::Preprocessor::Lex(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eca119)
    #​50 0x0000000004ed3838 clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed3838)
    #​51 0x0000000004ed0fa4 clang::TokenLexer::ExpandFunctionArguments() (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed0fa4)
    #​52 0x0000000004ed19df clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed19df)
    #​53 0x0000000004e9f489 clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4e9f489)
    #​54 0x0000000004eae6b2 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eae6b2)
    #​55 0x0000000004ec5459 clang::Preprocessor::HandleIdentifier(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ec5459)
    #​56 0x0000000004eca119 clang::Preprocessor::Lex(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eca119)
    #​57 0x0000000004ed3838 clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed3838)
    #​58 0x0000000004ed0fa4 clang::TokenLexer::ExpandFunctionArguments() (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed0fa4)
    #​59 0x0000000004ed19df clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed19df)
    #​60 0x0000000004e9f489 clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4e9f489)
    #​61 0x0000000004eae6b2 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eae6b2)
    #​62 0x0000000004ec5459 clang::Preprocessor::HandleIdentifier(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ec5459)
    #​63 0x0000000004eca119 clang::Preprocessor::Lex(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eca119)
    #​64 0x0000000004ed3838 clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed3838)
    #​65 0x0000000004ed0fa4 clang::TokenLexer::ExpandFunctionArguments() (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed0fa4)
    #​66 0x0000000004ed19df clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed19df)
    #​67 0x0000000004e9f489 clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4e9f489)
    #​68 0x0000000004eae6b2 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eae6b2)
    #​69 0x0000000004ec5459 clang::Preprocessor::HandleIdentifier(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ec5459)
    #​70 0x0000000004eca119 clang::Preprocessor::Lex(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eca119)
    #​71 0x0000000004ed3838 clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed3838)
    #​72 0x0000000004ed0fa4 clang::TokenLexer::ExpandFunctionArguments() (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed0fa4)
    #​73 0x0000000004ed19df clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed19df)
    #​74 0x0000000004e9f489 clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4e9f489)
    #​75 0x0000000004eae6b2 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eae6b2)
    #​76 0x0000000004ec5459 clang::Preprocessor::HandleIdentifier(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ec5459)
    #​77 0x0000000004eca119 clang::Preprocessor::Lex(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eca119)
    #​78 0x0000000004ed3838 clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed3838)
    #​79 0x0000000004ed0fa4 clang::TokenLexer::ExpandFunctionArguments() (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed0fa4)
    #​80 0x0000000004ed19df clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed19df)
    #​81 0x0000000004e9f489 clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4e9f489)
    #​82 0x0000000004eae6b2 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eae6b2)
    #​83 0x0000000004ec5459 clang::Preprocessor::HandleIdentifier(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ec5459)
    #​84 0x0000000004eca119 clang::Preprocessor::Lex(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eca119)
    #​85 0x0000000004ed3838 clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed3838)
    #​86 0x0000000004ed0fa4 clang::TokenLexer::ExpandFunctionArguments() (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed0fa4)
    #​87 0x0000000004ed19df clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed19df)
    #​88 0x0000000004e9f489 clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4e9f489)
    #​89 0x0000000004eae6b2 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eae6b2)
    #​90 0x0000000004ec5459 clang::Preprocessor::HandleIdentifier(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ec5459)
    #​91 0x0000000004eca119 clang::Preprocessor::Lex(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eca119)
    #​92 0x0000000004ed3838 clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed3838)
    #​93 0x0000000004ed0fa4 clang::TokenLexer::ExpandFunctionArguments() (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed0fa4)
    #​94 0x0000000004ed19df clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed19df)
    #​95 0x0000000004e9f489 clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4e9f489)
    #​96 0x0000000004eae6b2 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eae6b2)
    #​97 0x0000000004ec5459 clang::Preprocessor::HandleIdentifier(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ec5459)
    #​98 0x0000000004eca119 clang::Preprocessor::Lex(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eca119)
    #​99 0x0000000004ed3838 clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed3838)
    #​100 0x0000000004ed0fa4 clang::TokenLexer::ExpandFunctionArguments() (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed0fa4)
    #​101 0x0000000004ed19df clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed19df)
    #​102 0x0000000004e9f489 clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4e9f489)
    #​103 0x0000000004eae6b2 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eae6b2)
    #​104 0x0000000004ec5459 clang::Preprocessor::HandleIdentifier(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ec5459)
    #​105 0x0000000004eca119 clang::Preprocessor::Lex(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eca119)
    #​106 0x0000000004ed3838 clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed3838)
    #​107 0x0000000004ed0fa4 clang::TokenLexer::ExpandFunctionArguments() (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed0fa4)
    #​108 0x0000000004ed19df clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed19df)
    #​109 0x0000000004e9f489 clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4e9f489)
    #​110 0x0000000004eae6b2 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eae6b2)
    #​111 0x0000000004ec5459 clang::Preprocessor::HandleIdentifier(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ec5459)
    #​112 0x0000000004eca119 clang::Preprocessor::Lex(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eca119)
    #​113 0x0000000004ed3838 clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed3838)
    #​114 0x0000000004ed0fa4 clang::TokenLexer::ExpandFunctionArguments() (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed0fa4)
    #​115 0x0000000004ed19df clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed19df)
    #​116 0x0000000004e9f489 clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4e9f489)
    #​117 0x0000000004eae6b2 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eae6b2)
    #​118 0x0000000004ec5459 clang::Preprocessor::HandleIdentifier(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ec5459)
    #​119 0x0000000004eca119 clang::Preprocessor::Lex(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eca119)
    #​120 0x0000000004ed3838 clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed3838)
    #​121 0x0000000004ed0fa4 clang::TokenLexer::ExpandFunctionArguments() (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed0fa4)
    #​122 0x0000000004ed19df clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed19df)
    #​123 0x0000000004e9f489 clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4e9f489)
    #​124 0x0000000004eae6b2 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eae6b2)
    #​125 0x0000000004ec5459 clang::Preprocessor::HandleIdentifier(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ec5459)
    #​126 0x0000000004eca119 clang::Preprocessor::Lex(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eca119)
    #​127 0x0000000004ed3838 clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed3838)
    #​128 0x0000000004ed0fa4 clang::TokenLexer::ExpandFunctionArguments() (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed0fa4)
    #​129 0x0000000004ed19df clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ed19df)
    #​130 0x0000000004e9f489 clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4e9f489)
    #​131 0x0000000004eae6b2 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eae6b2)
    #​132 0x0000000004ec5459 clang::Preprocessor::HandleIdentifier(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4ec5459)
    #​133 0x0000000004e5b97f clang::Lexer::LexIdentifier(clang::Token&, char const*) (/home/fceldiener/build/clang/final/bin/clang-10+0x4e5b97f)
    #​134 0x0000000004e5f4f3 clang::Lexer::LexTokenInternal(clang::Token&, bool) (/home/fceldiener/build/clang/final/bin/clang-10+0x4e5f4f3)
    #​135 0x0000000004e61801 clang::Lexer::Lex(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4e61801)
    #​136 0x0000000004eca19f clang::Preprocessor::Lex(clang::Token&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4eca19f)
    #​137 0x00000000040d7cbf clang::Parser::ExpectAndConsumeSemi(unsigned int) (/home/fceldiener/build/clang/final/bin/clang-10+0x40d7cbf)
    #​138 0x000000000416acdd clang::Parser::ParseExprStatement(clang::Parser::ParsedStmtContext) (/home/fceldiener/build/clang/final/bin/clang-10+0x416acdd)
    #​139 0x000000000416b8ce clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) (/home/fceldiener/build/clang/final/bin/clang-10+0x416b8ce)
    #​140 0x000000000416bb08 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*) (/home/fceldiener/build/clang/final/bin/clang-10+0x416bb08)
    #​141 0x000000000417015b clang::Parser::ParseCompoundStatementBody(bool) (/home/fceldiener/build/clang/final/bin/clang-10+0x417015b)
    #​142 0x0000000004172aca clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) (/home/fceldiener/build/clang/final/bin/clang-10+0x4172aca)
    #​143 0x00000000040db042 clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) (/home/fceldiener/build/clang/final/bin/clang-10+0x40db042)
    #​144 0x00000000040fda19 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::SourceLocation*, clang::Parser::ForRangeInit*) (/home/fceldiener/build/clang/final/bin/clang-10+0x40fda19)
    #​145 0x00000000040d60e1 clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec&, clang::AccessSpecifier) (/home/fceldiener/build/clang/final/bin/clang-10+0x40d60e1)
    #​146 0x00000000040d6831 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*, clang::AccessSpecifier) (.part.0) (/home/fceldiener/build/clang/final/bin/clang-10+0x40d6831)
    #​147 0x00000000040dba06 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) (.localalias) (/home/fceldiener/build/clang/final/bin/clang-10+0x40dba06)
    #​148 0x00000000040dc758 clang::Parser::ParseTopLevelDecl(clang::OpaquePtrclang::DeclGroupRef&, bool) (/home/fceldiener/build/clang/final/bin/clang-10+0x40dc758)
    #​149 0x00000000040d0ac9 clang::ParseAST(clang::Sema&, bool, bool) (/home/fceldiener/build/clang/final/bin/clang-10+0x40d0ac9)
    #​150 0x0000000003582ca8 clang::CodeGenAction::ExecuteAction() (/home/fceldiener/build/clang/final/bin/clang-10+0x3582ca8)
    #​151 0x0000000002f79b09 clang::FrontendAction::Execute() (/home/fceldiener/build/clang/final/bin/clang-10+0x2f79b09)
    #​152 0x0000000002f3947e clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/fceldiener/build/clang/final/bin/clang-10+0x2f3947e)
    #​153 0x000000000303290c clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/fceldiener/build/clang/final/bin/clang-10+0x303290c)
    #​154 0x0000000000a0354f cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/home/fceldiener/build/clang/final/bin/clang-10+0xa0354f)
    #​155 0x0000000000989fa1 main (/home/fceldiener/build/clang/final/bin/clang-10+0x989fa1)
    #​156 0x00007fd764fb2f43 __libc_start_main (/lib64/libc.so.6+0x23f43)
    #​157 0x00000000009ffd2e _start (/home/fceldiener/build/clang/final/bin/clang-10+0x9ffd2e)
    clang-10: error: unable to execute command: Aborted (core dumped)
    clang-10: error: clang frontend command failed due to signal (use -v to see invocation)
    clang version 10.0.0 (https://github.com/llvm/llvm-project.git 38c265f)
    Target: x86_64-unknown-linux-gnu
    Thread model: posix
    InstalledDir: /home/fceldiener/build/clang/final/bin
    clang-10: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
    clang-10: note: diagnostic msg:

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-10: note: diagnostic msg: /tmp/test_doc_modifiers_return_type-aaea0e.cpp
clang-10: note: diagnostic msg: /tmp/test_doc_modifiers_return_type-aaea0e.sh
clang-10: note: diagnostic msg:


"/home/fceldiener/build/clang/final/bin/clang++" -c -x c++ -fvisibility-inlines-hidden -fPIC -m64 -pthread -O0 -fno-inline -Wall -g -fvisibility=hidden -pedantic-errors -std=c++11 -DBOOST_ALL_NO_LIB=1 -I"../../.." -o "/home/fceldiener/build/boost/bin.v2/libs/vmd/test/test_doc_modifiers_return_type.test/clang-c11-linux-10.0/debug/threading-multi/visibility-hidden/test_doc_modifiers_return_type.o" "test_doc_modifiers_return_type.cpp"

@eldiener
Copy link
Mannequin Author

eldiener mannequin commented Oct 3, 2019

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
@hdu-sdlzx
Copy link

encountered the same bug with clang 12.0.1 and boost 1.80

@EugeneZelenko EugeneZelenko added clang:frontend Language frontend issues, e.g. anything involving "Sema" crash Prefer [crash-on-valid] or [crash-on-invalid] labels Nov 26, 2022
@llvmbot
Copy link
Member

llvmbot commented Nov 26, 2022

@llvm/issue-subscribers-clang-frontend

@EugeneZelenko
Copy link
Contributor

Could you please try 15 or main branch?

@inclyc
Copy link
Member

inclyc commented Nov 26, 2022

encountered the same bug with clang 12.0.1 and boost 1.80

You can paste your code and inspect it in the compiler explorer. It will be very appreciate if you can provide short link to godbolt here!

@inclyc
Copy link
Member

inclyc commented Nov 26, 2022

PS: use "clang trunk" / "assertion trunk" to check if this bug still exists (it is relatively old!)

@hdu-sdlzx
Copy link

hdu-sdlzx commented Dec 1, 2022

It turns out that the code is just too long... @inclyc @EugeneZelenko
Maybe you have already improved the debugging message, thank you!

I tried it on fedora 37 with clang-15.0.0 and this is the output:

[sdlzx@fedora status]$ "clang++" -c -x c++ -fvisibility-inlines-hidden -fPIC -m64 -pthread -O3 -Wall -g -fvisibility=hidden -Wno-inline --target=x86_64-pc-linux -DBOOST_ALL_NO_LIB=1 -DBOOST_BEAST_ALLOW_DEPRECATED -DBOOST_BEAST_SEPARATE_COMPILATION -DNDEBUG -I".." -o "../bin.v2/libs/vmd/test/test_doc_modifiers_return_type.test/clang-linux-15/release/debug-symbols-on/pch-off/threading-multi/visibility-hidden/test_doc_modifiers_return_type.o" "../libs/vmd/test/test_doc_modifiers_return_type.cpp"

fatal error: sorry, this include generates a translation unit too large for Clang to process.

@hdu-sdlzx
Copy link

#0 0x00007f66d1c7b155 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib64/libLLVM-15.so+0xc7b155)
#1 0x00007f66d1c7b3db (/lib64/libLLVM-15.so+0xc7b3db)
#2 0x00007f66d1c78a84 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-15.so+0xc78a84)
#3 0x00007f66d1c7a65b llvm::sys::CleanupOnSignal(unsigned long) (/lib64/libLLVM-15.so+0xc7a65b)
#4 0x00007f66d1b812fd (/lib64/libLLVM-15.so+0xb812fd)
#5 0x00007f66d0a60b50 __restore_rt (/lib64/libc.so.6+0x3cb50)
#6 0x00007f66d8814984 clang::ScratchBuffer::getToken(char const*, unsigned int, char const*&) (/lib64/libclang-cpp.so.15+0xa14984)
#7 0x00007f66d881739e clang::TokenLexer::pasteTokens(clang::Token&, llvm::ArrayRefclang::Token, unsigned int&) (/lib64/libclang-cpp.so.15+0xa1739e)
#8 0x00007f66d88180d6 clang::TokenLexer::Lex(clang::Token&) (/lib64/libclang-cpp.so.15+0xa180d6)
#9 0x00007f66d8811614 clang::Preprocessor::Lex(clang::Token&) (/lib64/libclang-cpp.so.15+0xa11614)
......
#244 0x000055e73737bcf9 clang_main(int, char**) (/usr/bin/clang-15+0x12cf9)
#245 0x00007f66d0a4b510 __libc_start_call_main (/lib64/libc.so.6+0x27510)
#246 0x00007f66d0a4b5c9 __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x275c9)
#247 0x000055e737378f75 _start (/usr/bin/clang-15+0xff75)
clang-15: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 15.0.0 (Fedora 15.0.0-2.fc37)
Target: x86_64-pc-linux
Thread model: posix
InstalledDir: /usr/bin
clang-15: note: diagnostic msg:


PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-15: note: diagnostic msg: /tmp/test_doc_modifiers_return_type-6087cc.cpp
clang-15: note: diagnostic msg: /tmp/test_doc_modifiers_return_type-6087cc.sh

@inclyc
Copy link
Member

inclyc commented Dec 7, 2022

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-15: note: diagnostic msg: /tmp/test_doc_modifiers_return_type-6087cc.cpp
clang-15: note: diagnostic msg: /tmp/test_doc_modifiers_return_type-6087cc.sh

Can you upload these preprocessed sources here?

@hdu-sdlzx
Copy link

hdu-sdlzx commented Dec 9, 2022

test_doc_modifiers_return_type-b353f4.zip

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-15: note: diagnostic msg: /tmp/test_doc_modifiers_return_type-6087cc.cpp
clang-15: note: diagnostic msg: /tmp/test_doc_modifiers_return_type-6087cc.sh

Can you upload these preprocessed sources here?

@hdu-sdlzx
Copy link

hdu-sdlzx commented Dec 13, 2022

@inclyc I don't know how to use boost in godbolt and the preprocessed file is too large to paste into godbolt.
What else can I do?

@inclyc
Copy link
Member

inclyc commented Dec 21, 2022

@inclyc I don't know how to use boost in godbolt and the preprocessed file is too large to paste into godbolt. What else can I do?

Thanks! Your uploaded sources here give us all necessary information I think.

@inclyc
Copy link
Member

inclyc commented Dec 21, 2022

The assertion is

Assertion `NextLocalOffset + Length + 1 > NextLocalOffset && NextLocalOffset + Length + 1 <= CurrentLoadedOffset && "Ran out of source locations!"' failed.
clang: <llvm-project>/clang/lib/Basic/SourceManager.cpp:678: clang::SourceLocation clang::SourceManager::createExpansionLocImpl(const clang::SrcMgr::ExpansionInfo &, unsigned int, int, SourceLocation::UIntTy): Assertion `NextLocalOffset + Length + 1 > NextLocalOffset && NextLocalOffset + Length + 1 <= CurrentLoadedOffset && "Ran out of source locations!"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: <llvm-project>/build/bin/clang -fsyntax-only -c local/clang/test_doc_modifiers_return_type-b353f4/test_doc_modifiers_return_type-b353f4.cpp
1.      ../libs/vmd/test/test_doc_modifiers_return_type.cxx:174:2: current parser token 'BOOST_TEST'
2.      ../libs/vmd/test/test_doc_modifiers_return_type.cxx:23:3: parsing function body 'main'
3.      ../libs/vmd/test/test_doc_modifiers_return_type.cxx:23:3: in compound statement ('{}')
  #0 0x00007fffee4cbc7a llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) <llvm-project>/llvm/lib/Support/Unix/Signals.inc:567:11
  #1 0x00007fffee4cbe2b PrintStackTraceSignalHandler(void*) <llvm-project>/llvm/lib/Support/Unix/Signals.inc:641:1
  #2 0x00007fffee4ca4b6 llvm::sys::RunSignalHandlers() <llvm-project>/llvm/lib/Support/Signals.cpp:104:5
  #3 0x00007fffee4cb56e llvm::sys::CleanupOnSignal(unsigned long) <llvm-project>/llvm/lib/Support/Unix/Signals.inc:367:1
  #4 0x00007fffee3585b7 (anonymous namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long) <llvm-project>/llvm/lib/Support/CrashRecoveryContext.cpp:0:7
  #5 0x00007fffee358a0c CrashRecoverySignalHandler(int) <llvm-project>/llvm/lib/Support/CrashRecoveryContext.cpp:398:1
  #6 0x00007fffedc24950 (/usr/lib64/libc.so.6+0x37950)
  #7 0x00007fffedc7042c (/usr/lib64/libc.so.6+0x8342c)
  #8 0x00007fffedc248b2 raise (/usr/lib64/libc.so.6+0x378b2)
  #9 0x00007fffedc0f471 abort (/usr/lib64/libc.so.6+0x22471)
 #10 0x00007fffedc0f395 (/usr/lib64/libc.so.6+0x22395)
 #11 0x00007fffedc1db92 (/usr/lib64/libc.so.6+0x30b92)
 #12 0x00007fffeed241ab clang::SourceManager::createExpansionLocImpl(clang::SrcMgr::ExpansionInfo const&, unsigned int, int, unsigned int) <llvm-project>/clang/lib/Basic/SourceManager.cpp:0:3
 #13 0x00007fffeed22068 clang::SourceManager::createExpansionLoc(clang::SourceLocation, clang::SourceLocation, clang::SourceLocation, unsigned int, bool, int, unsigned int) <llvm-project>/clang/lib/Basic/SourceManager.cpp:648:10
 #14 0x00007fffe9577685 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:76:30
 #15 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
 #16 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
 #17 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
 #18 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
 #19 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
 #20 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
 #21 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
 #22 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
 #23 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
 #24 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
 #25 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
 #26 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
 #27 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
 #28 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
 #29 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
 #30 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
 #31 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
 #32 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
 #33 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
 #34 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
 #35 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
 #36 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
 #37 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
 #38 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
 #39 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
 #40 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
 #41 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
 #42 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
 #43 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
 #44 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
 #45 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
 #46 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
 #47 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
 #48 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
 #49 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
 #50 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
 #51 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
 #52 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
 #53 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
 #54 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
 #55 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
 #56 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
 #57 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
 #58 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
 #59 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
 #60 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
 #61 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
 #62 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
 #63 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
 #64 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
 #65 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
 #66 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
 #67 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
 #68 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
 #69 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
 #70 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
 #71 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
 #72 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
 #73 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
 #74 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
 #75 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
 #76 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
 #77 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
 #78 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
 #79 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
 #80 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
 #81 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
 #82 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
 #83 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
 #84 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
 #85 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
 #86 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
 #87 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
 #88 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
 #89 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
 #90 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
 #91 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
 #92 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
 #93 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
 #94 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
 #95 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
 #96 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
 #97 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
 #98 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
 #99 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
#100 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
#101 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
#102 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
#103 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
#104 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
#105 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
#106 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
#107 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
#108 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
#109 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
#110 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
#111 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
#112 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
#113 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
#114 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
#115 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
#116 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
#117 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
#118 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
#119 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
#120 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
#121 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
#122 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
#123 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
#124 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
#125 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
#126 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
#127 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
#128 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
#129 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
#130 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
#131 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
#132 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
#133 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
#134 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
#135 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
#136 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
#137 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
#138 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
#139 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
#140 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
#141 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
#142 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
#143 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
#144 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
#145 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
#146 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
#147 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
#148 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
#149 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
#150 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
#151 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
#152 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
#153 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
#154 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
#155 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
#156 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
#157 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
#158 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
#159 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
#160 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
#161 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
#162 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
#163 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
#164 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
#165 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
#166 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
#167 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
#168 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
#169 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
#170 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
#171 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
#172 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
#173 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
#174 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
#175 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
#176 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
#177 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
#178 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
#179 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
#180 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
#181 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
#182 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
#183 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
#184 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
#185 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
#186 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
#187 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
#188 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
#189 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
#190 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
#191 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
#192 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
#193 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
#194 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
#195 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
#196 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
#197 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
#198 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
#199 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
#200 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
#201 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
#202 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
#203 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
#204 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
#205 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
#206 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
#207 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
#208 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
#209 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
#210 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
#211 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
#212 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
#213 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
#214 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
#215 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
#216 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
#217 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
#218 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
#219 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
#220 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
#221 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
#222 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
#223 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
#224 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
#225 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
#226 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
#227 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
#228 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
#229 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
#230 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
#231 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
#232 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
#233 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
#234 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
#235 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
#236 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
#237 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
#238 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
#239 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
#240 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
#241 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
#242 0x00007fffe957aad4 clang::TokenLexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:717:7
#243 0x00007fffe95696c5 clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:892:21
#244 0x00007fffe94c599e clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) <llvm-project>/clang/lib/Lex/MacroArgs.cpp:189:12
#245 0x00007fffe9578424 clang::TokenLexer::ExpandFunctionArguments() <llvm-project>/clang/lib/Lex/TokenLexer.cpp:456:38
#246 0x00007fffe95776d7 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/TokenLexer.cpp:0:5
#247 0x00007fffe952853a clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) <llvm-project>/clang/lib/Lex/PPLexerChange.cpp:0:15
#248 0x00007fffe9535657 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) <llvm-project>/clang/lib/Lex/PPMacroExpansion.cpp:633:3
#249 0x00007fffe956934b clang::Preprocessor::HandleIdentifier(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:829:11
#250 0x00007fffe94a97a5 clang::Lexer::LexIdentifierContinue(clang::Token&, char const*) <llvm-project>/clang/lib/Lex/Lexer.cpp:1900:5
#251 0x00007fffe94afccc clang::Lexer::LexTokenInternal(clang::Token&, bool) <llvm-project>/clang/lib/Lex/Lexer.cpp:3873:5
#252 0x00007fffe94acf9c clang::Lexer::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Lexer.cpp:3576:8
#253 0x00007fffe956969f clang::Preprocessor::Lex(clang::Token&) <llvm-project>/clang/lib/Lex/Preprocessor.cpp:889:21
#254 0x00007fffe876fe6c clang::Parser::TryConsumeToken(clang::tok::TokenKind) <llvm-project>/clang/include/clang/Parse/Parser.h:510:5
#255 0x00007fffe88b10bf clang::Parser::ExpectAndConsumeSemi(unsigned int, llvm::StringRef) <llvm-project>/clang/lib/Parse/Parser.cpp:157:7
clang-16: error: clang frontend command failed with exit code 134 (use -v to see invocation)
clang version 16.0.0
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: <llvm-project>/build/bin
clang-16: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-16: note: diagnostic msg: /tmp/test_doc_modifiers_return_type-b353f4-a19a4c.cpp
clang-16: note: diagnostic msg: /tmp/test_doc_modifiers_return_type-b353f4-a19a4c.sh
clang-16: note: diagnostic msg: 

********************

@inclyc inclyc changed the title Stack dump when running test clang crashes on Assertion `NextLocalOffset + Length + 1 > NextLocalOffset && NextLocalOffset + Length + 1 <= CurrentLoadedOffset && "Ran out of source locations!"' failed. Dec 21, 2022
@AaronBallman AaronBallman added the duplicate Resolved as duplicate label Jul 11, 2023
@AaronBallman
Copy link
Collaborator

This is a duplicate of #23843

@AaronBallman AaronBallman closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla c++ clang:frontend Language frontend issues, e.g. anything involving "Sema" crash Prefer [crash-on-valid] or [crash-on-invalid] duplicate Resolved as duplicate
Projects
None yet
Development

No branches or pull requests

5 participants