libSceNet: sceNetResolverAbort and sceNetResolverStartNtoaMultipleRecords are stubs; fix branch ready #3153

Closed
opened 2026-10-10 23:23:24 +00:00 by screamm · 3 comments
screamm commented 2026-10-10 23:23:24 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-10T23:23:24Z.


In libSceNet (Export.cpp) sceNetResolverAbort and sceNetResolverStartNtoaMultipleRecords are NotImplemented_nid_no_patch stubs. UFC 6 (PPSA23566, #992, #1502), Palworld (PPSA23126) and LEGO Horizon Adventures (PPSA14632) import them; no run has stopped on them yet.

Fix branch ready: screamm:feat/net-resolver-abort (fb7c1ff3, one commit on main d2f43cb8). I cannot open it as a PR because of the intake check; anyone eligible is welcome to carry it, keeping the commit as is. It is a rewrite on current main of what the intake-closed #2557 did.

  • sceNetResolverStartNtoaMultipleRecords(rid, hostname, info, timeout, retry, flags) shares the lookup of the Ex form (up to 10 IPv4 records into the 384-byte struct, EINVAL for null pointers); any nonzero flag throws like the Ex form.
  • sceNetResolverAbort(rid, flags): unknown id EBADF first; with no lookup running, flag 1 makes the next name-to-address lookup on that resolver fail with EINTR (0x80410104) and flag 2 the next sceNetResolverStartAton, reported through sceNetResolverGetError and used up only after the call's argument checks pass; while a lookup runs on another thread the abort returns at once and that lookup finishes and fails with EINTR without writing its output. Flag bits other than 1 and 2 throw. Sources: shadPS4 net.cpp/net_resolver.cpp/net_types.h at 811bfcd7, SharpProspero Interop/Net/Socket.cs for the signature; recorded in TechnicalDebt as unverified on hardware, and the obsolete "signature unknown" note for the abort is removed.
  • guest_sce_net gains the multiple-record lookup compared byte for byte with the Ex result, null arguments, an unresolvable name, the throwing flags, abort with flags 0 to 3 including isolation between two resolvers, throwing abort flags, and EBADF for a destroyed id.

Tested on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, BUILD_TESTING=ON, full build including libs: guest_sce_net 3/3; ctest -j8 -E "^agc_driver_|^video_out_flip" 475/475; with main's Export.cpp the extended test fails; tools/check_conventions.py --base main and git diff --check pass. Not run on Linux. Abort during a running lookup has no test (localhost resolves too fast to race).

Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5796196073 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3153). Originally posted by [screamm](https://github.com/screamm) on 2026-10-10T23:23:24Z. --- In libSceNet ([Export.cpp](https://github.com/boykopovar/AnyPS5/blob/main/core/libs/prx/libSceNet/Export.cpp)) `sceNetResolverAbort` and `sceNetResolverStartNtoaMultipleRecords` are `NotImplemented_nid_no_patch` stubs. UFC 6 (PPSA23566, #992, #1502), Palworld (PPSA23126) and LEGO Horizon Adventures (PPSA14632) import them; no run has stopped on them yet. **Fix branch ready:** [`screamm:feat/net-resolver-abort`](https://github.com/screamm/AnyPS5/tree/feat/net-resolver-abort) (`fb7c1ff3`, one commit on `main` `d2f43cb8`). I cannot open it as a PR because of the intake check; anyone eligible is welcome to carry it, keeping the commit as is. It is a rewrite on current `main` of what the intake-closed #2557 did. - `sceNetResolverStartNtoaMultipleRecords(rid, hostname, info, timeout, retry, flags)` shares the lookup of the Ex form (up to 10 IPv4 records into the 384-byte struct, `EINVAL` for null pointers); any nonzero flag throws like the Ex form. - `sceNetResolverAbort(rid, flags)`: unknown id `EBADF` first; with no lookup running, flag 1 makes the next name-to-address lookup on that resolver fail with `EINTR` (0x80410104) and flag 2 the next `sceNetResolverStartAton`, reported through `sceNetResolverGetError` and used up only after the call's argument checks pass; while a lookup runs on another thread the abort returns at once and that lookup finishes and fails with `EINTR` without writing its output. Flag bits other than 1 and 2 throw. Sources: shadPS4 `net.cpp`/`net_resolver.cpp`/`net_types.h` at `811bfcd7`, SharpProspero `Interop/Net/Socket.cs` for the signature; recorded in TechnicalDebt as unverified on hardware, and the obsolete "signature unknown" note for the abort is removed. - `guest_sce_net` gains the multiple-record lookup compared byte for byte with the Ex result, null arguments, an unresolvable name, the throwing flags, abort with flags 0 to 3 including isolation between two resolvers, throwing abort flags, and `EBADF` for a destroyed id. **Tested** on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, `BUILD_TESTING=ON`, full build including `libs`: `guest_sce_net` 3/3; `ctest -j8 -E "^agc_driver_|^video_out_flip"` 475/475; with `main`'s `Export.cpp` the extended test fails; `tools/check_conventions.py --base main` and `git diff --check` pass. Not run on Linux. Abort during a running lookup has no test (localhost resolves too fast to race). Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).
blawesom commented 2026-10-11 09:53:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-11T09:53:00Z.


Independent verification on Linux (the gap noted in the report): CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON.

  • Rebased fb7c1ff3 onto current main (the branch was 638 commits behind): one conflict in docs/dev/TechnicalDebt.md, resolved by keeping both this entry and main's newer entries; no code conflicts.
  • tools/check_conventions.py --base origin/main and git diff --check pass.
  • guest_sce_net passes.
  • Full suite mirroring the Windows run (ctest -j8 -E "^agc_driver_|^video_out_flip"): 520/520 passed.

The rebased branch is available at blawesom:verify/3153 for anyone carrying — the commit is otherwise unchanged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6107770628 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3153#issuecomment-6107770628). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-11T09:53:00Z. --- Independent verification on **Linux** (the gap noted in the report): CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, `BUILD_TESTING=ON`. - Rebased `fb7c1ff3` onto current `main` (the branch was 638 commits behind): one conflict in `docs/dev/TechnicalDebt.md`, resolved by keeping both this entry and main's newer entries; no code conflicts. - `tools/check_conventions.py --base origin/main` and `git diff --check` pass. - `guest_sce_net` passes. - Full suite mirroring the Windows run (`ctest -j8 -E "^agc_driver_|^video_out_flip"`): **520/520 passed**. The rebased branch is available at [`blawesom:verify/3153`](https://github.com/blawesom/AnyPS5/tree/verify/3153) for anyone carrying — the commit is otherwise unchanged.
MarcZX10 commented 2026-10-11 16:03:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T16:03:45Z.


Carried David’s ready resolver commit unchanged into #3728, preserving its author metadata. I based it on current main and retained the current TechnicalDebt entries; the independent Linux verification is summarized in the PR description.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6110919868 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3153#issuecomment-6110919868). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-11T16:03:45Z. --- Carried David’s ready resolver commit unchanged into #3728, preserving its author metadata. I based it on current main and retained the current TechnicalDebt entries; the independent Linux verification is summarized in the PR description.
oneandonlydean commented 2026-10-13 02:08:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T02:08:03Z.


Closing: fixed by #3728.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6136618585 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3153#issuecomment-6136618585). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-13T02:08:03Z. --- Closing: fixed by #3728.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#3153
No description provided.