Skip to content

Instantly share code, notes, and snippets.

@Frityet
Created May 12, 2023 05:46
Show Gist options
  • Save Frityet/a49e1a15dcbb086e0468bc2328ed9b1d to your computer and use it in GitHub Desktop.
Save Frityet/a49e1a15dcbb086e0468bc2328ed9b1d to your computer and use it in GitHub Desktop.
=================================================================
==59783==ERROR: AddressSanitizer: heap-use-after-free on address 0x60c000001660 at pc 0x000106f6bcab bp 0x7ff7b93672f0 sp 0x7ff7b93672e8
READ of size 1 at 0x60c000001660 thread T0
#0 0x106f6bcaa in std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::operator=[abi:v160003](std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&) string:1024
#1 0x106f6ad2c in ModulePragmaHandler::HandlePragma(clang::Preprocessor&, clang::PragmaIntroducer, clang::Token&) UAFTest.cpp:46
#2 0x10c80e716 in clang::Preprocessor::HandlePragmaDirective(clang::PragmaIntroducer)+0x56 (libclang-cpp.dylib:x86_64+0x1b9716) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#3 0x10c7d8dd7 in clang::Preprocessor::HandleDirective(clang::Token&)+0x867 (libclang-cpp.dylib:x86_64+0x183dd7) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#4 0x10c78f939 in clang::Lexer::LexTokenInternal(clang::Token&, bool)+0x2439 (libclang-cpp.dylib:x86_64+0x13a939) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#5 0x10c8279b9 in clang::Preprocessor::Lex(clang::Token&)+0xb9 (libclang-cpp.dylib:x86_64+0x1d29b9) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#6 0x10c827e3f in clang::Preprocessor::Lex(clang::Token&)+0x53f (libclang-cpp.dylib:x86_64+0x1d2e3f) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#7 0x10c98466e in clang::Parser::ExpectAndConsumeSemi(unsigned int, llvm::StringRef)+0x25e (libclang-cpp.dylib:x86_64+0x32f66e) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#8 0x10c857896 in clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::ParsedAttributes&, clang::SourceLocation*, clang::Parser::ForRangeInit*)+0x1746 (libclang-cpp.dylib:x86_64+0x202896) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#9 0x10c855471 in clang::Parser::ParseSimpleDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributes&, clang::ParsedAttributes&, bool, clang::Parser::ForRangeInit*, clang::SourceLocation*)+0x3a1 (libclang-cpp.dylib:x86_64+0x200471) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#10 0x10c853f55 in clang::Parser::ParseDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::SourceLocation*)+0x385 (libclang-cpp.dylib:x86_64+0x1fef55) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#11 0x10c98a8af in clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*)+0x79f (libclang-cpp.dylib:x86_64+0x3358af) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#12 0x10c987979 in clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&)+0x6c9 (libclang-cpp.dylib:x86_64+0x332979) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#13 0x10c832da9 in clang::ParseAST(clang::Sema&, bool, bool)+0x1f9 (libclang-cpp.dylib:x86_64+0x1ddda9) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#14 0x10e95febc in clang::FrontendAction::Execute()+0x4c (libclang-cpp.dylib:x86_64+0x230aebc) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#15 0x10e8ce9a7 in clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)+0x2a7 (libclang-cpp.dylib:x86_64+0x22799a7) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#16 0x10e9b2997 in clang::ExecuteCompilerInvocation(clang::CompilerInstance*)+0x217 (libclang-cpp.dylib:x86_64+0x235d997) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#17 0x106b9d775 in cc1_main(llvm::ArrayRef<char const*>, char const*, void*)+0x9e5 (clang-16:x86_64+0x100009775) (BuildId: d0ed8cfb53b43e58b547f97f7b1a649332000000200000000100000000000d00)
#18 0x106b9aa7b in ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&)+0x1bb (clang-16:x86_64+0x100006a7b) (BuildId: d0ed8cfb53b43e58b547f97f7b1a649332000000200000000100000000000d00)
#19 0x10e4c61f6 in void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::__1::optional<llvm::StringRef> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, bool*) const::$_0>(long)+0x16 (libclang-cpp.dylib:x86_64+0x1e711f6) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#20 0x119ef7006 in llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>)+0x76 (libLLVM.dylib:x86_64+0x87006) (BuildId: 30a1d2fd4b723a28a4d3950581439d7e32000000200000000100000000000d00)
#21 0x10e4c5bb6 in clang::driver::CC1Command::Execute(llvm::ArrayRef<std::__1::optional<llvm::StringRef> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, bool*) const+0x166 (libclang-cpp.dylib:x86_64+0x1e70bb6) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#22 0x10e47a30a in clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const+0x41a (libclang-cpp.dylib:x86_64+0x1e2530a) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#23 0x10e4a46ae in clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*> >&)+0x15e (libclang-cpp.dylib:x86_64+0x1e4f6ae) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#24 0x106b993e0 in clang_main(int, char**)+0x26d0 (clang-16:x86_64+0x1000053e0) (BuildId: d0ed8cfb53b43e58b547f97f7b1a649332000000200000000100000000000d00)
#25 0x7ff80722a30f in start+0x97f (dyld:x86_64+0xfffffffffff7230f) (BuildId: bb7a09708c623dcea7a25cec9c501f1132000000200000000100000000010d00)
0x60c000001660 is located 96 bytes inside of 120-byte region [0x60c000001600,0x60c000001678)
freed by thread T0 here:
#0 0x10710a4ad in wrap__ZdlPv+0x7d (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0xef4ad) (BuildId: 82c86d291e6b3a8ca84f852cd4ad0c192400000010000000000a0a0000030d00)
#1 0x10e959b75 in clang::FrontendAction::CreateWrappedASTConsumer(clang::CompilerInstance&, llvm::StringRef)+0x575 (libclang-cpp.dylib:x86_64+0x2304b75) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#2 0x10e95cee5 in clang::FrontendAction::BeginSourceFile(clang::CompilerInstance&, clang::FrontendInputFile const&)+0x3025 (libclang-cpp.dylib:x86_64+0x2307ee5) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#3 0x10e8ce998 in clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)+0x298 (libclang-cpp.dylib:x86_64+0x2279998) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#4 0x10e9b2997 in clang::ExecuteCompilerInvocation(clang::CompilerInstance*)+0x217 (libclang-cpp.dylib:x86_64+0x235d997) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#5 0x106b9d775 in cc1_main(llvm::ArrayRef<char const*>, char const*, void*)+0x9e5 (clang-16:x86_64+0x100009775) (BuildId: d0ed8cfb53b43e58b547f97f7b1a649332000000200000000100000000000d00)
#6 0x106b9aa7b in ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&)+0x1bb (clang-16:x86_64+0x100006a7b) (BuildId: d0ed8cfb53b43e58b547f97f7b1a649332000000200000000100000000000d00)
#7 0x10e4c61f6 in void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::__1::optional<llvm::StringRef> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, bool*) const::$_0>(long)+0x16 (libclang-cpp.dylib:x86_64+0x1e711f6) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#8 0x119ef7006 in llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>)+0x76 (libLLVM.dylib:x86_64+0x87006) (BuildId: 30a1d2fd4b723a28a4d3950581439d7e32000000200000000100000000000d00)
#9 0x10e4c5bb6 in clang::driver::CC1Command::Execute(llvm::ArrayRef<std::__1::optional<llvm::StringRef> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, bool*) const+0x166 (libclang-cpp.dylib:x86_64+0x1e70bb6) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#10 0x10e47a30a in clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const+0x41a (libclang-cpp.dylib:x86_64+0x1e2530a) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#11 0x10e4a46ae in clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*> >&)+0x15e (libclang-cpp.dylib:x86_64+0x1e4f6ae) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#12 0x106b993e0 in clang_main(int, char**)+0x26d0 (clang-16:x86_64+0x1000053e0) (BuildId: d0ed8cfb53b43e58b547f97f7b1a649332000000200000000100000000000d00)
#13 0x7ff80722a30f in start+0x97f (dyld:x86_64+0xfffffffffff7230f) (BuildId: bb7a09708c623dcea7a25cec9c501f1132000000200000000100000000010d00)
previously allocated by thread T0 here:
#0 0x10710a08d in wrap__Znwm+0x7d (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0xef08d) (BuildId: 82c86d291e6b3a8ca84f852cd4ad0c192400000010000000000a0a0000030d00)
#1 0x106f69f1e in llvm::Registry<clang::PluginASTAction>::Add<LPlugin>::CtorFn() Registry.h:118
#2 0x10e95992f in clang::FrontendAction::CreateWrappedASTConsumer(clang::CompilerInstance&, llvm::StringRef)+0x32f (libclang-cpp.dylib:x86_64+0x230492f) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#3 0x10e95cee5 in clang::FrontendAction::BeginSourceFile(clang::CompilerInstance&, clang::FrontendInputFile const&)+0x3025 (libclang-cpp.dylib:x86_64+0x2307ee5) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#4 0x10e8ce998 in clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)+0x298 (libclang-cpp.dylib:x86_64+0x2279998) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#5 0x10e9b2997 in clang::ExecuteCompilerInvocation(clang::CompilerInstance*)+0x217 (libclang-cpp.dylib:x86_64+0x235d997) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#6 0x106b9d775 in cc1_main(llvm::ArrayRef<char const*>, char const*, void*)+0x9e5 (clang-16:x86_64+0x100009775) (BuildId: d0ed8cfb53b43e58b547f97f7b1a649332000000200000000100000000000d00)
#7 0x106b9aa7b in ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&)+0x1bb (clang-16:x86_64+0x100006a7b) (BuildId: d0ed8cfb53b43e58b547f97f7b1a649332000000200000000100000000000d00)
#8 0x10e4c61f6 in void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::__1::optional<llvm::StringRef> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, bool*) const::$_0>(long)+0x16 (libclang-cpp.dylib:x86_64+0x1e711f6) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#9 0x119ef7006 in llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>)+0x76 (libLLVM.dylib:x86_64+0x87006) (BuildId: 30a1d2fd4b723a28a4d3950581439d7e32000000200000000100000000000d00)
#10 0x10e4c5bb6 in clang::driver::CC1Command::Execute(llvm::ArrayRef<std::__1::optional<llvm::StringRef> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, bool*) const+0x166 (libclang-cpp.dylib:x86_64+0x1e70bb6) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#11 0x10e47a30a in clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const+0x41a (libclang-cpp.dylib:x86_64+0x1e2530a) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#12 0x10e4a46ae in clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*> >&)+0x15e (libclang-cpp.dylib:x86_64+0x1e4f6ae) (BuildId: 74ad394874763760b74e808d09ca160c32000000200000000100000000000d00)
#13 0x106b993e0 in clang_main(int, char**)+0x26d0 (clang-16:x86_64+0x1000053e0) (BuildId: d0ed8cfb53b43e58b547f97f7b1a649332000000200000000100000000000d00)
#14 0x7ff80722a30f in start+0x97f (dyld:x86_64+0xfffffffffff7230f) (BuildId: bb7a09708c623dcea7a25cec9c501f1132000000200000000100000000010d00)
SUMMARY: AddressSanitizer: heap-use-after-free string:1024 in std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::operator=[abi:v160003](std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&)
Shadow bytes around the buggy address:
0x60c000001380: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
0x60c000001400: fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa
0x60c000001480: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa
0x60c000001500: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
0x60c000001580: fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa fa
=>0x60c000001600: fd fd fd fd fd fd fd fd fd fd fd fd[fd]fd fd fa
0x60c000001680: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
0x60c000001700: 00 00 00 00 00 00 00 fa fa fa fa fa fa fa fa fa
0x60c000001780: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa
0x60c000001800: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
0x60c000001880: fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==59783==ABORTING
PLEASE submit a bug report to https://github.com/Homebrew/homebrew-core/issues and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang -c -fplugin=./libuaftest.so -Xclang -add-plugin -Xclang lua -std=c2x -Wall -Wno-unknown-pragmas -Werror -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-unused-variable -I/usr/local/include/lua Test.c -o Test.o
1. Test.c:5:2: current parser token 'pragma'
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 libLLVM.dylib 0x0000000119fdcd7b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1 libLLVM.dylib 0x0000000119fdc117 llvm::sys::CleanupOnSignal(unsigned long) + 199
2 libLLVM.dylib 0x000000011e5ffe35 (anonymous namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long) + 53
3 libLLVM.dylib 0x000000011e5ffefe CrashRecoverySignalHandler(int) + 94
4 libsystem_platform.dylib 0x00007ff807587c1d _sigtramp + 29
5 libsystem_platform.dylib 0x00007ff7b93661a8 _sigtramp + 18446744072398693800
6 libsystem_c.dylib 0x00007ff8074a6ca5 abort + 123
7 libclang_rt.asan_osx_dynamic.dylib 0x000000010711f716 __sanitizer::Abort() + 70
8 libclang_rt.asan_osx_dynamic.dylib 0x000000010711ee74 __sanitizer::Die() + 196
9 libclang_rt.asan_osx_dynamic.dylib 0x00000001071038ba __asan::ScopedInErrorReport::~ScopedInErrorReport() + 1178
10 libclang_rt.asan_osx_dynamic.dylib 0x0000000107102b6d __asan::ReportGenericError(unsigned long, unsigned long, unsigned long, unsigned long, bool, unsigned long, unsigned int, bool) + 1773
11 libclang_rt.asan_osx_dynamic.dylib 0x0000000107103cc8 __asan_report_load1 + 40
12 libuaftest.so 0x0000000106f6bcab std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::operator=[abi:v160003](std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>&&) + 171
13 libuaftest.so 0x0000000106f6ad2d ModulePragmaHandler::HandlePragma(clang::Preprocessor&, clang::PragmaIntroducer, clang::Token&) + 925
14 libclang-cpp.dylib 0x000000010c80e717 clang::Preprocessor::HandlePragmaDirective(clang::PragmaIntroducer) + 87
15 libclang-cpp.dylib 0x000000010c7d8dd8 clang::Preprocessor::HandleDirective(clang::Token&) + 2152
16 libclang-cpp.dylib 0x000000010c78f93a clang::Lexer::LexTokenInternal(clang::Token&, bool) + 9274
17 libclang-cpp.dylib 0x000000010c8279ba clang::Preprocessor::Lex(clang::Token&) + 186
18 libclang-cpp.dylib 0x000000010c827e40 clang::Preprocessor::Lex(clang::Token&) + 1344
19 libclang-cpp.dylib 0x000000010c98466f clang::Parser::ExpectAndConsumeSemi(unsigned int, llvm::StringRef) + 607
20 libclang-cpp.dylib 0x000000010c857897 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::ParsedAttributes&, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 5959
21 libclang-cpp.dylib 0x000000010c855472 clang::Parser::ParseSimpleDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributes&, clang::ParsedAttributes&, bool, clang::Parser::ForRangeInit*, clang::SourceLocation*) + 930
22 libclang-cpp.dylib 0x000000010c853f56 clang::Parser::ParseDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::SourceLocation*) + 902
23 libclang-cpp.dylib 0x000000010c98a8b0 clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) + 1952
24 libclang-cpp.dylib 0x000000010c98797a clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) + 1738
25 libclang-cpp.dylib 0x000000010c832daa clang::ParseAST(clang::Sema&, bool, bool) + 506
26 libclang-cpp.dylib 0x000000010e95febd clang::FrontendAction::Execute() + 77
27 libclang-cpp.dylib 0x000000010e8ce9a8 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 680
28 libclang-cpp.dylib 0x000000010e9b2998 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 536
29 clang-16 0x0000000106b9d776 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 2534
30 clang-16 0x0000000106b9aa7c ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) + 444
31 libclang-cpp.dylib 0x000000010e4c61f7 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::__1::optional<llvm::StringRef>>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*, bool*) const::$_0>(long) + 23
32 libLLVM.dylib 0x0000000119ef7007 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) + 119
33 libclang-cpp.dylib 0x000000010e4c5bb7 clang::driver::CC1Command::Execute(llvm::ArrayRef<std::__1::optional<llvm::StringRef>>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*, bool*) const + 359
34 libclang-cpp.dylib 0x000000010e47a30b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const + 1051
35 libclang-cpp.dylib 0x000000010e4a46af clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*>>&) + 351
36 clang-16 0x0000000106b993e1 clang_main(int, char**) + 9937
37 dyld 0x00007ff80722a310 start + 2432
clang-16: error: clang frontend command failed with exit code 134 (use -v to see invocation)
Homebrew clang version 16.0.3
Target: x86_64-apple-darwin22.2.0
Thread model: posix
InstalledDir: /usr/local/opt/llvm/bin
clang-16: error: unable to execute command: Abort trap: 6
clang-16: note: diagnostic msg: Error generating preprocessed source(s).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment