[clang] [clang] Catch missing format attributes (PR #70024)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 12 04:48:47 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-bootstrap-msan` running on `sanitizer-buildbot5` while building `clang` at step 2 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/164/builds/920

Here is the relevant piece of the build log for the reference:
```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld.lld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld.lld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 83950 tests, 80 workers --
Testing: 
FAIL: Clang :: ARCMT/GC-check.m (131 of 83950)
******************** TEST 'Clang :: ARCMT/GC-check.m' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/lib/clang/19/include -nostdsysteminc -arcmt-action=check -verify -triple x86_64-apple-darwin10 -fobjc-gc-only /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/ARCMT/GC-check.m
+ /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/lib/clang/19/include -nostdsysteminc -arcmt-action=check -verify -triple x86_64-apple-darwin10 -fobjc-gc-only /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/ARCMT/GC-check.m
==2197391==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x555568649bde in clang::Sema::GetMissingFormatAttributes(clang::Stmt*, clang::FunctionDecl const*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Sema/SemaDeclAttr.cpp:5455:11
    #1 0x555568646747 in clang::Sema::DiagnoseMissingFormatAttributes(clang::Stmt*, clang::FunctionDecl const*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Sema/SemaDeclAttr.cpp:5336:7
    #2 0x55556846a274 in clang::Sema::ActOnFinishFunctionBody(clang::Decl*, clang::Stmt*, bool) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Sema/SemaDecl.cpp:15937:7
    #3 0x555567dca9ad in clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/ParseStmt.cpp:2536:18
    #4 0x555567be11a2 in clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/Parser.cpp:1525:10
    #5 0x555567d2e25f in clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::ParsedAttributes&, clang::Parser::ParsedTemplateInfo&, clang::SourceLocation*, clang::Parser::ForRangeInit*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/include/clang/Parse/Parser.h
    #6 0x555567bdccd3 in clang::Parser::ParseDeclOrFunctionDefInternal(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec&, clang::AccessSpecifier) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/Parser.cpp:1249:10
    #7 0x555567bdb525 in clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*, clang::AccessSpecifier) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/Parser.cpp:1271:12
    #8 0x555567bd7e65 in clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/Parser.cpp:1074:14
    #9 0x555567bd1f1c in clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/Parser.cpp:763:12
    #10 0x555567bc2882 in clang::ParseAST(clang::Sema&, bool, bool) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/ParseAST.cpp:163:20
    #11 0x5555638d301d in clang::FrontendAction::Execute() /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1078:8
    #12 0x5555638fcbcf in clang::ASTUnit::LoadFromCompilerInvocationAction(std::__1::shared_ptr<clang::CompilerInvocation>, std::__1::shared_ptr<clang::PCHContainerOperations>, llvm::IntrusiveRefCntPtr<clang::DiagnosticsEngine>, clang::FrontendAction*, clang::ASTUnit*, bool, llvm::StringRef, bool, clang::CaptureDiagsKind, unsigned int, bool, bool, std::__1::unique_ptr<clang::ASTUnit, std::__1::default_delete<clang::ASTUnit>>*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Frontend/ASTUnit.cpp:1667:30
    #13 0x5555662a4f2a in clang::arcmt::checkForManualIssues(clang::CompilerInvocation&, clang::FrontendInputFile const&, std::__1::shared_ptr<clang::PCHContainerOperations>, clang::DiagnosticConsumer*, bool, llvm::StringRef) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/ARCMigrate/ARCMT.cpp:269:33
    #14 0x5555662a256c in clang::arcmt::CheckAction::BeginInvocation(clang::CompilerInstance&) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/ARCMigrate/ARCMTActions.cpp:17:7
    #15 0x5555638c37ea in clang::FrontendAction::BeginSourceFile(clang::CompilerInstance&, clang::FrontendInputFile const&) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Frontend/FrontendAction.cpp:610:8
    #16 0x555563744137 in clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1060:13
    #17 0x555563b2c1c7 in clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:280:25
    #18 0x55555aa49330 in cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/tools/driver/cc1_main.cpp:283:15
    #19 0x55555aa3f6a7 in ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/tools/driver/driver.cpp:215:12
    #20 0x55555aa3cb30 in clang_main(int, char**, llvm::ToolContext const&) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/tools/driver/driver.cpp:256:12
    #21 0x55555aa680e3 in main /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/tools/driver/clang-driver.cpp:17:10
    #22 0x7ffff7a2a1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 08134323d00289185684a4cd177d202f39c2a5f3)
    #23 0x7ffff7a2a28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a) (BuildId: 08134323d00289185684a4cd177d202f39c2a5f3)
    #24 0x55555a99ffe4 in _start (/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang-19+0x544bfe4)

SUMMARY: MemorySanitizer: use-of-uninitialized-value /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Sema/SemaDeclAttr.cpp:5455:11 in clang::Sema::GetMissingFormatAttributes(clang::Stmt*, clang::FunctionDecl const*)
Exiting

--
Step 10 (stage2/msan check) failure: stage2/msan check (failure)
...
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld.lld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld.lld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 83950 tests, 80 workers --
Testing: 
FAIL: Clang :: ARCMT/GC-check.m (131 of 83950)
******************** TEST 'Clang :: ARCMT/GC-check.m' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/lib/clang/19/include -nostdsysteminc -arcmt-action=check -verify -triple x86_64-apple-darwin10 -fobjc-gc-only /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/ARCMT/GC-check.m
+ /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/lib/clang/19/include -nostdsysteminc -arcmt-action=check -verify -triple x86_64-apple-darwin10 -fobjc-gc-only /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/ARCMT/GC-check.m
==2197391==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x555568649bde in clang::Sema::GetMissingFormatAttributes(clang::Stmt*, clang::FunctionDecl const*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Sema/SemaDeclAttr.cpp:5455:11
    #1 0x555568646747 in clang::Sema::DiagnoseMissingFormatAttributes(clang::Stmt*, clang::FunctionDecl const*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Sema/SemaDeclAttr.cpp:5336:7
    #2 0x55556846a274 in clang::Sema::ActOnFinishFunctionBody(clang::Decl*, clang::Stmt*, bool) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Sema/SemaDecl.cpp:15937:7
    #3 0x555567dca9ad in clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/ParseStmt.cpp:2536:18
    #4 0x555567be11a2 in clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/Parser.cpp:1525:10
    #5 0x555567d2e25f in clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::ParsedAttributes&, clang::Parser::ParsedTemplateInfo&, clang::SourceLocation*, clang::Parser::ForRangeInit*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/include/clang/Parse/Parser.h
    #6 0x555567bdccd3 in clang::Parser::ParseDeclOrFunctionDefInternal(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec&, clang::AccessSpecifier) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/Parser.cpp:1249:10
    #7 0x555567bdb525 in clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*, clang::AccessSpecifier) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/Parser.cpp:1271:12
    #8 0x555567bd7e65 in clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/Parser.cpp:1074:14
    #9 0x555567bd1f1c in clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/Parser.cpp:763:12
    #10 0x555567bc2882 in clang::ParseAST(clang::Sema&, bool, bool) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/ParseAST.cpp:163:20
    #11 0x5555638d301d in clang::FrontendAction::Execute() /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1078:8
    #12 0x5555638fcbcf in clang::ASTUnit::LoadFromCompilerInvocationAction(std::__1::shared_ptr<clang::CompilerInvocation>, std::__1::shared_ptr<clang::PCHContainerOperations>, llvm::IntrusiveRefCntPtr<clang::DiagnosticsEngine>, clang::FrontendAction*, clang::ASTUnit*, bool, llvm::StringRef, bool, clang::CaptureDiagsKind, unsigned int, bool, bool, std::__1::unique_ptr<clang::ASTUnit, std::__1::default_delete<clang::ASTUnit>>*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Frontend/ASTUnit.cpp:1667:30
    #13 0x5555662a4f2a in clang::arcmt::checkForManualIssues(clang::CompilerInvocation&, clang::FrontendInputFile const&, std::__1::shared_ptr<clang::PCHContainerOperations>, clang::DiagnosticConsumer*, bool, llvm::StringRef) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/ARCMigrate/ARCMT.cpp:269:33
    #14 0x5555662a256c in clang::arcmt::CheckAction::BeginInvocation(clang::CompilerInstance&) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/ARCMigrate/ARCMTActions.cpp:17:7
    #15 0x5555638c37ea in clang::FrontendAction::BeginSourceFile(clang::CompilerInstance&, clang::FrontendInputFile const&) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Frontend/FrontendAction.cpp:610:8
    #16 0x555563744137 in clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1060:13
    #17 0x555563b2c1c7 in clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:280:25
    #18 0x55555aa49330 in cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/tools/driver/cc1_main.cpp:283:15
    #19 0x55555aa3f6a7 in ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/tools/driver/driver.cpp:215:12
    #20 0x55555aa3cb30 in clang_main(int, char**, llvm::ToolContext const&) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/tools/driver/driver.cpp:256:12
    #21 0x55555aa680e3 in main /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/tools/driver/clang-driver.cpp:17:10
    #22 0x7ffff7a2a1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 08134323d00289185684a4cd177d202f39c2a5f3)
    #23 0x7ffff7a2a28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a) (BuildId: 08134323d00289185684a4cd177d202f39c2a5f3)
    #24 0x55555a99ffe4 in _start (/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang-19+0x544bfe4)

SUMMARY: MemorySanitizer: use-of-uninitialized-value /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Sema/SemaDeclAttr.cpp:5455:11 in clang::Sema::GetMissingFormatAttributes(clang::Stmt*, clang::FunctionDecl const*)
Exiting

--
Step 14 (stage2/msan_track_origins check) failure: stage2/msan_track_origins check (failure)
...
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/lld-link
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/ld64.lld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/wasm-ld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld.lld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/ld.lld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/lld-link
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/ld64.lld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/wasm-ld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 83950 tests, 80 workers --
Testing: 
FAIL: Clang :: ARCMT/block_copy_release.m (118 of 83950)
******************** TEST 'Clang :: ARCMT/block_copy_release.m' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/clang -cc1 -internal-isystem /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/lib/clang/19/include -nostdsysteminc -fblocks -fsyntax-only -fobjc-arc -x objective-c /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/ARCMT/block_copy_release.m.result
+ /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/clang -cc1 -internal-isystem /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/lib/clang/19/include -nostdsysteminc -fblocks -fsyntax-only -fobjc-arc -x objective-c /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/ARCMT/block_copy_release.m.result
RUN: at line 2: arcmt-test --args -triple x86_64-apple-darwin10 -fblocks -fsyntax-only -x objective-c /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/ARCMT/block_copy_release.m > /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/tools/clang/test/ARCMT/Output/block_copy_release.m.tmp
+ arcmt-test --args -triple x86_64-apple-darwin10 -fblocks -fsyntax-only -x objective-c /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/ARCMT/block_copy_release.m
==114382==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x555559242027 in clang::Sema::GetMissingFormatAttributes(clang::Stmt*, clang::FunctionDecl const*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Sema/SemaDeclAttr.cpp:5455:11
    #1 0x55555923d4e4 in clang::Sema::DiagnoseMissingFormatAttributes(clang::Stmt*, clang::FunctionDecl const*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Sema/SemaDeclAttr.cpp:5336:7
    #2 0x555558fa32dc in clang::Sema::ActOnFinishFunctionBody(clang::Decl*, clang::Stmt*, bool) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Sema/SemaDecl.cpp:15937:7
    #3 0x555558629e3c in clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/ParseStmt.cpp:2536:18
    #4 0x555558387024 in clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/Parser.cpp:1525:10
    #5 0x555558550d33 in clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::ParsedAttributes&, clang::Parser::ParsedTemplateInfo&, clang::SourceLocation*, clang::Parser::ForRangeInit*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/ParseDecl.cpp
    #6 0x555558381b4b in clang::Parser::ParseDeclOrFunctionDefInternal(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec&, clang::AccessSpecifier) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/Parser.cpp:1249:10
    #7 0x55555837fe95 in clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*, clang::AccessSpecifier) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/Parser.cpp:1271:12
    #8 0x55555837b114 in clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/Parser.cpp:1074:14
    #9 0x555558372ef9 in clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/Parser.cpp:763:12
    #10 0x55555835f112 in clang::ParseAST(clang::Sema&, bool, bool) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Parse/ParseAST.cpp:163:20
    #11 0x5555577f6264 in clang::FrontendAction::Execute() /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1078:8
    #12 0x5555573838c3 in clang::ASTUnit::LoadFromCompilerInvocationAction(std::__1::shared_ptr<clang::CompilerInvocation>, std::__1::shared_ptr<clang::PCHContainerOperations>, llvm::IntrusiveRefCntPtr<clang::DiagnosticsEngine>, clang::FrontendAction*, clang::ASTUnit*, bool, llvm::StringRef, bool, clang::CaptureDiagsKind, unsigned int, bool, bool, std::__1::unique_ptr<clang::ASTUnit, std::__1::default_delete<clang::ASTUnit>>*) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Frontend/ASTUnit.cpp:1667:30
    #13 0x555556738405 in clang::arcmt::checkForManualIssues(clang::CompilerInvocation&, clang::FrontendInputFile const&, std::__1::shared_ptr<clang::PCHContainerOperations>, clang::DiagnosticConsumer*, bool, llvm::StringRef) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/ARCMigrate/ARCMT.cpp:269:33
    #14 0x55555652bf79 in checkForMigration(llvm::StringRef, llvm::ArrayRef<char const*>) /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/tools/arcmt-test/arcmt-test.cpp:135:3
    #15 0x5555565278e8 in performTransformations /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/tools/arcmt-test/arcmt-test.cpp:151:7
    #16 0x5555565278e8 in main /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/tools/arcmt-test/arcmt-test.cpp:375:10
    #17 0x7ffff782a1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 08134323d00289185684a4cd177d202f39c2a5f3)
    #18 0x7ffff782a28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a) (BuildId: 08134323d00289185684a4cd177d202f39c2a5f3)
    #19 0x555556498cc4 in _start (/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/arcmt-test+0xf44cc4)

SUMMARY: MemorySanitizer: use-of-uninitialized-value /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Sema/SemaDeclAttr.cpp:5455:11 in clang::Sema::GetMissingFormatAttributes(clang::Stmt*, clang::FunctionDecl const*)
  ORIGIN: invalid (0). Might be a bug in MemorySanitizer origin tracking.
    This could still be a bug in your code, too!
Exiting

--

Step 16 (build stage3/msan build) failure: build stage3/msan build (failure)
...
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- bolt project is disabled
-- clang project is enabled
-- clang-tools-extra project is enabled
-- compiler-rt project is disabled
-- cross-project-tests project is disabled
-- libc project is disabled
-- libclc project is disabled
-- lld project is enabled
-- lldb project is disabled
-- mlir project is disabled
-- openmp project is disabled
-- polly project is disabled
-- pstl project is disabled
-- flang project is disabled
-- Found Python3: /usr/bin/python3 (found suitable version "3.12.3", minimum required is "3.8") found components: Interpreter 
-- Performing Test LLVM_LIBSTDCXX_MIN
-- Performing Test LLVM_LIBSTDCXX_MIN - Failed
CMake Error at cmake/modules/CheckCompilerVersion.cmake:88 (message):
  libstdc++ version must be at least 7.4.
Call Stack (most recent call first):
  cmake/config-ix.cmake:16 (include)
  CMakeLists.txt:949 (include)


-- Configuring incomplete, errors occurred!
+ build_failure
+ echo

+ echo 'How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild'
How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
+ echo

+ sleep 5
+ echo @@@STEP_FAILURE@@@
+ [[ '' == \1 ]]
+ [[ ! -v BUILDBOT_BUILDERNAME ]]
+ md5sum 'llvm_build2_msan/bin/clang*'
md5sum: 'llvm_build2_msan/bin/clang*': No such file or directory
+ true
+ check_stage3_msan
+ check_stage3 msan
+ local sanitizer_name=msan
+ echo @@@BUILD_STEP stage3/msan check@@@
Step 17 (stage3/msan check) failure: stage3/msan check (failure)
...
+ cd llvm_build2_msan
+ env
BUILDBOT_REVISION=70f57d25743ca7230bcad3cae7e3072f0aded6f7
MSAN_SYMBOLIZER_PATH=/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build0/bin/llvm-symbolizer
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
PWD=/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan
LOGNAME=buildbot
BUILDBOT_CLOBBER=
SYSTEMD_EXEC_PID=33276
BUILDBOT_BRANCH=main
STAGE2_DIR=llvm_build_msan
HOME=/b
LANG=C.UTF-8
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/system.slice/system-buildbot\x2dworker.slice/buildbot-worker at b.service/memory.pressure
INVOCATION_ID=83f37a2dc0d7421096af168feaa78ada
BUILDBOT_BUILDNUMBER=920
BUILDBOT_SCHEDULER=main:clang,clang-tools-extra,compiler-rt,libcxx,libcxxabi,libunwind,lld,llvm,mlir
TERM=dumb
BUILDBOT_BUILDERNAME=sanitizer-x86_64-linux-bootstrap-msan
BUILDBOT_BLAMELIST=[]
USER=buildbot
SHLVL=1
LLVM_SYMBOLIZER_PATH=/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build0/bin/llvm-symbolizer
BUILDBOT_GOT_REVISION=bd306084512e06de9d5829dd9f65ce14b41cb883
LC_ALL=C
JOURNAL_STREAM=8:113297
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin
BOT_DIR=/b
LIT_OPTS=--time-tests --timeout=900
_=/usr/bin/env
OLDPWD=/b/sanitizer-x86_64-linux-bootstrap-msan/build
+ ninja check-all
ninja: error: loading 'build.ninja': No such file or directory
+ build_failure
+ echo

+ echo 'How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild'
How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
+ echo

+ sleep 5
+ echo @@@STEP_FAILURE@@@
+ [[ '' == \1 ]]
+ [[ ! -v BUILDBOT_BUILDERNAME ]]
+ exit 0
+ grep 'WARNING: MemorySanitizer' stage3_msan.log
+ break
+ cleanup
+ [[ -v BUILDBOT_BUILDERNAME ]]
+ echo @@@BUILD_STEP cleanup@@@

```

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


More information about the cfe-commits mailing list