Repository navigation
fix(prx): keep forwarding exports from binding to themselves on Linux - #13730
oneandonlydean merged 1 commit into
Conversation
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
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.
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — changes requested
The fix is supported by the reported Linux testing, but overlapping open changes need an agreed landing order and two title-unblock entries lack their required discussion references.
What I ran
Reviewed head fe58f461d6a5e7685333adab1ad6c347b914933b against PR base e2df06e661f94d6e63b8f6622c8c58507b0245c1. The live merge preview onto main 6475267b456de6a0a23b230aa751f0b917d12688 was clean. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0. I did not build locally or run CTest.
git diff --check e2df06e661f94d6e63b8f6622c8c58507b0245c1...fe58f461d6a5e7685333adab1ad6c347b914933b
python3 tools/check_conventions.py --base e2df06e661f94d6e63b8f6622c8c58507b0245c1 --head fe58f461d6a5e7685333adab1ad6c347b914933b --title 'fix(prx): keep forwarding exports from binding to themselves on Linux' --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13730-fe58f461d6a5/pr-body.md
python3 tools/pr_stack_check.py 13730 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13730-fe58f461d6a5/stack
python3 tools/pr_abi_audit.py --base e2df06e661f94d6e63b8f6622c8c58507b0245c1 --head refs/pr/13730 --json
python3 tools/pr_test_quality.py --root /tmp/pr-13730-quality --json core/libs/tests/PatchedSelfImports.cpp
python3 tools/pr_overlap.py --branch refs/pr/13730 --repo boykopovar/AnyPS5 --jobs 4
gh pr checks 13730 --repo boykopovar/AnyPS5Results
| Check | Result |
|---|---|
| Diff check | Passed. |
| Conventions and PR template | Passed. |
| Merge preview | Clean on current main at 6475267b456de6a0a23b230aa751f0b917d12688. |
| ABI audit | passed_with_warnings; the sceAmprWcstombsS alias warning concerns its explicit NID, while this PR changes only its call body. |
| Test-quality heuristic and registration | Heuristic flagged the C++ test as possibly unregistered; this is a false positive because the changed CMake file registers the target and CTest entry. |
Hosted conventions |
Passed. |
Hosted eligibility |
Passed. |
Hosted intake |
Passed. |
Hosted labels |
Passed. |
Hosted library-portability |
Passed. |
| Hosted register-context Ubuntu Debug | Passed. |
| Hosted register-context Ubuntu Release | Passed. |
| Hosted relinker Ubuntu | Passed. |
| Hosted relinker Windows | Passed. |
| Hosted relinker ASAN | Passed. |
Hosted report |
Passed. |
Hosted linux |
Skipped. |
| Hosted register-context macOS Debug | Pending. |
| Hosted register-context macOS Release | Pending. |
Hosted relinker macos-latest, clang++ |
Pending. |
| Hosted relinker macOS x86_64 | Pending. |
| Hosted write-watch macOS arm64 | Pending. |
| Hosted write-watch macOS Intel | Pending. |
Hosted full windows job |
Passed on latest refresh. |
| Local build and CTest | Not run. |
Unedited output excerpts
check_conventions.py:
All conventions checks passed.
The test-quality helper output for the new C++ test:
{
"findings": [
{
"path": "core/libs/tests/PatchedSelfImports.cpp",
"line": 1,
"kind": "possible-unregistered-cpp-test",
"message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
}
],
"negative_control_candidates": [],
"limits": [
"Heuristics can miss weak assertions and can flag valid tests; inspect every finding.",
"A test that passes against base is not by itself proof that the PR test is inadequate.",
"Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error."
]
}Relevant overlap-scan rows (the scan used current main 6475267b456de6a0a23b230aa751f0b917d12688):
| [PR 7645](https://www.github.com/boykopovar/AnyPS5/pull/7645) | `core/libs/CMakeLists.txt` [L343-344](https://github.com/boykopovar/AnyPS5/blob/6475267b456de6a0a23b230aa751f0b917d12688/core/libs/CMakeLists.txt#L343-L344) | | |
| [PR 9019](https://www.github.com/boykopovar/AnyPS5/pull/9019) | `core/libs/prx/libkernel/File/src/Stdio.cpp` [L1085](https://github.com/boykopovar/AnyPS5/blob/6475267b456de6a0a23b230aa751f0b917d12688/core/libs/prx/libkernel/File/src/Stdio.cpp#L1085) | `pwrite` | |
| [PR 12868](https://www.github.com/boykopovar/AnyPS5/pull/12868) | `core/libs/prx/libkernel_sys/Aio.cpp` [L96-98](https://github.com/boykopovar/AnyPS5/blob/6475267b456de6a0a23b230aa751f0b917d12688/core/libs/prx/libkernel_sys/Aio.cpp#L96-L98) | | |
Manual patch inspection found #7645 changes a different CMake hunk, so it is not a substantive overlap here. The scanner could not compare several branches that conflict with the base; this PR's own description also identifies #12700 and #12965 as touching the positioned-write change.
Latest relevant gh pr checks output:
relinker (ubuntu-latest, g++) pass 2m42s https://github.com/boykopovar/AnyPS5/actions/runs/41162362960/job/124423227358
relinker (windows-latest, g++) pass 9m31s https://github.com/boykopovar/AnyPS5/actions/runs/41162362960/job/124423227403
relinker-asan pass 2m36s https://github.com/boykopovar/AnyPS5/actions/runs/41162362960/job/124423227374
register-context (ubuntu-latest, Debug) pass 30s https://github.com/boykopovar/AnyPS5/actions/runs/41162362960/job/124423227340
register-context (ubuntu-latest, Release) pass 26s https://github.com/boykopovar/AnyPS5/actions/runs/41162362960/job/124423227343
linux skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41162362960/job/124423228639
register-context (macos-15-intel, Debug) pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41162362960/job/124423227369
register-context (macos-15-intel, Release) pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41162362960/job/124423227401
relinker (macos-latest, clang++) pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41162362960/job/124423227502
relinker (macos-latest, clang++, x86_64) pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41162362960/job/124423227509
windows pass 21m55s https://github.com/boykopovar/AnyPS5/actions/runs/41162362960/job/124423227351
write-watch (macos-15) pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41162362960/job/124423227368
write-watch (macos-15-intel) pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41162362960/job/124423227336
Negative control
| Assertion | Change to code under test | Did the test fail? |
|---|---|---|
| Self-import regression must be detected | No negative-control mutation or exact-head test binary was available without building. | Not exercised. |
Findings
Blocking
CONTRIBUTING.mdrequires authors of overlapping PRs to agree on landing order and record it withDepends on. The live overlap scan found open #9019 changing thepwriteprovider path and #12868 changing the AIO call. This PR's description also names #12700 and #12965 as touching the positioned-write code. The checklist currently saysDepends on: none, and no coordination is recorded. Please agree on the landing order with the affected authors and update the checklist accordingly.- The
Unblocksline listsPPSA98514andPPSA20040without their Game bring-up discussion references. Add the applicable discussion IDs or remove entries that are not tracked there.
Non-blocking
The description reports substantial Linux and title testing but does not state the exact PR head SHA those results exercised. Please add the full tested head SHA so the evidence can be matched to this revision.
Sources
- Overlap-order rule at current
main - Required title and discussion format at current
main - PR #13730 test registration at reviewed head
- PR #13730 positioned-write provider at reviewed head
- PR #13730 AIO call at reviewed head
- PR #9019 positioned-write provider at its current head
- PR #12868 retained-file AIO path at its current head
- PR #12700 positioned-write changes at its current head
- PR #12965 positioned-write changes at its current head
Not verified
No local compilation, CTest, title launch, console behavior, or negative-control mutation was run. The Linux-specific test is not covered by the hosted Linux job because that job was skipped; macOS and full Windows jobs were pending. The exact PR head used for the author's reported tests is unspecified. The overlap scan could not compare some branches that conflict with the PR base, so they still need manual review before concluding no additional overlap exists.
To get this to a good state
Please coordinate and record the overlap order, complete the missing Game bring-up references, and add the exact tested head SHA. I will rerun the relevant checks on the updated head.
Tests run and reviewed — status correctionThe prior review’s “Not verified” section incorrectly marked the full Windows job as pending; the latest check shows it passed. What I ranChecked PR head gh pr checks 13730 --repo boykopovar/AnyPS5Results
Unedited outputNot verifiedThe macOS jobs have not completed; no local build or CTest was run. |
fe58f46 to
e9e816f
Compare
|
@MarcZX10 thanks, all three are in the description now, at head
|
|
The two macOS |
|
Tested
They come from #14240 (merged 2026-11-01). Setup: WSL2 Ubuntu 22.04, GCC 11.4.0, Ninja, Release, Tests:
The two macOS AI-assisted: yes (Claude Code) |
e9e816f to
9056177
Compare
|
@B-Howell thanks, confirmed: #14240's Head
|
XairRrR
left a comment
There was a problem hiding this comment.
Reviewed — approved
Moving the eight self-forwarded bodies into _nid_no_patch helpers removes every self-import from the patched libraries on Linux. The new patched_self_imports test passes on the merged tree, and with main's production files it fails and lists exactly those eight names.
What I ran
Head 905617771ee037b6855f27750d9d8480a4e851a4, merged with --no-ff into main 9090972b7e91fd266819cbd77a8b058e177b5682 (merged tree a200042f4212607ed244e8a51a9c4b5ca8ee051e). Debian 13 VM, 32 vCPU Xeon Gold 6136, GCC 14.2.0, Release, Ninja, BUILD_TESTING=ON, lavapipe (Mesa 26.1.6).
git diff --check 9090972b7e91fd266819cbd77a8b058e177b5682...905617771ee037b6855f27750d9d8480a4e851a4
python3 tools/check_conventions.py --base 9090972b7e91fd266819cbd77a8b058e177b5682
ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "patched_self_imports|guest_directory|guest_opendir2|guest_fdopendir|guest_posix_filesystem|guest_posix_wrap|guest_kernel_sys_aio|guest_aio|guest_ampr|guest_wcsrtombs|guest_libc_internal_aligned_new|guest_new_handler|guest_kernel_sys_pwrite"
# negative control: the 11 production files restored from main
git show 9090972b7e91fd266819cbd77a8b058e177b5682:<path> > <path>
ninja -C build -j32 -l32 libs patched_self_imports_tests
ctest --test-dir build --output-on-failure -R "^patched_self_imports$"
# restore the merged files
git show a200042f4212607ed244e8a51a9c4b5ca8ee051e:<path> > <path>
ninja -C build -j32 -l32 libs patched_self_imports_tests
ctest --test-dir build -V -R "^patched_self_imports$"
git status --porcelainResults
| Check | Result |
|---|---|
git diff --check |
Clean |
check_conventions.py |
All conventions checks passed |
Configure, build, libs (script) |
OK |
| Script test run (3608 tests) | No new failures and no timeouts. The 9 known failures also fail on main. The unexpected guest_net_ctl skip also happens on main. |
| Focused tests (25, listed above) | 25/25 pass, the longest is patched_self_imports at 0.99 s |
patched_self_imports on the merged tree |
No patched library imports a name it exports (405 libraries) |
| Negative control | Fails with the eight names from the description |
| Worktree after restoring | git status --porcelain is empty |
| Validation-layer comparison | Not applicable: the change touches no AGC driver, shader recompiler or VideoOut file |
Negative control output
1/1 Test #410: patched_self_imports .............***Failed 0.91 sec
libSceAmpr.prx imports sZLrjx-yEx4, a name it also exports, so the import can bind to its own export
libkernel_sys.prx imports C2kJ-byS5rM, a name it also exports, so the import can bind to its own export
libScePosixForWebKit.prx imports J0kng1yac3M, a name it also exports, so the import can bind to its own export
libScePosixForWebKit.prx imports XepdqehVYe4, a name it also exports, so the import can bind to its own export
libScePosixForWebKit.prx imports ay3uROQAc5A, a name it also exports, so the import can bind to its own export
libScePosixForWebKit.prx imports lybyyKtP54c, a name it also exports, so the import can bind to its own export
libSceLibcInternal.prx imports s2eGsgUF9vk, a name it also exports, so the import can bind to its own export
libSceLibcInternal.prx imports v09ZcAhZzSc, a name it also exports, so the import can bind to its own export
Negative control
I restored all 11 non-test files the PR changes from main. The test registration in core/libs/CMakeLists.txt and PatchedSelfImports.cpp stayed as merged. After rebuilding libs, patched_self_imports failed and reported the same eight self-imports the description lists. These include the two libSceLibcInternal ones that B-Howell found in their comment. I then restored the merged files and rebuilt, and the test passed again (405 libraries). The worktree matched the merged tree at the end.
Findings
Blocking
None.
Non-blocking
- The
Depends online doesn't match the author's comment. In the 2026-10-31 reply to MarcZX10, the author wroteDepends on: #9019, #12868, and said this PR would rebase onto #12868'sAio.cppstructure once that PR lands. The current checklist names only #9019. The new call atcore/libs/prx/libkernel_sys/Aio.cpp:98is the line #12868 restructures, according to MarcZX10's review. Either restore #12868 on the line or say on the PR that the order with #12868 no longer matters. This keeps the landing-order record CONTRIBUTING asks for consistent. - The new helpers use the default ABI.
WideToMultibyteChecked_nid_no_patch(core/libs/prx/libc/src/Multibyte.cpp:372),AlignedArrayNewNothrow_nid_no_patchandAlignedArrayDelete_nid_no_patch(core/libs/prx/libc/src/StdioExtras.cpp:171,:191) andPosixPwrite_nid_no_patch(core/libs/prx/libkernel/File/src/Stdio.cpp:1117) have noAPS5_VABI. The directory helpers do have it. All callers are host code, and each declaration matches its definition, so this is correct. It is only noted as an inconsistency between the helpers.
Not verified
- No title was run; the hang fix for Apotris, FFTARecomp and the other titles rests on the author's report.
- The Windows and macOS builds of this head were not built here. MarcZX10's review reports the hosted Windows job passing on an earlier head,
fe58f461d6. - I could not check that the PR merges with #9019 without conflict, which the author reports from
git merge-tree. That needs the other PR's head, and the sandbox has no network. - GPU tests on vendors other than lavapipe were not run; the change touches no GPU path.
|
@XairRrR thanks for the run and the negative control.
|
|
Re-tested
AI-assisted: yes (Claude Code) |
|
Status update on the CI blocker identified in the Windows report above: #15259 is now merged into main as A fresh Build based on current main can therefore use the existing test fix; no duplicate timeout patch is needed in this PR. I verified the merged registration and hosted result, but did not rerun the #9019 + #13730 composition or replace this PR's old failed check. Upstream READ permissions prevent me from dispatching that fresh manual Build. AI-assisted: yes. |
9056177 to
dee2698
Compare
|
The |
|
@MarcZX10 thanks for the re-review. On the two things you could not check:
|
|
@MarcZX10 one mechanical thing about the re-review: it was submitted as a comment, so GitHub still counts your change request of 01:58Z as your latest review with a verdict, and |
|
One more instance for this table, from today's Effect, measured on a non-ASan #19762 currently reverts #19411, so the test goes green before this lands; with the case in this table the forward could come back unchanged. Details and the reproduction commands: #19762 (comment) AI-assisted. |
libScePosixForWebKit forwards opendir, closedir, readdir and readdir_r to libc's functions of the same NIDs, libSceAmpr forwards sceAmprWcstombsS to libc's wcstombs_s, libSceLibcInternal forwards its aligned nothrow new[] and aligned delete[] and the ten std::numpunct<char> members to libc's, libkernel_web forwards _dup2, _execve and _execvpe to libkernel_sys's, libSceFreeTypeOt forwards FT_Stroker_Export to libSceFreeType's, libSceLibcInternal forwards time_put<wchar_t>::_Getcat to libc's, and libkernel_sys's AIO writes call libkernel's pwrite, whose NID libkernel_sys also exports. After NID patching such an import has the name of the library's own export, and when that library comes before the provider in the lookup scope, the import binds to the export: the WebKit, Ampr, LibcInternal, kernel_web and FreeTypeOt forwarders call themselves forever, and an AIO write reaches libkernel_sys's unimplemented pwrite. The providers now keep each body in a _nid_no_patch function that the export and the forwarders call. patched_self_imports checks on Linux that no patched library imports a name it exports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
378d918 to
6c5bee0
Compare
|
@kaiffeetasse thanks for the scan. For Your point about |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the implementation and targeted test support the stated fix, while execution checks were not run during this review.
What I ran
No commands or tests were run. I reviewed head 6c5bee0282cee61ea578b2e75f93caefac0337b1 from the prepared diff and the repository reader; the author-reported checks in the PR description were not run by me.
Results
| Check | Result | Note |
|---|---|---|
| Diff and changed lines | passed | All 21 changed files read |
| Targeted helper code | passed | Forwarding paths and signatures reviewed |
| Tests and build | not run | Author-reported results only |
Findings
Blocking
None.
Non-blocking
None.
Not verified
No build, tests, or runtime behavior were independently verified. The PR description reports those results, but they are author-supplied. No files were excluded from review according to the prepared manifest.
To get this to a good state
Nothing is required.
…porting their own NIDs libSceLibcInternal's ctype<char> do_tolower, do_toupper and destructor exports called libc's exports of the same NIDs. After NID patching such an import has the name of the module's own export, so it can bind to itself, as 6c5bee0 (boykopovar#13730) describes for the numpunct<char> forwarders, and patched_self_imports failed on the merge with main for all six NIDs. libc now keeps the six bodies in CtypeDoTolower_nid_no_patch and the other _nid_no_patch functions that its exports, its vtable and libSceLibcInternal's forwarders call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What
Six libraries forward an export to another library's function of the same NID:
opendir,closedir,readdir,readdir_r(#12386,*_nid_disambig1_nid_postfix)opendir_nid_postfix…sceAmprWcstombsS(sZLrjx-yEx4)wcstombs_s_nid_postfix(sZLrjx-yEx4)Aio.cpp(and its own unimplementedpwrite_nid_postfix,C2kJ-byS5rM)pwrite_nid_disambig1_nid_postfix(C2kJ-byS5rM)_dup2(W8f1adVl+48),_execve(ScfDTOqLOMw),_execvpe(-3nj+K1elI0),*_nid_disambig1_nid_postfix(418e5c8, 2026-11-07)_dup2_nid_postfix,_execve_nid_postfix,_execvpe_nid_postfix(same NIDs)FT_Stroker_Export(2rcvKZfm5rI, 4a71da0, onmainsince 2026-11-12)FT_Stroker_Export_nid_postfix(same NID)new[]nothrow (s2eGsgUF9vk) and aligneddelete[](v09ZcAhZzSc) inAlignedNew.cpp(#14240); the tenstd::numpunct<char>members inNumpunct.cpp(#14373):decimal_point,thousands_sep,grouping,truename,falsenameand theirdo_versions;time_put<wchar_t>::_Getcat(bF2uVCqVhBY) inFacetPut.cpp(8cde12b, onmainsince 2026-11-15)_ZnamSt11align_val_tRKSt9nothrow_t_nid_postfixand_ZdaPvSt11align_val_t_nid_postfix; libc's_ZNKSt8numpunctIcE…_nid_postfix; libc's_ZNSt8time_putIw…7_Getcat…_nid_postfix(same NIDs)After NID patching the import and the library's own export have the same name, for example
ay3uROQAc5Ain libScePosixForWebKit (nm -D:U ay3uROQAc5AandT ay3uROQAc5A). On Linux the import binds to the first definition in the lookup scope, and when the library comes before the provider it binds to its own export. libScePosixForWebKit'sopendirisjmp ay3uROQAc5A@plt, so it jumps to itself forever: Apotris (PPSA98513), FFTARecomp (PPSA98512) and DevilutionX (PPSA98514) hang at start at about 95% of one core with no system calls, and gdb samples are always inopendir_nid_disambig1_nid_postfixor that PLT entry. WithLD_PRELOADof the patchedlibc.prx, which puts libc first in the scope, Apotris starts.sceAmprWcstombsS, libSceLibcInternal's two aligned forwarders, libkernel_web's three and libSceFreeTypeOt's one can loop the same way, and an AIO write can reach libkernel_sys'sNotImplementedpwrite. PE and Mach-O imports name their library, so Windows and macOS don't have this.Each provider now keeps the body in a
_nid_no_patchfunction (OpenDirectory,ReadDirectory,ReadDirectoryEntry,CloseDirectory,WideToMultibyteChecked,AlignedArrayNewNothrow,AlignedArrayDelete, the tenNumpunct…functions such asNumpunctDecimalPointandNumpunctDoDecimalPoint, libkernel_sys'sGuestDup2,GuestExecveandGuestExecvpe, libSceFreeType'sStrokerExport, libc'sLibcWideTimePutGetcat, and #9019'sPosixPwrite), its export calls that function, and the forwarders call it too. The body has to move, because a_nid_no_patchwrapper that called the exported name could itself be interposed. Nothing changes in what the functions do.patched_self_imports(Linux, depends onlibs, likewindows_import_identity) reads the dynamic symbols of every.prxincore/libs/libsand fails for an import whose name the same library exports. Without the fixes it reports the eight names of the first four rows, since #14373 the tennumpunct<char>members, since 418e5c8 libkernel_web's three, since 4a71da0 libSceFreeTypeOt's one, and since 8cde12b libSceLibcInternal'stime_put<wchar_t>::_Getcat(the first 21 are the namesnm -Dshowed both imported and exported in the patched libraries ofmain3a0a54bbd8; the last two are what the test printed onmain4a590b5085andb7aeb6f406with the other fixes in):With this PR:
No patched library imports a name it exports (413 libraries).Landing order (CONTRIBUTING: overlapping PRs agree an order): #9019 is merged (
0db469c769), and this PR's head merges cleanly with currentmain.pwritethePosixPwrite_nid_no_patchhelper. Since the rebase ontod63781e9cethis PR no longer carries that hunk; it only calls the helper from libkernel_sys's AIO write.LocaleSupport.cpp(both blocks kept; whichever merges second rebases, and I'll do it for this one); feat(libs): mirror libkernel exports through libkernel_sys #18190 and feat(libs): mirror libkernel exports through libkernel_web #18112 are stacked on this PR's commit and rebase after it; feat(libSceFreeTypeOt): export the fixed-point arithmetic helpers #16823 and feat(libSceFreeTypeOt): resolve the exports libSceFreeType already implements #17865 add code next to libSceFreeTypeOt'sFT_Stroker_Exportforwarder (adjacent lines, not the same function); feat(libSceFreeTypeOt): restore outline bitmap forwarding #20047 restores libSceFreeTypeOt'sFT_Outline_Get_Bitmapforward (feat(libSceFreeTypeOt): forward outline bitmap rendering #19411, reverted by revert: libSceFreeTypeOt forwarded outline bitmap rendering (#19411) #19762 because it imported its own NID4RRjK-Wd1lU) with the same convention as here, and merges cleanly with it. refactor(prx): name the libSceLibcInternal export aliases the NID databases resolve #17300 renames libSceLibcInternal's inventory placeholders, among them thetime_put<wchar_t>::_GetcatNID thatmainhas implemented since 8cde12b (it conflicts withmainthere, not with a line of this PR). feat(libkernel_sys): implement _wait4 #18659 (_wait4) was merged first on 2026-11-12, and this head is rebased over it; feat(libc): implement Cnd-init, spin-lock, unexpected and std-tag exports #18122 was re-scoped the same day and no longer forwards anything.pwrite's body for cancellation, which meets feat(libkernel_sys): implement pwrite through the shared POSIX provider #9019's lines inmain, not a line of this PR's own.Tested
Linux Mint 22.3, kernel 7.0.0-38, GCC 13.3.0, Release,
BUILD_TESTING=ON, head6c5bee0282onmainb7aeb6f406. The titles ran on earlier heads, before the rebases that added the alignednew/delete, thenumpunct<char>, the libkernel_web, the libSceFreeTypeOt and thetime_putforwarders: the first headfe58f461d6, which differs only in the name of the pwrite helper and where the test is registered, ande9e816f6c7for I Wanna Be The Guy.Catalog titles, converted with
--to-intel, 60 s each under Xvfb on an NVIDIA GTX 1050 Ti (580.178.04):mainopendiropendir(gdb)e9e816f6c7)On this head: rebased onto
b7aeb6f406,patched_self_importsfailed with thebF2uVCqVhBYline before thetime_putfix and passes with it (413 libraries);guest_localeandguest_libc_internal_facet_putpass. All tests once and every GPU test on each of the three devices, under Xvfb, against a--fullrun ofmain3a0a54bbd8: NVIDIA GTX 1050 Ti 5621 run, 0 failed; Intel HD Graphics 630 (Mesa 25.2.8) 1822 run, 9 failed; llvmpipe 1822 run, 11 failed. Run alone three times each, five of those pass 3/3 (agc_driver_frame_replay_rewind_copy,agc_driver_runtime_buffer_spans_x{2,3,4}_spans,guest_kernel_sys_paths_readlinkat_limits). The other 15 fail 3/3 alone, and fail the same way 3/3 on unmodifiedmainb7aeb6f406built on the same machine: on both devicesagc_draw_input_mirrorsandagc_draw_input_reuse; on the HD Graphics 630agc_driver_gcn_display_presentand…_present_trigger(no DRI3 under Xvfb),agc_driver_image_sample_lod_clampand the threeagc_driver_native_color_{readback,snapshot,snapshot_refusals}; on llvmpipeagc_driver_coherent_atomic_loads_enabled(timeout),agc_driver_global_atomic_csub,agc_driver_host_write_shadowed_unit,agc_driver_stencil_copy_drawandagc_driver_scattered_runs("allocation failure closed the backing descriptor" on both; on this head one earlier set of three ended in an exception instead).guest_icu_recovered_signatures_testsdoes not link onb7aeb6f406itself (fixed onmainby #20844).The tests nearest to the changed code (
patched_self_imports, the directory, multibyte, POSIX-for-WebKit, AIO, Ampr, alignednew/delete,numpunct, locale, FreeType andguest_kernel_web_forwards) are in that run and pass (the suite runs a test on one device when the--fullrun showed it does not depend on the GPU;patched_self_importsran on all three).check_skips.pynames no unexpected skip on any device.check_conventions.py,check_test_registration.py,check_main_sync.py,check_compile.pyandgit diff --checkare clean;pr_overlap.py --branchlists only the PRs in the landing-order paragraph.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code