Skip to content

test(relinker): run guest_unused_import_dependencies with the ASan host-loading option - #8664

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
lulebo:test/relinker-unused-import-asan-option
Oct 24, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
lulebo:test/relinker-unused-import-asan-option

Conversation

@lulebo

@lulebo lulebo commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

What

guest_unused_import_dependencies (#6903) runs its relinked Linux programs against copies of the instrumented guest_module_args_host.prx in libs/, as guest_module_args, guest_deferred_dependencies, guest_module_fini and guest_zero_initializer do. Those four run with verify_asan_link_order=0 through add_asan_test_options (#7147). This test was registered after that without the option, so in an ANYPS5_ENABLE_ASAN build the program of its referenced case exits with 1 instead of 42:

AssertionError: ('referenced', 1, '', '==17927==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.\n')

It now gets the same option, next to its registration as guest_zero_initializer's is. add_asan_test_options does nothing outside ASan builds, so other builds run the test unchanged. The relinker-asan CI job runs only the tls_function_coverage label, so it does not reach this test.

Tested

WSL 2 Ubuntu 26.04 x86-64, GCC 15.2.0, CMake 4.2.3, Ninja 1.13.2, Python 3.14.4. Relinker-only builds of main (aa1b1bf) and of this branch:

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

…st-loading option

guest_unused_import_dependencies, added in boykopovar#6903, runs its relinked
Linux programs against copies of the instrumented
guest_module_args_host.prx in libs/, as guest_module_args,
guest_deferred_dependencies, guest_module_fini and
guest_zero_initializer do. Those four run with
verify_asan_link_order=0 through add_asan_test_options (boykopovar#7147); this
one did not, so in an ANYPS5_ENABLE_ASAN build the program of its
referenced case exited with 1 and "ASan runtime does not come first in
initial library list" instead of 42. It now runs with the same option,
which changes nothing outside ASan builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 5021 core/relinker/CMakeLists.txt
PR 6044 core/relinker/CMakeLists.txt
PR 9408 core/relinker/CMakeLists.txt

@oneandonlydean oneandonlydean self-assigned this Oct 23, 2026
@oneandonlydean
oneandonlydean merged commit ee955e5 into boykopovar:main Oct 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants