[clang] [WebKit Checkers] Recognize Objective-C and CF pointer conversion functions. (PR #132784)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 27 16:07:52 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `clang` at step 6 "test-build-unified-tree-check-all".

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

<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/forward-decl-checker.mm' FAILED ********************
Exit Code: 134

Command Output (stderr):
--
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/clang/21/include -nostdsysteminc -analyze -analyzer-constraints=range -setup-static-analyzer -analyzer-checker=alpha.webkit.ForwardDeclChecker -verify /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Analysis/Checkers/WebKit/forward-decl-checker.mm # RUN: at line 1
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/clang/21/include -nostdsysteminc -analyze -analyzer-constraints=range -setup-static-analyzer -analyzer-checker=alpha.webkit.ForwardDeclChecker -verify /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Analysis/Checkers/WebKit/forward-decl-checker.mm
clang: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/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: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/clang/21/include -nostdsysteminc -analyze -analyzer-constraints=range -setup-static-analyzer -analyzer-checker=alpha.webkit.ForwardDeclChecker -verify /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Analysis/Checkers/WebKit/forward-decl-checker.mm
1.	<eof> parser at end of file
 #0 0x00005f939b9545f0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang+0x21b55f0)
 #1 0x00005f939b9519ff llvm::sys::RunSignalHandlers() (/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang+0x21b29ff)
 #2 0x00005f939b951b4a SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
 #3 0x00007b4a8f852520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #4 0x00007b4a8f8a69fc __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
 #5 0x00007b4a8f8a69fc __pthread_kill_internal ./nptl/pthread_kill.c:78:10
 #6 0x00007b4a8f8a69fc pthread_kill ./nptl/pthread_kill.c:89:10
 #7 0x00007b4a8f852476 gsignal ./signal/../sysdeps/posix/raise.c:27:6
 #8 0x00007b4a8f8387f3 abort ./stdlib/abort.c:81:7
 #9 0x00007b4a8f83871b _nl_load_domain ./intl/loadmsgcat.c:1177:9
#10 0x00007b4a8f849e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
#11 0x00005f939e478c54 (/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang+0x4cd9c54)
#12 0x00005f939efd4608 clang::Expr::IgnoreParenCasts() (/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang+0x5835608)
#13 0x00005f939db23e0b clang::RecursiveASTVisitor<(anonymous namespace)::ForwardDeclChecker::checkASTDecl(clang::TranslationUnitDecl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) const::LocalVisitor>::TraverseObjCMessageExpr(clang::ObjCMessageExpr*, llvm::SmallVectorImpl<llvm::PointerIntPair<clang::Stmt*, 1u, bool, llvm::PointerLikeTypeTraits<clang::Stmt*>, llvm::PointerIntPairInfo<clang::Stmt*, 1u, llvm::PointerLikeTypeTraits<clang::Stmt*>>>>*) ForwardDeclChecker.cpp:0:0
#14 0x00005f939db1ea69 clang::RecursiveASTVisitor<(anonymous namespace)::ForwardDeclChecker::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) ForwardDeclChecker.cpp:0:0
#15 0x00005f939db2f7f5 clang::RecursiveASTVisitor<(anonymous namespace)::ForwardDeclChecker::checkASTDecl(clang::TranslationUnitDecl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) const::LocalVisitor>::TraverseFunctionHelper(clang::FunctionDecl*) ForwardDeclChecker.cpp:0:0
#16 0x00005f939db2fa33 clang::RecursiveASTVisitor<(anonymous namespace)::ForwardDeclChecker::checkASTDecl(clang::TranslationUnitDecl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) const::LocalVisitor>::TraverseCXXMethodDecl(clang::CXXMethodDecl*) ForwardDeclChecker.cpp:0:0
#17 0x00005f939db1844e clang::RecursiveASTVisitor<(anonymous namespace)::ForwardDeclChecker::checkASTDecl(clang::TranslationUnitDecl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) const::LocalVisitor>::TraverseDeclContextHelper(clang::DeclContext*) (.part.0) ForwardDeclChecker.cpp:0:0
#18 0x00005f939db1763b clang::RecursiveASTVisitor<(anonymous namespace)::ForwardDeclChecker::checkASTDecl(clang::TranslationUnitDecl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) const::LocalVisitor>::TraverseDecl(clang::Decl*) ForwardDeclChecker.cpp:0:0
#19 0x00005f939db280c3 clang::RecursiveASTVisitor<(anonymous namespace)::ForwardDeclChecker::checkASTDecl(clang::TranslationUnitDecl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) const::LocalVisitor>::TraverseClassTemplateDecl(clang::ClassTemplateDecl*) ForwardDeclChecker.cpp:0:0
#20 0x00005f939db1844e clang::RecursiveASTVisitor<(anonymous namespace)::ForwardDeclChecker::checkASTDecl(clang::TranslationUnitDecl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) const::LocalVisitor>::TraverseDeclContextHelper(clang::DeclContext*) (.part.0) ForwardDeclChecker.cpp:0:0
#21 0x00005f939db17c88 clang::RecursiveASTVisitor<(anonymous namespace)::ForwardDeclChecker::checkASTDecl(clang::TranslationUnitDecl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) const::LocalVisitor>::TraverseDecl(clang::Decl*) ForwardDeclChecker.cpp:0:0
#22 0x00005f939db1844e clang::RecursiveASTVisitor<(anonymous namespace)::ForwardDeclChecker::checkASTDecl(clang::TranslationUnitDecl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) const::LocalVisitor>::TraverseDeclContextHelper(clang::DeclContext*) (.part.0) ForwardDeclChecker.cpp:0:0
#23 0x00005f939db271bb clang::RecursiveASTVisitor<(anonymous namespace)::ForwardDeclChecker::checkASTDecl(clang::TranslationUnitDecl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) const::LocalVisitor>::TraverseTranslationUnitDecl(clang::TranslationUnitDecl*) ForwardDeclChecker.cpp:0:0
#24 0x00005f939db184e4 void clang::ento::check::ASTDecl<clang::TranslationUnitDecl>::_checkDecl<(anonymous namespace)::ForwardDeclChecker>(void*, clang::Decl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) ForwardDeclChecker.cpp:0:0
#25 0x00005f939dbe3b99 clang::ento::CheckerManager::runCheckersOnASTDecl(clang::Decl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) (/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang+0x4444b99)
#26 0x00005f939d7b8e19 (anonymous namespace)::AnalysisConsumer::HandleTranslationUnit(clang::ASTContext&) AnalysisConsumer.cpp:0:0
#27 0x00005f939dd7e48c clang::ParseAST(clang::Sema&, bool, bool) (/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang+0x45df48c)
#28 0x00005f939c5cd6a9 clang::FrontendAction::Execute() (/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang+0x2e2e6a9)
#29 0x00005f939c54c4f5 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang+0x2dad4f5)
#30 0x00005f939c6b5608 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang+0x2f16608)
#31 0x00005f939a429687 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang+0xc8a687)
#32 0x00005f939a41fd9a ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
#33 0x00005f939a42437e clang_main(int, char**, llvm::ToolContext const&) (/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang+0xc8537e)
#34 0x00005f939a35220b main (/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang+0xbb320b)
#35 0x00007b4a8f839d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#36 0x00007b4a8f839e40 call_init ./csu/../csu/libc-start.c:128:20
#37 0x00007b4a8f839e40 __libc_start_main ./csu/../csu/libc-start.c:379:5
...

```

</details>

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


More information about the cfe-commits mailing list