-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Open
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"crashPrefer [crash-on-valid] or [crash-on-invalid]Prefer [crash-on-valid] or [crash-on-invalid]needs-reductionLarge reproducer that should be reduced into a simpler formLarge reproducer that should be reduced into a simpler form
Description
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: /usr/local/llvm-latest/bin/clang++ -fPIC -fdiagnostics-show-option -fsigned-char -std=c++20 -mtune=generic -g --gcc-install-dir=/usr/lib/gcc/x86_64-linux-gnu/13 -Wall -Wextra -Weverything -Wno-c++98-compat-pedantic -Wno-cast-align -Wno-date-time -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-documentation -Wno-double-promotion -Wno-exit-time-destructors -Wno-global-constructors -Wno-gnu-zero-variadic-macro-arguments -Wno-missing-braces -Wno-missing-noreturn -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-nested-anon-types -Wno-padded -Wno-redundant-parens -Wno-reserved-id-macro -Wno-sign-conversion -Wno-switch-enum -Wno-undefined-reinterpret-cast -Wno-unknown-pragmas -Wno-unused-member-function -Wno-unused-parameter -Wno-unused-template -Wno-used-but-marked-unused -Wno-zero-length-array -Wno-zero-as-null-pointer-constant -Wno- -Wno-c++2a-compat -Wno- -Wno-extra-semi-stmt -Wno-return-std-move -Wno- -Wno-enum-enum-conversion -Wno-suggest-destructor-override -Wno- -Wno-suggest-override -Wno-reserved-identifier -Wno-null-pointer-subtraction -Wno-unaligned-access -Wno-unsafe-buffer-usage -Wno-ctad-maybe-unsupported -Wno-switch-default -Wno-covered-switch-default -Wno-float-equal -Wno-weak-vtables -O3 -DCAT_CPP20_OPERATORS -DCAT_PSUBJECT_FOREACH -DCAT_POWNER_FOREACH -DCAT_GLIST_ITERATORS -DCAT_SUPPORT_GCM_256 -DCAT_ABSL_BACKTRACE=1 -DCAPTURESTATION -DRELEASE -DTAGGED -DVMS_BRANCH=2026 -DENT_BRANCH=8 -DPRODUCT=everything -DPLATFORM=Ubuntu_24_04 -DPLATFORM_Ubuntu_24_04=1 -DARCH=x86_64 -DARCH_x86_64=1 -DWORDSIZE64 -DBUILD_VERSION=trunk -D_FILE_OFFSET_BITS=64 -DBUILD_CORELIB -DLIB_UNITTEST_ASSETS_DIR=\"assets/unittest/core\" -Ibuild_x86_64_tagged -I./ -I../../../pkg/absl/build -isystem ../../../pkg/gsl/include -isystem ../../../pkg/absl/lib -c -fcolor-diagnostics -o build_x86_64_tagged/core_paths.o core_paths.cpp
1. <eof> parser at end of file
2. core_paths.cpp:122:1: parsing function body 'core::Paths::getPathName'
#0 0x00005fc5bcc3f042 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/local/llvm-latest/bin/clang+++0x3c8d042)
#1 0x00005fc5bcc3caec llvm::sys::CleanupOnSignal(unsigned long) (/usr/local/llvm-latest/bin/clang+++0x3c8aaec)
#2 0x00005fc5bcb805f8 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
#3 0x000071e450645330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
#4 0x00005fc5bf9e59b4 clang::(anonymous namespace)::DataflowAnalysis<clang::(anonymous namespace)::LoanPropagationAnalysis, clang::(anonymous namespace)::LoanPropagationLattice, (clang::(anonymous namespace)::Direction)0>::run() LifetimeSafety.cpp:0:0
#5 0x00005fc5bf9e8fb5 clang::runLifetimeSafetyAnalysis(clang::DeclContext const&, clang::CFG const&, clang::AnalysisDeclContext&) (/usr/local/llvm-latest/bin/clang+++0x6a36fb5)
#6 0x00005fc5bf931406 clang::sema::AnalysisBasedWarnings::IssueWarnings(clang::sema::AnalysisBasedWarnings::Policy, clang::sema::FunctionScopeInfo*, clang::Decl const*, clang::QualType) (/usr/local/llvm-latest/bin/clang+++0x697f406)
#7 0x00005fc5bef710fd clang::Sema::PopFunctionScopeInfo(clang::sema::AnalysisBasedWarnings::Policy const*, clang::Decl const*, clang::QualType) (/usr/local/llvm-latest/bin/clang+++0x5fbf0fd)
#8 0x00005fc5bf188bb0 clang::Sema::ActOnFinishFunctionBody(clang::Decl*, clang::Stmt*, bool) (/usr/local/llvm-latest/bin/clang+++0x61d6bb0)
#9 0x00005fc5bef093f5 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) (/usr/local/llvm-latest/bin/clang+++0x5f573f5)
#10 0x00005fc5bedf9427 clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) (/usr/local/llvm-latest/bin/clang+++0x5e47427)
#11 0x00005fc5bee41129 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::ParsedAttributes&, clang::Parser::ParsedTemplateInfo&, clang::SourceLocation*, clang::Parser::ForRangeInit*) (/usr/local/llvm-latest/bin/clang+++0x5e8f129)
#12 0x00005fc5bedf2d31 clang::Parser::ParseDeclOrFunctionDefInternal(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec&, clang::AccessSpecifier) (/usr/local/llvm-latest/bin/clang+++0x5e40d31)
#13 0x00005fc5bedf38d3 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*, clang::AccessSpecifier) (/usr/local/llvm-latest/bin/clang+++0x5e418d3)
#14 0x00005fc5bedfae7d clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) (/usr/local/llvm-latest/bin/clang+++0x5e48e7d)
#15 0x00005fc5bedfc67d clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) (/usr/local/llvm-latest/bin/clang+++0x5e4a67d)
#16 0x00005fc5bedec1fa clang::ParseAST(clang::Sema&, bool, bool) (/usr/local/llvm-latest/bin/clang+++0x5e3a1fa)
#17 0x00005fc5bd8387fe clang::FrontendAction::Execute() (/usr/local/llvm-latest/bin/clang+++0x48867fe)
#18 0x00005fc5bd7b71e3 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/local/llvm-latest/bin/clang+++0x48051e3)
#19 0x00005fc5bd91395b clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/local/llvm-latest/bin/clang+++0x496195b)
#20 0x00005fc5b9e427be cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/local/llvm-latest/bin/clang+++0xe907be)
#21 0x00005fc5b9e3911a ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
#22 0x00005fc5bd58b20d void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const::'lambda'()>(long) Job.cpp:0:0
#23 0x00005fc5bcb80a27 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/usr/local/llvm-latest/bin/clang+++0x3bcea27)
#24 0x00005fc5bd58b901 clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const (.part.0) Job.cpp:0:0
#25 0x00005fc5bd54fc7a clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/usr/local/llvm-latest/bin/clang+++0x459dc7a)
#26 0x00005fc5bd550cf9 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (/usr/local/llvm-latest/bin/clang+++0x459ecf9)
#27 0x00005fc5bd56561c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (/usr/local/llvm-latest/bin/clang+++0x45b361c)
#28 0x00005fc5b9e3df28 clang_main(int, char**, llvm::ToolContext const&) (/usr/local/llvm-latest/bin/clang+++0xe8bf28)
#29 0x00005fc5b9ce46ea main (/usr/local/llvm-latest/bin/clang+++0xd326ea)
#30 0x000071e45062a1ca __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:74:3
#31 0x000071e45062a28b call_init ./csu/../csu/libc-start.c:128:20
#32 0x000071e45062a28b __libc_start_main ./csu/../csu/libc-start.c:347:5
#33 0x00005fc5b9e38b55 _start (/usr/local/llvm-latest/bin/clang+++0xe86b55)
clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 22.0.0git (https://github.com/matthew-f/llvm-project.git 9898c5fb92dca652a56cfdf7e21ada3437cafa56)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Metadata
Metadata
Assignees
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"crashPrefer [crash-on-valid] or [crash-on-invalid]Prefer [crash-on-valid] or [crash-on-invalid]needs-reductionLarge reproducer that should be reduced into a simpler formLarge reproducer that should be reduced into a simpler form