tests: public_headers fails on duplicate __asan_poison_memory_region / __asan_unpoison_memory_region declarations

Open Beginner friendly
#735 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
74/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
cmake, cpp, python

Research direction

Start with core/libs/tests/test_public_headers.py around line 341 to understand how the audit counts declarations, then inspect the two reported locations: Block.cpp lines 25–26 and Api.hpp lines 82 and 202. Run ctest --test-dir build -R "^public_headers$" --output-on-failure -V to reproduce. Done when the audit finds exactly one header declaration for each function and public_headers passes.

Written by the indexing model from the issue text.

Description

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.

Dominant language
C++
Stars
214
Forks
7
Avg merge
7h 53m
Merged PRs (30d)
280

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from simnJS/AnyPS5

All issues in simnJS/AnyPS5

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.