tests: public_headers fails on duplicate __asan_poison_memory_region / __asan_unpoison_memory_region declarations

未关闭 适合新手
#735 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
74/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
cmake, cpp, python

调研方向

先从 core/libs/tests/test_public_headers.py 第341行附近开始,了解审计如何统计声明,然后检查报告中的两个位置:Block.cpp 第25–26行,以及 Api.hpp 第82行和第202行。运行 ctest --test-dir build -R "^public_headers$" --output-on-failure -V 来复现问题。审计对每个函数恰好找到一个头文件声明,并且 public_headers 通过后,工作即告完成。

由索引模型根据 Issue 内容生成。

描述

Commit: db7808f91d0812fe559831b496c2ca3abd4e0821 (AnyKyty)
Hardware / OS: Windows 11 (10.0.26300.0), Python 3.14, MinGW-W64 GCC 15.3.0, Clang 21.1.8
Tracking: #705

Behavior

public_headers fails the audit because __asan_poison_memory_region and __asan_unpoison_memory_region are declared in both core\kyty\graphics\shader\recompiler\ir\Block.cpp and core\libs\prx\libSceAddressSanitizer\include\Api.hpp. Because public_headers_compile_0..63 depend on public_headers, all 64 downstream fixture tests show as Not Run.

Reproduction

ctest --test-dir build -R "^public_headers$" --output-on-failure -V

First error lines

  File "<repo>\core\libs\tests\test_public_headers.py", line 341, in audit
    raise RuntimeError("\n".join(errors))
RuntimeError: __asan_poison_memory_region: expected exactly one header declaration; found 2: core\kyty\graphics\shader\recompiler\ir\Block.cpp:25, core\libs\prx\libSceAddressSanitizer\include\Api.hpp:82
__asan_unpoison_memory_region: expected exactly one header declaration; found 2: core\kyty\graphics\shader\recompiler\ir\Block.cpp:26, core\libs\prx\libSceAddressSanitizer\include\Api.hpp:202

AI-assisted: yes. Built, ran, and drafted with an AI assistant.

主要语言
C++
星标
214
派生
7
平均合并
7 小时 53 分钟
30 天内合并 PR
280

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

simnJS/AnyPS5 的其他 Issue

查看 simnJS/AnyPS5 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。