ilovepi wrote:

Not entirely sure if this is the same issue, but we're seeing a crash on our 
Mac builders with this patch.

Error Message:
```
FAILED: CMakeFiles/clang_rt.builtins_i386_osx.dir/emutls.c.o 
/Volumes/Work/s/w/ir/x/w/llvm_build/./bin/clang 
--target=x86_64-apple-darwin25.1.0 
--sysroot=/Volumes/Work/s/w/ir/cache/macos_sdk/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk
  
-I/Volumes/Work/s/w/ir/x/w/llvm-llvm-project/compiler-rt/lib/builtins/../../../third-party/siphash/include
 -O3 -DNDEBUG -arch i386 -isysroot 
/Volumes/Work/s/w/ir/cache/macos_sdk/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk
 -isysroot 
/Volumes/Work/s/w/ir/cache/macos_sdk/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk
 -mmacosx-version-min=10.7 -fPIC -O3 -fvisibility=hidden -DVISIBILITY_HIDDEN 
-Wall -fomit-frame-pointer -Werror=format-nonliteral -DDONT_DEFINE_EPRINTF 
-arch i386 -MD -MT CMakeFiles/clang_rt.builtins_i386_osx.dir/emutls.c.o -MF 
CMakeFiles/clang_rt.builtins_i386_osx.dir/emutls.c.o.d -o 
CMakeFiles/clang_rt.builtins_i386_osx.dir/emutls.c.o -c 
/Volumes/Work/s/w/ir/x/w/llvm-llvm-project/compiler-rt/lib/builtins/emutls.c
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: /Volumes/Work/s/w/ir/x/w/llvm_build/./bin/clang 
--target=x86_64-apple-darwin25.1.0 
--sysroot=/Volumes/Work/s/w/ir/cache/macos_sdk/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk
 
-I/Volumes/Work/s/w/ir/x/w/llvm-llvm-project/compiler-rt/lib/builtins/../../../third-party/siphash/include
 -O3 -DNDEBUG -arch i386 -isysroot 
/Volumes/Work/s/w/ir/cache/macos_sdk/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk
 -isysroot 
/Volumes/Work/s/w/ir/cache/macos_sdk/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk
 -mmacosx-version-min=10.7 -fPIC -O3 -fvisibility=hidden -DVISIBILITY_HIDDEN 
-Wall -fomit-frame-pointer -Werror=format-nonliteral -DDONT_DEFINE_EPRINTF 
-arch i386 -MD -MT CMakeFiles/clang_rt.builtins_i386_osx.dir/emutls.c.o -MF 
CMakeFiles/clang_rt.builtins_i386_osx.dir/emutls.c.o.d -o 
CMakeFiles/clang_rt.builtins_i386_osx.dir/emutls.c.o -c 
/Volumes/Work/s/w/ir/x/w/llvm-llvm-project/compiler-rt/lib/builtins/emutls.c
1.      
/Volumes/Work/s/w/ir/cache/macos_sdk/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/pthread/sched.h:35:1:
 current parser token 'struct'
 #0 0x0000000107ee3c18 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x101d03c18)
 #1 0x0000000107ee163f llvm::sys::RunSignalHandlers() 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x101d0163f)
 #2 0x0000000107ee3176 llvm::sys::CleanupOnSignal(unsigned long) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x101d03176)
 #3 0x0000000107e5c9fe CrashRecoverySignalHandler(int) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x101c7c9fe)
 #4 0x00007ff80dd6637d (/usr/lib/system/libsystem_platform.dylib+0x7ff802bc137d)
 #5 0x000e7dee00000001
 #6 0x000000010b271643 clang::Lexer::Lex(clang::Token&) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x105091643)
 #7 0x000000010b2e7f7d clang::Preprocessor::Lex(clang::Token&) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x105107f7d)
 #8 0x000000010b2d67b7 clang::Preprocessor::Handle_Pragma(clang::Token&) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x1050f67b7)
 #9 0x000000010b2c7a4c 
clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, 
clang::MacroDefinition const&) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x1050e7a4c)
#10 0x000000010b2e7bca clang::Preprocessor::HandleIdentifier(clang::Token&) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x105107bca)
#11 0x000000010b26e215 clang::Lexer::LexIdentifierContinue(clang::Token&, char 
const*) (/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x10508e215)
#12 0x000000010b274ee9 clang::Lexer::LexTokenInternal(clang::Token&, bool) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x105094ee9)
#13 0x000000010b271643 clang::Lexer::Lex(clang::Token&) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x105091643)
#14 0x000000010b2e7f7d clang::Preprocessor::Lex(clang::Token&) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x105107f7d)
#15 0x0000000109ff5d2c clang::Parser::ExpectAndConsumeSemi(unsigned int, 
llvm::StringRef) (/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x103e15d2c)
#16 0x0000000109fb8234 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, 
clang::DeclaratorContext, clang::ParsedAttributes&, 
clang::Parser::ParsedTemplateInfo&, clang::SourceLocation*, 
clang::Parser::ForRangeInit*) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x103dd8234)
#17 0x0000000109ffbf8b 
clang::Parser::ParseDeclOrFunctionDefInternal(clang::ParsedAttributes&, 
clang::ParsedAttributes&, clang::ParsingDeclSpec&, clang::AccessSpecifier) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x103e1bf8b)
#18 0x0000000109ffb856 
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, 
clang::ParsedAttributes&, clang::ParsingDeclSpec*, clang::AccessSpecifier) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x103e1b856)
#19 0x0000000109ffa018 
clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, 
clang::ParsedAttributes&, clang::ParsingDeclSpec*) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x103e1a018)
#20 0x0000000109ff8521 
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, 
clang::Sema::ModuleImportState&) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x103e18521)
#21 0x0000000109f0a4be clang::ParseAST(clang::Sema&, bool, bool) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x103d2a4be)
#22 0x0000000108b7e1ba clang::FrontendAction::Execute() 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x10299e1ba)
#23 0x0000000108aed7fd 
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x10290d7fd)
#24 0x0000000108c7becb 
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x102a9becb)
#25 0x0000000106214215 cc1_main(llvm::ArrayRef<char const*>, char const*, 
void*) (/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x100034215)
#26 0x00000001062110b7 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, 
llvm::ToolContext const&, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x1000310b7)
#27 0x000000010621342c int llvm::function_ref<int (llvm::SmallVectorImpl<char 
const*>&)>::callback_fn<clang_main(int, char**, llvm::ToolContext 
const&)::$_0>(long, llvm::SmallVectorImpl<char const*>&) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x10003342c)
#28 0x000000010894c86e void llvm::function_ref<void 
()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::__2::optional<llvm::StringRef>>,
 std::__2::basic_string<char, std::__2::char_traits<char>, 
std::__2::allocator<char>>*, bool*) const::$_0>(long) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x10276c86e)
#29 0x0000000107e5c73e 
llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x101c7c73e)
#30 0x000000010894bbcf 
clang::driver::CC1Command::Execute(llvm::ArrayRef<std::__2::optional<llvm::StringRef>>,
 std::__2::basic_string<char, std::__2::char_traits<char>, 
std::__2::allocator<char>>*, bool*) const 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x10276bbcf)
#31 0x000000010890bff6 
clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, 
clang::driver::Command const*&, bool) const 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x10272bff6)
#32 0x000000010890c24f 
clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, 
llvm::SmallVectorImpl<std::__2::pair<int, clang::driver::Command const*>>&, 
bool) const (/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x10272c24f)
#33 0x000000010892bbb0 
clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, 
llvm::SmallVectorImpl<std::__2::pair<int, clang::driver::Command const*>>&) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x10274bbb0)
#34 0x00000001062107f2 clang_main(int, char**, llvm::ToolContext const&) 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x1000307f2)
#35 0x0000000106220150 main 
(/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang-22+0x100040150)
#36 0x00007ff80d985781
clang: error: clang frontend command failed with exit code 139 (use -v to see 
invocation)
Fuchsia clang version 22.0.0git (https://llvm.googlesource.com/llvm-project 
d2e62d902438bb5860f2376e818d797bf20daa7d)
Target: i386-apple-darwin25.1.0
Thread model: posix
InstalledDir: /Volumes/Work/s/w/ir/x/w/llvm_build/bin
Build config: +assertions
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: 
/Volumes/Work/s/w/ir/x/w/llvm_build/clang-crashreports/emutls-034ae5.c
clang: note: diagnostic msg: 
/Volumes/Work/s/w/ir/x/w/llvm_build/clang-crashreports/emutls-034ae5.sh
clang: note: diagnostic msg: Crash backtrace is located in
clang: note: diagnostic msg: 
/Volumes/Work/s/w/ir/x/t/Library/Logs/DiagnosticReports/clang-22_<YYYY-MM-DD-HHMMSS>_<hostname>.crash
clang: note: diagnostic msg: (choose the .crash file that corresponds to your 
crash)
clang: note: diagnostic msg: 

********************
```

Bot: 
https://ci.chromium.org/ui/p/fuchsia/builders/toolchain.ci/clang-mac-arm64/b8695039956773730673/overview

Crash reproducer:  
https://storage.cloud.google.com/fuchsia-artifacts/builds/8695039956773730673/emutls-ada33d.tar.gz

https://github.com/llvm/llvm-project/pull/107168
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to