[clang] [RFC][C++20][Modules] Fix crash when function and lambda inside loaded from different modules (PR #104512)

Arthur Eubanks via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 11 15:50:45 PDT 2024


Valentin Clement =?utf-8?b?KOODkOODrOODsw=?=,Kyungwoo Lee <kyulee at meta.com>,Dmitry
 Polukhin <dmitry.polukhin at gmail.com>,Dmitry Polukhin
 <dmitry.polukhin at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/104512 at github.com>


aeubanks wrote:

this is causing a crash with precompiled headers. I can try to reduce, but hopefully the problem is obvious from this assert/stack trace?

```
clang++: ../../llvm/include/llvm/ADT/SmallVector.h:295: const_reference llvm::SmallVectorTemplateCommon<std::unique_ptr<clang::serialization::ModuleFile>>::operator[](size_type) const [T = std::unique_ptr<clang::serialization::ModuleFile>]: Assertion `idx < size()' 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/rel/bin/clang++ -MMD -MF obj/third_party/blink/renderer/core/probe/instrumentation_probes/core_probes_impl.o.d -DDCHECK_ALWAYS_ON=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DCR_XCODE_VERSION=1500 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -DCOMPONENT_BUILD -DCR_LIBCXX_REVISION=6ae6f38d10eda881c16d91932348fc6d4ee98332 -DTEMP_REBUILD_HACK -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DBLINK_CORE_IMPLEMENTATION=1 -DSK_ENABLE_SKSL -DSK_UNTIL_CRBUG_1187654_IS_FIXED -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_WIN_FONTMGR_NO_SIMULATIONS -DSK_DISABLE_LEGACY_INIT_DECODERS -DSK_DISABLE_LEGACY_BACKEND_TEXTURE_FUNCS -DSK_DISABLE_LEGACY_TEXTURE_INFO_FUNCS -DSK_DISABLE_LEGACY_BACKEND_SEMAPHORE_FUNCS -DSK_DISABLE_LEGACY_GRAPHITE_IMAGES -DSK_DISABLE_LEGACY_DAWN_TEXTURE_INFO_FUNCS -DSK_DISABLE_LEGACY_DAWN_BACKEND_TEXTURE_FUNCS -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSKIA_DLL -DSKCMS_API=__attribute__((visibility(\"default\"))) -DSK_BUILD_FOR_MAC -DSK_GANESH -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DSK_GL -DSK_GRAPHITE -DSK_DAWN -DSK_METAL -DCHROMIUM -DLIBYUV_DISABLE_NEON -DLIBYUV_DISABLE_SVE -DLIBYUV_DISABLE_SME -DLIBYUV_DISABLE_LSX -DLIBYUV_DISABLE_LASX -DBLINK_IMPLEMENTATION=1 -DINSIDE_BLINK -DABSL_CONSUME_DLL -DABSL_FLAGS_STRIP_NAMES=0 -DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.128/include/cxx.h\" -DBORINGSSL_SHARED_LIBRARY -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0 -DHAVE_PTHREAD -DPROTOBUF_USE_DLLS -DWEBRTC_ENABLE_SYMBOL_EXPORT -DWEBRTC_ENABLE_AVX2 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_MAC -DABSL_ALLOCATOR_NOTHROW=1 -DLOGGING_INSIDE_WEBRTC -DWGPU_SHARED_LIBRARY -DUSING_V8_SHARED -DUSING_V8_SHARED_PRIVATE -DV8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT=0 -DV8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT=0 -DV8_PROMISE_INTERNAL_FIELD_COUNT=0 -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_SHARED_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_ENABLE_SANDBOX -DV8_DEPRECATION_WARNINGS -DV8_USE_PERFETTO -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_MACOS -DCPPGC_CAGED_HEAP -DCPPGC_YOUNG_GENERATION -DCPPGC_POINTER_COMPRESSION -DCPPGC_ENABLE_LARGER_CAGE -DCPPGC_SLIM_WRITE_BARRIER -DLEVELDB_PLATFORM_CHROMIUM=1 -DLEVELDB_SHARED_LIBRARY -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -DUSE_LIBJPEG_TURBO=1 -DMANGLE_JPEG_NAMES -DWEBP_EXTERN=extern -DUSING_V8_BASE_SHARED -DUSING_V8_PLATFORM_SHARED -DLIBXSLT_STATIC -I../.. -Igen -I../../buildtools/third_party/libc++ -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../third_party/skia -Igen/third_party/skia -I../../third_party/wuffs/src/release/c -Igen/third_party/dawn/include -I../../third_party/dawn/include -I../../third_party/khronos -I../../gpu -I../../net/third_party/quiche/overrides -I../../net/third_party/quiche/src/quiche/common/platform/default -I../../net/third_party/quiche/src -I../../third_party/libyuv/include -I../../base/allocator/partition_allocator/src -Igen/base/allocator/partition_allocator/src -I../../third_party/abseil-cpp -I../../third_party/boringssl/src/include -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/ipcz/include -I../../third_party/ced/src -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -Igen/net/third_party/quiche/src -I../../third_party/webrtc_overrides -I../../third_party/webrtc -Igen/third_party/webrtc -I../../v8/include -I../../third_party/libwebm/source -I../../third_party/angle/include -I../../third_party/mesa_headers -I../../third_party/leveldatabase -I../../third_party/leveldatabase/src -I../../third_party/leveldatabase/src/include -I../../third_party/crashpad/crashpad -I../../third_party/crashpad/crashpad/compat/mac -I../../third_party/crashpad/crashpad/compat/non_win -I../../third_party/zlib -I../../third_party/libaom/source/libaom -I../../third_party/libaom/source/config/linux/x64 -I../../third_party/libjpeg_turbo -I../../third_party/libpng -I../../third_party/libwebp/src/src -I../../third_party/ots/src/include -Igen/v8/include -I../../third_party/fp16/src/include -I../../third_party/libxml/src/include -I../../third_party/libxml/mac/include -I../../third_party/libxslt/src -Wall -Wextra -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wunguarded-availability -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-cast-function-type -Wno-deprecated-this-capture -Wno-vla-extension -Wno-thread-safety-reference-return -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -femit-dwarf-unwind=no-compact-unwind -fcolor-diagnostics -fmerge-all-constants -fno-sized-deallocation -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -mllvm -split-threshold-for-reg-with-hint=0 -ffp-contract=off -fcomplete-member-pointers --target=x86_64-apple-macos -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -ffile-compilation-dir=. -no-canonical-prefixes -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -isysroot ../../build/mac_files/xcode_binaries/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -mmacos-version-min=11.0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wexit-time-destructors -Wglobal-constructors -O2 -fno-math-errno -gdwarf-4 -g1 -gdwarf-aranges -Wconversion -Wno-float-conversion -Wno-sign-conversion -Wno-implicit-float-conversion -Wno-implicit-int-conversion -DPROTOBUF_ALLOW_DEPRECATED=1 -DLIBXML_STATIC= -Wno-invalid-offsetof -Wenum-compare-conditional -Wno-c++11-narrowing-const-reference -Wno-missing-template-arg-list-after-template-kw -Wno-dangling-assignment-gsl -std=c++20 -Wno-trigraphs -fno-exceptions -fno-rtti -nostdinc++ -isystem../../third_party/libc++/src/include -isystem../../third_party/libc++abi/src/include -fvisibility-inlines-hidden -include obj/third_party/blink/renderer/core/probe/instrumentation_probes/precompile_core.h-cc -c gen/third_party/blink/renderer/core/core_probes_impl.cc -o obj/third_party/blink/renderer/core/probe/instrumentation_probes/core_probes_impl.o
1.	../../third_party/blink/renderer/core/layout/layout_box.h:1471:2: current parser token ';'
2.	../../third_party/blink/renderer/core/layout/layout_box.h:51:1: parsing namespace 'blink'
3.	../../third_party/blink/renderer/core/layout/layout_box.h:205:1: parsing struct/union/class body 'blink::LayoutBox'
 #0 0x0000558776cc7588 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../llvm/lib/Support/Unix/Signals.inc:723:13
 #1 0x0000558776cc51ce llvm::sys::RunSignalHandlers() /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../llvm/lib/Support/Signals.cpp:106:18
 #2 0x0000558776c42cd6 HandleCrash /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../llvm/lib/Support/CrashRecoveryContext.cpp:73:5
 #3 0x0000558776c42cd6 CrashRecoverySignalHandler(int) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../llvm/lib/Support/CrashRecoveryContext.cpp:390:51
 #4 0x00007fa1cc0591a0 (/lib/x86_64-linux-gnu/libc.so.6+0x3d1a0)
 #5 0x00007fa1cc0a70ec __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
 #6 0x00007fa1cc059102 gsignal ./signal/../sysdeps/posix/raise.c:27:6
 #7 0x00007fa1cc0424f2 abort ./stdlib/abort.c:81:7
 #8 0x00007fa1cc042415 _nl_load_domain ./intl/loadmsgcat.c:1177:9
 #9 0x00007fa1cc051d32 (/lib/x86_64-linux-gnu/libc.so.6+0x35d32)
#10 0x0000558778c53b02 translateGlobalDeclIDToIndex /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Serialization/ASTReader.cpp:7916:5
#11 0x0000558778c53b02 clang::ASTReader::GetDecl(clang::GlobalDeclID) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Serialization/ASTReader.cpp:7953:20
#12 0x0000558778c6605c clang::ASTReader::finishPendingActions() /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Serialization/ASTReader.cpp:9933:18
#13 0x0000558778c6a39b clang::ASTReader::FinishedDeserializing() /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Serialization/ASTReader.cpp:10406:3
#14 0x00005587776c8c9a clang::DeclContext::LoadLexicalDeclsFromExternalStorage() const /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/AST/DeclBase.cpp:1589:1
#15 0x00005587776c8f52 clang::DeclContext::decls_begin() const /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/AST/DeclBase.cpp:1625:24
#16 0x00005587776993fd SkipToNextDecl /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/include/clang/AST/DeclBase.h:2380:14
#17 0x00005587776993fd specific_decl_iterator /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/include/clang/AST/DeclBase.h:2405:7
#18 0x00005587776993fd method_begin /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/include/clang/AST/DeclCXX.h:669:12
#19 0x00005587776993fd methods /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/include/clang/AST/DeclCXX.h:663:25
#20 0x00005587776993fd (anonymous namespace)::FinalOverriderCollector::Collect(clang::CXXRecordDecl const*, bool, clang::CXXRecordDecl const*, clang::CXXFinalOverriderMap&) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/AST/CXXInheritance.cpp:568:22
#21 0x0000558777699162 (anonymous namespace)::FinalOverriderCollector::Collect(clang::CXXRecordDecl const*, bool, clang::CXXRecordDecl const*, clang::CXXFinalOverriderMap&) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/AST/CXXInheritance.cpp:530:9
#22 0x0000558777699162 (anonymous namespace)::FinalOverriderCollector::Collect(clang::CXXRecordDecl const*, bool, clang::CXXRecordDecl const*, clang::CXXFinalOverriderMap&) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/AST/CXXInheritance.cpp:530:9
#23 0x000055877769857f size /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../llvm/include/llvm/ADT/SmallVector.h:78:32
#24 0x000055877769857f end /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../llvm/include/llvm/ADT/SmallVector.h:269:37
#25 0x000055877769857f end /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../llvm/include/llvm/ADT/MapVector.h:71:34
#26 0x000055877769857f clang::CXXRecordDecl::getFinalOverriders(clang::CXXFinalOverriderMap&) const /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/AST/CXXInheritance.cpp:649:17
#27 0x00005587776d6006 hasPureVirtualFinalOverrider(clang::CXXRecordDecl const&, clang::CXXFinalOverriderMap const*) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/AST/DeclCXX.cpp:2118:12
#28 0x00005587776d5c9a clang::CXXRecordDecl::completeDefinition(clang::CXXFinalOverriderMap*) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/AST/DeclCXX.cpp:2144:7
#29 0x00005587782e1189 clang::Sema::ActOnFields(clang::Scope*, clang::SourceLocation, clang::Decl*, llvm::ArrayRef<clang::Decl*>, clang::SourceLocation, clang::SourceLocation, clang::ParsedAttributesView const&) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Sema/SemaDecl.cpp:0:15
#30 0x00005587783f0a96 clang::Sema::ActOnFinishCXXMemberSpecification(clang::Scope*, clang::SourceLocation, clang::Decl*, clang::SourceLocation, clang::SourceLocation, clang::ParsedAttributesView const&) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Sema/SemaDeclCXX.cpp:10463:3
#31 0x0000558777e787c4 clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, clang::SourceLocation, clang::ParsedAttributes&, unsigned int, clang::Decl*) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Parse/ParseDeclCXX.cpp:3966:7
#32 0x0000558777e761eb clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext, clang::ParsedAttributes&) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Parse/ParseDeclCXX.cpp:0:7
#33 0x0000558777e9def5 empty /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../llvm/include/llvm/ADT/SmallVector.h:81:46
#34 0x0000558777e9def5 empty /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/include/clang/Sema/ParsedAttr.h:843:40
#35 0x0000558777e9def5 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo&, clang::AccessSpecifier, clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*, clang::ImplicitTypenameContext) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Parse/ParseDecl.cpp:4701:23
#36 0x0000558777e17858 clang::Parser::ParseDeclOrFunctionDefInternal(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec&, clang::AccessSpecifier) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Parse/Parser.cpp:1153:10
#37 0x0000558777e17486 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*, clang::AccessSpecifier) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Parse/Parser.cpp:1266:12
#38 0x0000558777e163ac clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Parse/Parser.cpp:0:14
#39 0x0000558777e6b87f ~AttributePool /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/include/clang/Sema/ParsedAttr.h:726:22
#40 0x0000558777e6b87f ~ParsedAttributes /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/include/clang/Sema/ParsedAttr.h:958:7
#41 0x0000558777e6b87f clang::Parser::ParseInnerNamespace(llvm::SmallVector<clang::Parser::InnerNamespaceInfo, 4u> const&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Parse/ParseDeclCXX.cpp:273:5
#42 0x0000558777e6aa2d Exit /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/include/clang/Parse/Parser.h:1197:15
#43 0x0000558777e6aa2d clang::Parser::ParseNamespace(clang::DeclaratorContext, clang::SourceLocation&, clang::SourceLocation) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Parse/ParseDeclCXX.cpp:252:18
#44 0x0000558777e976b8 ObjCDeclContextSwitch /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/include/clang/Parse/Parser.h:1093:11
#45 0x0000558777e976b8 clang::Parser::ParseDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::SourceLocation*) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Parse/ParseDecl.cpp:2049:25
#46 0x0000558777e15fbd clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Parse/Parser.cpp:0:0
#47 0x0000558777e144f3 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Parse/Parser.cpp:758:10
#48 0x0000558777e0fe7e clang::ParseAST(clang::Sema&, bool, bool) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Parse/ParseAST.cpp:170:5
#49 0x0000558775ff593f clang::FrontendAction::Execute() /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Frontend/FrontendAction.cpp:1082:10
#50 0x0000558775f62b2d getPtr /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../llvm/include/llvm/Support/Error.h:279:42
#51 0x0000558775f62b2d operator bool /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../llvm/include/llvm/Support/Error.h:242:16
#52 0x0000558775f62b2d clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Frontend/CompilerInstance.cpp:1061:23
#53 0x00005587760ce923 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:280:25
#54 0x00005587756d6435 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/tools/driver/cc1_main.cpp:285:15
#55 0x00005587756e5379 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/tools/driver/driver.cpp:217:12
#56 0x0000558775dbf079 operator() /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Driver/Job.cpp:440:30
#57 0x0000558775dbf079 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::$_0>(long) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../llvm/include/llvm/ADT/STLFunctionalExtras.h:45:12
#58 0x0000558776c42a1e operator() /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../llvm/include/llvm/ADT/STLFunctionalExtras.h:0:12
#59 0x0000558776c42a1e llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../llvm/lib/Support/CrashRecoveryContext.cpp:426:3
#60 0x0000558775dbeef3 clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Driver/Job.cpp:440:7
#61 0x0000558775d7d956 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Driver/Compilation.cpp:199:15
#62 0x0000558775d7dc0e clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Driver/Compilation.cpp:253:13
#63 0x0000558775d9a8bd empty /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../llvm/include/llvm/ADT/SmallVector.h:81:46
#64 0x0000558775d9a8bd clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/lib/Driver/Driver.cpp:1946:23
#65 0x00005587756e4c51 clang_main(int, char**, llvm::ToolContext const&) /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/../../clang/tools/driver/driver.cpp:393:21
#66 0x00005587756e61d7 main /usr/local/google/home/aeubanks/repos/llvm-project/build/rel/gen/clang/tools/driver/clang-driver.cpp:17:10
#67 0x00007fa1cc043b8a __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:74:3
#68 0x00007fa1cc043c45 call_init ./csu/../csu/libc-start.c:128:20
#69 0x00007fa1cc043c45 __libc_start_main ./csu/../csu/libc-start.c:347:5
#70 0x00005587756d4b21 _start (../../../../llvm-project/build/rel/bin/clang+++0x25e8b21)
clang++: error: clang frontend command failed with exit code 134 (use -v to see invocation)
clang version 20.0.0
Target: x86_64-apple-macos
Thread model: posix
InstalledDir: ../../../../llvm-project/build/rel/bin
Build config: +assertions
```

https://github.com/llvm/llvm-project/pull/104512


More information about the cfe-commits mailing list