[clang] [webkit.UncountedLambdaCapturesChecker] Ignore trivial functions and [[clang::noescape]]. (PR #113845)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 31 00:23:27 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `arc-builder` running on `arc-worker` while building `clang` at step 6 "test-build-unified-tree-check-all".

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

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Analysis/Checkers/WebKit/uncounted-lambda-captures.cpp' FAILED ********************
Exit Code: 134

Command Output (stderr):
--
RUN: at line 1: /buildbot/worker/arc-folder/build/bin/clang -cc1 -internal-isystem /buildbot/worker/arc-folder/build/lib/clang/20/include -nostdsysteminc -analyze -analyzer-constraints=range -setup-static-analyzer -analyzer-checker=webkit.UncountedLambdaCapturesChecker -verify /buildbot/worker/arc-folder/llvm-project/clang/test/Analysis/Checkers/WebKit/uncounted-lambda-captures.cpp
+ /buildbot/worker/arc-folder/build/bin/clang -cc1 -internal-isystem /buildbot/worker/arc-folder/build/lib/clang/20/include -nostdsysteminc -analyze -analyzer-constraints=range -setup-static-analyzer -analyzer-checker=webkit.UncountedLambdaCapturesChecker -verify /buildbot/worker/arc-folder/llvm-project/clang/test/Analysis/Checkers/WebKit/uncounted-lambda-captures.cpp
clang: /buildbot/worker/arc-folder/llvm-project/llvm/include/llvm/Support/Casting.h:662: decltype(auto) llvm::dyn_cast(From*) [with To = clang::ParenExpr; From = clang::Expr]: Assertion `detail::isPresent(Val) && "dyn_cast on a non-existent value"' 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: /buildbot/worker/arc-folder/build/bin/clang -cc1 -internal-isystem /buildbot/worker/arc-folder/build/lib/clang/20/include -nostdsysteminc -analyze -analyzer-constraints=range -setup-static-analyzer -analyzer-checker=webkit.UncountedLambdaCapturesChecker -verify /buildbot/worker/arc-folder/llvm-project/clang/test/Analysis/Checkers/WebKit/uncounted-lambda-captures.cpp
1.	<eof> parser at end of file
 #0 0x0000000001fc4b38 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/buildbot/worker/arc-folder/build/bin/clang+0x1fc4b38)
 #1 0x0000000001fc1f1c SignalHandler(int) Signals.cpp:0:0
 #2 0x00007f2385483630 __restore_rt sigaction.c:0:0
 #3 0x00007f23841d33d7 raise (/usr/lib64/libc.so.6+0x363d7)
 #4 0x00007f23841d4ac8 abort (/usr/lib64/libc.so.6+0x37ac8)
 #5 0x00007f23841cc1a6 __assert_fail_base (/usr/lib64/libc.so.6+0x2f1a6)
 #6 0x00007f23841cc252 (/usr/lib64/libc.so.6+0x2f252)
 #7 0x0000000004e428b7 clang::IgnoreParensSingleStep(clang::Expr*) (/buildbot/worker/arc-folder/build/bin/clang+0x4e428b7)
 #8 0x00000000059ca3d0 clang::Expr::IgnoreParenCasts() (/buildbot/worker/arc-folder/build/bin/clang+0x59ca3d0)
 #9 0x0000000004462d9d clang::RecursiveASTVisitor<(anonymous namespace)::UncountedLambdaCapturesChecker::checkASTDecl(clang::TranslationUnitDecl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) const::LocalVisitor>::TraverseDeclRefExpr(clang::DeclRefExpr*, llvm::SmallVectorImpl<llvm::PointerIntPair<clang::Stmt*, 1u, bool, llvm::PointerLikeTypeTraits<clang::Stmt*>, llvm::PointerIntPairInfo<clang::Stmt*, 1u, llvm::PointerLikeTypeTraits<clang::Stmt*>>>>*) UncountedLambdaCapturesChecker.cpp:0:0
#10 0x000000000445ad79 clang::RecursiveASTVisitor<(anonymous namespace)::UncountedLambdaCapturesChecker::checkASTDecl(clang::TranslationUnitDecl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) const::LocalVisitor>::TraverseStmt(clang::Stmt*, llvm::SmallVectorImpl<llvm::PointerIntPair<clang::Stmt*, 1u, bool, llvm::PointerLikeTypeTraits<clang::Stmt*>, llvm::PointerIntPairInfo<clang::Stmt*, 1u, llvm::PointerLikeTypeTraits<clang::Stmt*>>>>*) (.constprop.0) UncountedLambdaCapturesChecker.cpp:0:0
#11 0x0000000004467346 clang::RecursiveASTVisitor<(anonymous namespace)::UncountedLambdaCapturesChecker::checkASTDecl(clang::TranslationUnitDecl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) const::LocalVisitor>::TraverseFunctionHelper(clang::FunctionDecl*) UncountedLambdaCapturesChecker.cpp:0:0
#12 0x0000000004455a8d clang::RecursiveASTVisitor<(anonymous namespace)::UncountedLambdaCapturesChecker::checkASTDecl(clang::TranslationUnitDecl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) const::LocalVisitor>::TraverseDecl(clang::Decl*) (.part.0) UncountedLambdaCapturesChecker.cpp:0:0
#13 0x0000000004468ecc clang::RecursiveASTVisitor<(anonymous namespace)::UncountedLambdaCapturesChecker::checkASTDecl(clang::TranslationUnitDecl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) const::LocalVisitor>::TraverseFunctionTemplateDecl(clang::FunctionTemplateDecl*) UncountedLambdaCapturesChecker.cpp:0:0
#14 0x000000000446328a clang::RecursiveASTVisitor<(anonymous namespace)::UncountedLambdaCapturesChecker::checkASTDecl(clang::TranslationUnitDecl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) const::LocalVisitor>::TraverseDeclContextHelper(clang::DeclContext*) (.part.0) UncountedLambdaCapturesChecker.cpp:0:0
#15 0x0000000004466b46 clang::RecursiveASTVisitor<(anonymous namespace)::UncountedLambdaCapturesChecker::checkASTDecl(clang::TranslationUnitDecl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) const::LocalVisitor>::TraverseTranslationUnitDecl(clang::TranslationUnitDecl*) UncountedLambdaCapturesChecker.cpp:0:0
#16 0x000000000446a246 void clang::ento::check::ASTDecl<clang::TranslationUnitDecl>::_checkDecl<(anonymous namespace)::UncountedLambdaCapturesChecker>(void*, clang::Decl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) UncountedLambdaCapturesChecker.cpp:0:0
#17 0x000000000450e7c1 clang::ento::CheckerManager::runCheckersOnASTDecl(clang::Decl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) (/buildbot/worker/arc-folder/build/bin/clang+0x450e7c1)
#18 0x0000000003fd2262 (anonymous namespace)::AnalysisConsumer::HandleTranslationUnit(clang::ASTContext&) AnalysisConsumer.cpp:0:0
#19 0x000000000468969c clang::ParseAST(clang::Sema&, bool, bool) (/buildbot/worker/arc-folder/build/bin/clang+0x468969c)
#20 0x0000000002bbafe9 clang::FrontendAction::Execute() (/buildbot/worker/arc-folder/build/bin/clang+0x2bbafe9)
#21 0x0000000002b3211e clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/buildbot/worker/arc-folder/build/bin/clang+0x2b3211e)
#22 0x0000000002c927be clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/buildbot/worker/arc-folder/build/bin/clang+0x2c927be)
#23 0x0000000000b42367 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/buildbot/worker/arc-folder/build/bin/clang+0xb42367)
#24 0x0000000000b39a5a ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
#25 0x0000000000b3d86d clang_main(int, char**, llvm::ToolContext const&) (/buildbot/worker/arc-folder/build/bin/clang+0xb3d86d)
#26 0x0000000000a6c4e4 main (/buildbot/worker/arc-folder/build/bin/clang+0xa6c4e4)
#27 0x00007f23841bf555 __libc_start_main (/usr/lib64/libc.so.6+0x22555)
#28 0x0000000000b391cd _start (/buildbot/worker/arc-folder/build/bin/clang+0xb391cd)
/buildbot/worker/arc-folder/build/tools/clang/test/Analysis/Checkers/WebKit/Output/uncounted-lambda-captures.cpp.script: line 1: 12977 Aborted                 /buildbot/worker/arc-folder/build/bin/clang -cc1 -internal-isystem /buildbot/worker/arc-folder/build/lib/clang/20/include -nostdsysteminc -analyze -analyzer-constraints=range -setup-static-analyzer -analyzer-checker=webkit.UncountedLambdaCapturesChecker -verify /buildbot/worker/arc-folder/llvm-project/clang/test/Analysis/Checkers/WebKit/uncounted-lambda-captures.cpp

--

********************


```

</details>

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


More information about the cfe-commits mailing list