fix(libc): name the extended errno values in strerror as titles' libc.prx does #12527

Merged
JJenkx merged 2 commits from upstream-pr/12527 into main 2026-10-29 22:01:08 +00:00
JJenkx commented 2026-10-28 17:35:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-28T17:35:18Z.


What

strerror, strerror_r, strerror_s and strerrorlen_s now name eight error numbers above the FreeBSD range the way the libc.prx that PS5 titles ship does. main answered error_code=0x%08x for them.

number titles' text
107 State not recoverable
108 Owner dead
152 File positioning error
1040 No message available
1050 No stream resources
1051 Not a stream
1062 Other
1074 Stream timeout

perror and syslog's %m read strerror_r, so they follow. Every other number already matched.

This doesn't contradict the measurements in the debt entry:

  • @orezraey's firmware 13.60 probe (#11127) covered 0 to 94, 95, 96, 97, 100, 1000, -1, INT_MAX and INT_MIN.
  • The PS4 libc.prx measurement covered a similar sample.

Neither tried these eight numbers. The entry now says which numbers each source covered, and that the eight extra names weren't run on a console.

Tested

Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, WinLibs GCC 15.2.0 UCRT r7, Ninja, Release, BUILD_TESTING=ON, head 603fccf608 on main 470a562903.

  • Native comparison: a scratch loader runs the decrypted libc.prx of PPSA05916, PPSA07923 and PPSA13934 natively. It calls their strerror by NID for every number from -2000 to 2000, plus INT_MAX, INT_MIN, 65535, 65536, 0x10000000 and -65536 (4,007 numbers).
    • main: 8 differences in each title, exactly the eight numbers above; the three titles agree.
    • This PR: 0 differences in all three.
  • The other functions: strerror_r and strerror_s (texts and return values) and strerrorlen_s give the same results as the titles in all three for 95, 96, the eight numbers, and 1075.
  • Unit tests: guest_errors now checks the eight texts through strerror and strerror_r, and checks that their neighbours (106, 109, 151, 153, 1039, 1041, 1075) keep error_code=…. With main's Errors.cpp and the new test, guest_errors fails.
  • Regression set: guest_errors, guest_safe_errors, guest_syslog, guest_host_standard_error_windows and guest_err pass 3/3. Conventions pass.

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)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5054923650 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12527). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-28T17:35:18Z. --- ### What `strerror`, `strerror_r`, `strerror_s` and `strerrorlen_s` now name eight error numbers above the FreeBSD range the way the `libc.prx` that PS5 titles ship does. `main` answered `error_code=0x%08x` for them. | number | titles' text | |---|---| | 107 | State not recoverable | | 108 | Owner dead | | 152 | File positioning error | | 1040 | No message available | | 1050 | No stream resources | | 1051 | Not a stream | | 1062 | Other | | 1074 | Stream timeout | `perror` and syslog's `%m` read `strerror_r`, so they follow. Every other number already matched. This doesn't contradict the measurements in the debt entry: - @orezraey's firmware 13.60 probe (#11127) covered 0 to 94, 95, 96, 97, 100, 1000, -1, `INT_MAX` and `INT_MIN`. - The PS4 `libc.prx` measurement covered a similar sample. Neither tried these eight numbers. The entry now says which numbers each source covered, and that the eight extra names weren't run on a console. ### Tested Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, WinLibs GCC 15.2.0 UCRT r7, Ninja, Release, `BUILD_TESTING=ON`, head `603fccf608` on `main` `470a562903`. - **Native comparison:** a scratch loader runs the decrypted `libc.prx` of PPSA05916, PPSA07923 and PPSA13934 natively. It calls their `strerror` by NID for every number from -2000 to 2000, plus `INT_MAX`, `INT_MIN`, 65535, 65536, 0x10000000 and -65536 (4,007 numbers). - **`main`:** 8 differences in each title, exactly the eight numbers above; the three titles agree. - **This PR:** 0 differences in all three. - **The other functions:** `strerror_r` and `strerror_s` (texts and return values) and `strerrorlen_s` give the same results as the titles in all three for 95, 96, the eight numbers, and 1075. - **Unit tests:** `guest_errors` now checks the eight texts through `strerror` and `strerror_r`, and checks that their neighbours (106, 109, 151, 153, 1039, 1041, 1075) keep `error_code=…`. With `main`'s `Errors.cpp` and the new test, `guest_errors` fails. - **Regression set:** `guest_errors`, `guest_safe_errors`, `guest_syslog`, `guest_host_standard_error_windows` and `guest_err` pass 3/3. Conventions pass. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-10-28 18:07:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T18:07:03Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The added errno mappings and focused assertions look sound, but the debt entry for the related Annex K functions now overstates what was verified against firmware 13.60.

What I ran

Reviewed head 603fccf60833c4a363625191a485cc77432dd0c5 against the PR base 2199ee0d478096a794c933321cdad7c0ec2ea94e; also checked the head against current main e4da19aff06e25ae16b90f460dff22e8ac1eb786. It merges cleanly with current main (merge tree 72a049ec7df2762d33d49a234f7eb153dbe26e6d). Environment: Debian 12, GCC 12.2.0, QEMU TCG. The focused Linux test used the exact PR Errors.cpp and GuestErrors.cpp blobs in an existing build based on 470a5629036c987e6a141979b9dc576c736f4193; those touched code/test files have no intervening changes through current main.

git fetch upstream main --quiet
git fetch upstream refs/pull/12527/head:refs/codex/review-12527 --quiet
git merge-tree --write-tree upstream/main refs/codex/review-12527
git diff --check upstream/main..refs/codex/review-12527
# In the temporary Linux build, after staging the exact Errors.cpp and GuestErrors.cpp blobs from refs/codex/review-12527:
cmake --build build-review-12523 --target guest_error_tests --parallel 2
qemu-x86_64 -cpu max ./build-review-12523/tests/guest_error_tests
# Negative control: restore upstream/main's Errors.cpp, keep the PR GuestErrors.cpp, rebuild, and run:
cmake --build build-review-12523 --target guest_error_tests --parallel 2
qemu-x86_64 -cpu max ./build-review-12523/tests/guest_error_tests

Results

Check Result
Current-main merge Clean; merge tree 72a049ec7df2762d33d49a234f7eb153dbe26e6d
git diff --check Passed (exit 0; no output)
PR guest_error_tests source/test blobs Built successfully (4/4 build steps); passed under QEMU TCG (exit 0)
Negative control With current main Errors.cpp and the PR test unchanged, the test aborted with exit 134, as expected
Hosted conventions, intake, eligibility, labels Passed
Hosted Windows product job Passed as a workflow check, but its log shows the selective build and CTest steps were skipped
Hosted Windows relinker job Build passed; CTest reported 397/401 passed and four 120-second timeouts in check_main_sync, debt_split, hardware_oracle, and pr_overlap_branch_scan
Hosted Linux product job Skipped
Hosted macOS relinker/register-context/write-watch jobs Pending at review time
Author-reported native comparison and other error suites Reported as passing; not independently reproduced here
Unedited focused test output

PR build output:

[1/4] Building CXX object core/libs/CMakeFiles/libc.dir/prx/libc/src/Errors.cpp.o
[2/4] Linking CXX shared library core/libs/libs/unpatched/libc.prx
[3/4] Building CXX object core/libs/prx/libc/CMakeFiles/guest_error_tests.dir/__/__/tests/GuestErrors.cpp.o
[4/4] Linking CXX executable tests/guest_error_tests

The PR test executable exited 0 under QEMU and printed no output.

Negative-control output:

qemu: uncaught target signal 6 (Aborted) - core dumped
negative_control_exit=134
/bin/bash: line 1: 1937700 Aborted                 qemu-x86_64 -cpu max ./build-review-12523/tests/guest_error_tests

Hosted relinker CTest summary:

99% tests passed, 4 tests failed out of 401
The following tests FAILED:
	 54 - check_main_sync (Timeout)
	 75 - debt_split (Timeout)
	 77 - hardware_oracle (Timeout)
	 83 - pr_overlap_branch_scan (Timeout)
Errors while running CTest

Negative control

Assertion Change to code under test Result
The new errno text assertions detect the old behavior Restored current-main Errors.cpp; kept the PR's new GuestErrors.cpp unchanged Test aborted with exit 134; restoring the PR implementation made it pass

Findings

Blocking

  • The strerror_s/strerrorlen_s debt note has stale provenance. At this head, both functions obtain text through ReadErrorMessage, which calls strerror_r; they therefore now return the eight new title-derived messages as well. The neighboring debt entry says those eight were not run on a console, while the strerror_s/strerrorlen_s entry still says their text matches PS5 firmware 13.60. The PR reports checking the added values against three shipped title libc.prx files, not firmware 13.60. Please update that entry to distinguish the title measurements from the firmware measurements and say that firmware behavior for the eight added values is unverified.

Non-blocking

  • The Windows relinker CTest failure consists of four timeouts in repository tooling tests; the 397 remaining relinker tests passed. I found no direct evidence tying those timeouts to this libc change. The normal Windows workflow did not run its build/CTest steps for this PR, so the author’s Windows 11 results remain the available Windows feature-test evidence.
  • The shared-file overlap warning for #10324 concerns a separate perror orientation line and a separate debt-doc entry. I manually checked both hunks; they do not overlap this change’s lines. perror will consume the new strerror_r text through its existing call.

Sources

Not verified

I did not run the three-title native loader comparison, Windows 11, macOS, or PS5 console tests. The author reports the native comparison and Windows regression suite as passing. I independently ran only the focused guest_error_tests source/test pair under QEMU; the normal hosted Windows job skipped its selective build and CTest steps.

To get this to a good state

Please update the strerror_s/strerrorlen_s debt entry to distinguish which extended values were measured on titles and which were measured on firmware 13.60. I’ll re-review the new head and rerun the focused test and negative control.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5687443695 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12527#pullrequestreview-5687443695). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T18:07:03Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The added errno mappings and focused assertions look sound, but the debt entry for the related Annex K functions now overstates what was verified against firmware 13.60. ### What I ran Reviewed head `603fccf60833c4a363625191a485cc77432dd0c5` against the PR base `2199ee0d478096a794c933321cdad7c0ec2ea94e`; also checked the head against current `main` `e4da19aff06e25ae16b90f460dff22e8ac1eb786`. It merges cleanly with current `main` (merge tree `72a049ec7df2762d33d49a234f7eb153dbe26e6d`). Environment: Debian 12, GCC 12.2.0, QEMU TCG. The focused Linux test used the exact PR `Errors.cpp` and `GuestErrors.cpp` blobs in an existing build based on `470a5629036c987e6a141979b9dc576c736f4193`; those touched code/test files have no intervening changes through current `main`. ```sh git fetch upstream main --quiet git fetch upstream refs/pull/12527/head:refs/codex/review-12527 --quiet git merge-tree --write-tree upstream/main refs/codex/review-12527 git diff --check upstream/main..refs/codex/review-12527 # In the temporary Linux build, after staging the exact Errors.cpp and GuestErrors.cpp blobs from refs/codex/review-12527: cmake --build build-review-12523 --target guest_error_tests --parallel 2 qemu-x86_64 -cpu max ./build-review-12523/tests/guest_error_tests # Negative control: restore upstream/main's Errors.cpp, keep the PR GuestErrors.cpp, rebuild, and run: cmake --build build-review-12523 --target guest_error_tests --parallel 2 qemu-x86_64 -cpu max ./build-review-12523/tests/guest_error_tests ``` ### Results | Check | Result | |---|---| | Current-main merge | Clean; merge tree `72a049ec7df2762d33d49a234f7eb153dbe26e6d` | | `git diff --check` | Passed (exit 0; no output) | | PR `guest_error_tests` source/test blobs | Built successfully (4/4 build steps); passed under QEMU TCG (exit 0) | | Negative control | With current `main` `Errors.cpp` and the PR test unchanged, the test aborted with exit 134, as expected | | Hosted conventions, intake, eligibility, labels | Passed | | Hosted Windows product job | Passed as a workflow check, but its log shows the selective build and CTest steps were skipped | | Hosted Windows relinker job | Build passed; CTest reported 397/401 passed and four 120-second timeouts in `check_main_sync`, `debt_split`, `hardware_oracle`, and `pr_overlap_branch_scan` | | Hosted Linux product job | Skipped | | Hosted macOS relinker/register-context/write-watch jobs | Pending at review time | | Author-reported native comparison and other error suites | Reported as passing; not independently reproduced here | <details> <summary>Unedited focused test output</summary> PR build output: ```text [1/4] Building CXX object core/libs/CMakeFiles/libc.dir/prx/libc/src/Errors.cpp.o [2/4] Linking CXX shared library core/libs/libs/unpatched/libc.prx [3/4] Building CXX object core/libs/prx/libc/CMakeFiles/guest_error_tests.dir/__/__/tests/GuestErrors.cpp.o [4/4] Linking CXX executable tests/guest_error_tests ``` The PR test executable exited 0 under QEMU and printed no output. Negative-control output: ```text qemu: uncaught target signal 6 (Aborted) - core dumped negative_control_exit=134 /bin/bash: line 1: 1937700 Aborted qemu-x86_64 -cpu max ./build-review-12523/tests/guest_error_tests ``` Hosted relinker CTest summary: ```text 99% tests passed, 4 tests failed out of 401 The following tests FAILED: 54 - check_main_sync (Timeout) 75 - debt_split (Timeout) 77 - hardware_oracle (Timeout) 83 - pr_overlap_branch_scan (Timeout) Errors while running CTest ``` </details> ### Negative control | Assertion | Change to code under test | Result | |---|---|---| | The new errno text assertions detect the old behavior | Restored current-main `Errors.cpp`; kept the PR's new `GuestErrors.cpp` unchanged | Test aborted with exit 134; restoring the PR implementation made it pass | ### Findings **Blocking** - **The `strerror_s`/`strerrorlen_s` debt note has stale provenance.** At this head, both functions obtain text through `ReadErrorMessage`, which calls `strerror_r`; they therefore now return the eight new title-derived messages as well. The neighboring debt entry says those eight were not run on a console, while the `strerror_s`/`strerrorlen_s` entry still says their text matches PS5 firmware 13.60. The PR reports checking the added values against three shipped title `libc.prx` files, not firmware 13.60. Please update that entry to distinguish the title measurements from the firmware measurements and say that firmware behavior for the eight added values is unverified. **Non-blocking** - The Windows relinker CTest failure consists of four timeouts in repository tooling tests; the 397 remaining relinker tests passed. I found no direct evidence tying those timeouts to this libc change. The normal Windows workflow did not run its build/CTest steps for this PR, so the author’s Windows 11 results remain the available Windows feature-test evidence. - The shared-file overlap warning for #10324 concerns a separate `perror` orientation line and a separate debt-doc entry. I manually checked both hunks; they do not overlap this change’s lines. `perror` will consume the new `strerror_r` text through its existing call. ### Sources - [Implementation and extended mappings at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/603fccf60833c4a363625191a485cc77432dd0c5/core/libs/prx/libc/src/Errors.cpp) - [New focused assertions at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/603fccf60833c4a363625191a485cc77432dd0c5/core/libs/tests/GuestErrors.cpp) - [Affected `strerror_s`/`strerrorlen_s` implementation at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/603fccf60833c4a363625191a485cc77432dd0c5/core/libs/prx/libc/src/WideConversion.cpp) - [Debt entries at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/603fccf60833c4a363625191a485cc77432dd0c5/docs/dev/debt/libc.md) - [Contribution rules at current base](https://github.com/boykopovar/AnyPS5/blob/e4da19aff06e25ae16b90f460dff22e8ac1eb786/CONTRIBUTING.md) ### Not verified I did not run the three-title native loader comparison, Windows 11, macOS, or PS5 console tests. The author reports the native comparison and Windows regression suite as passing. I independently ran only the focused `guest_error_tests` source/test pair under QEMU; the normal hosted Windows job skipped its selective build and CTest steps. ### To get this to a good state Please update the `strerror_s`/`strerrorlen_s` debt entry to distinguish which extended values were measured on titles and which were measured on firmware 13.60. I’ll re-review the new head and rerun the focused test and negative control.
MarcZX10 commented 2026-10-28 18:31:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T18:31:17Z.

Review: APPROVED


Re-checked — new head, looks good

The new debt wording now separates the firmware measurements from the eight title-derived names, and the unchanged focused test still passes with the PR implementation while detecting the upstream implementation.

What I ran

Re-checked head e80f7d8048d29ca9e640129f9e05ca799ae20171 against current base f21ef7c99c5af648c5a41bddb18ce118b8e60c46; the PR merges cleanly. Environment: Debian 12 x86_64, GCC 12.2, QEMU user-mode x86_64. The new commit updates documentation; the Errors.cpp and GuestErrors.cpp blobs are unchanged from the previously tested head. I rebuilt those exact PR blobs in the existing Linux test build and reran the focused test and negative control.

git diff --check upstream/main...pr/12527
git merge-tree $(git merge-base upstream/main pr/12527) upstream/main pr/12527
# Extract the exact PR source and test blobs into the temporary test build's source inputs.
ninja -C /tmp/AnyPS5-review-12523/build-review-12523 guest_error_tests -j2
qemu-x86_64 -cpu max /tmp/AnyPS5-review-12523/build-review-12523/tests/guest_error_tests
# Negative control: replace only Errors.cpp with upstream/main's blob, rebuild, run, and record exit 134.
# Restore the PR Errors.cpp blob, rebuild, and rerun; exit 0.

The test binaries used the exact Errors.cpp and GuestErrors.cpp blobs at this head. The build directory is a temporary preconfigured Linux build; no tracked workspace files were modified.

Results

Check Result
Merge onto current base Clean
git diff --check Pass; no output
Focused guest_error_tests with PR implementation Pass under QEMU, exit 0
Negative control with upstream Errors.cpp and PR test unchanged Test aborts, exit 134
Conventions, eligibility, intake, labels Pass
Hosted Windows job Pass; its selective build and CTest steps were skipped
Hosted Linux job Skipped
Hosted macOS jobs Pending when checked
Unedited focused build and test output
$ ninja -C /tmp/AnyPS5-review-12523/build-review-12523 guest_error_tests -j2
ninja: Entering directory `/tmp/AnyPS5-review-12523/build-review-12523'
[0/2] Re-checking globbed directories...
[1/4] Building CXX object core/libs/CMakeFiles/libc.dir/prx/libc/src/Errors.cpp.o
[2/4] Building CXX object core/libs/prx/libc/CMakeFiles/guest_error_tests.dir/__/__/tests/GuestErrors.cpp.o
[3/4] Linking CXX shared library core/libs/libs/unpatched/libc.prx
[4/4] Linking CXX executable tests/guest_error_tests

$ qemu-x86_64 -cpu max /tmp/AnyPS5-review-12523/build-review-12523/tests/guest_error_tests
(exit 0, no output)

Negative control build:
[1/3] Building CXX object core/libs/CMakeFiles/libc.dir/prx/libc/src/Errors.cpp.o
[2/3] Linking CXX shared library core/libs/libs/unpatched/libc.prx
[3/3] Linking CXX executable tests/guest_error_tests

$ qemu-x86_64 -cpu max /tmp/AnyPS5-review-12523/build-review-12523/tests/guest_error_tests
qemu: uncaught target signal 6 (Aborted) - core dumped
/bin/bash: line 7: 2117500 Aborted                 qemu-x86_64 -cpu max /tmp/AnyPS5-review-12523/build-review-12523/tests/guest_error_tests
NEGATIVE_CONTROL_EXIT:134

Restored PR build:
[1/3] Building CXX object core/libs/CMakeFiles/libc.dir/prx/libc/src/Errors.cpp.o
[2/3] Linking CXX shared library core/libs/libs/unpatched/libc.prx
[3/3] Linking CXX executable tests/guest_error_tests
PR_TEST_EXIT:0

Negative control

Assertion Change to code under test Did the new test fail?
The eight extended errno-name assertions detect the prior behavior Replaced only the PR Errors.cpp source blob with current main; left the PR GuestErrors.cpp test unchanged Yes; exit 134. Restoring the PR implementation passed (exit 0)

Findings

Blocking

None remain from my previous review.

Non-blocking

Hosted Linux product tests were skipped, and hosted macOS jobs were pending when checked. The native title comparison remains author-reported; I did not reproduce it.

Sources

Not verified

I did not run the title-native comparison, hosted macOS jobs, other operating systems, or a PS5 console. The Windows hosted workflow passed but skipped CTest; the Linux product job was skipped.

To get this to a good state

No follow-up is needed for the issue raised in my previous review. If the head changes, I will re-check the documentation and rerun the focused test and negative control.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5687746507 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12527#pullrequestreview-5687746507). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T18:31:17Z. **Review:** APPROVED --- # Re-checked — new head, looks good The new debt wording now separates the firmware measurements from the eight title-derived names, and the unchanged focused test still passes with the PR implementation while detecting the upstream implementation. ### What I ran Re-checked head `e80f7d8048d29ca9e640129f9e05ca799ae20171` against current base `f21ef7c99c5af648c5a41bddb18ce118b8e60c46`; the PR merges cleanly. Environment: Debian 12 x86_64, GCC 12.2, QEMU user-mode x86_64. The new commit updates documentation; the `Errors.cpp` and `GuestErrors.cpp` blobs are unchanged from the previously tested head. I rebuilt those exact PR blobs in the existing Linux test build and reran the focused test and negative control. ```sh git diff --check upstream/main...pr/12527 git merge-tree $(git merge-base upstream/main pr/12527) upstream/main pr/12527 # Extract the exact PR source and test blobs into the temporary test build's source inputs. ninja -C /tmp/AnyPS5-review-12523/build-review-12523 guest_error_tests -j2 qemu-x86_64 -cpu max /tmp/AnyPS5-review-12523/build-review-12523/tests/guest_error_tests # Negative control: replace only Errors.cpp with upstream/main's blob, rebuild, run, and record exit 134. # Restore the PR Errors.cpp blob, rebuild, and rerun; exit 0. ``` The test binaries used the exact `Errors.cpp` and `GuestErrors.cpp` blobs at this head. The build directory is a temporary preconfigured Linux build; no tracked workspace files were modified. ### Results | Check | Result | |---|---| | Merge onto current base | Clean | | `git diff --check` | Pass; no output | | Focused `guest_error_tests` with PR implementation | Pass under QEMU, exit 0 | | Negative control with upstream `Errors.cpp` and PR test unchanged | Test aborts, exit 134 | | Conventions, eligibility, intake, labels | Pass | | Hosted Windows job | Pass; its selective build and CTest steps were skipped | | Hosted Linux job | Skipped | | Hosted macOS jobs | Pending when checked | <details> <summary>Unedited focused build and test output</summary> ```text $ ninja -C /tmp/AnyPS5-review-12523/build-review-12523 guest_error_tests -j2 ninja: Entering directory `/tmp/AnyPS5-review-12523/build-review-12523' [0/2] Re-checking globbed directories... [1/4] Building CXX object core/libs/CMakeFiles/libc.dir/prx/libc/src/Errors.cpp.o [2/4] Building CXX object core/libs/prx/libc/CMakeFiles/guest_error_tests.dir/__/__/tests/GuestErrors.cpp.o [3/4] Linking CXX shared library core/libs/libs/unpatched/libc.prx [4/4] Linking CXX executable tests/guest_error_tests $ qemu-x86_64 -cpu max /tmp/AnyPS5-review-12523/build-review-12523/tests/guest_error_tests (exit 0, no output) Negative control build: [1/3] Building CXX object core/libs/CMakeFiles/libc.dir/prx/libc/src/Errors.cpp.o [2/3] Linking CXX shared library core/libs/libs/unpatched/libc.prx [3/3] Linking CXX executable tests/guest_error_tests $ qemu-x86_64 -cpu max /tmp/AnyPS5-review-12523/build-review-12523/tests/guest_error_tests qemu: uncaught target signal 6 (Aborted) - core dumped /bin/bash: line 7: 2117500 Aborted qemu-x86_64 -cpu max /tmp/AnyPS5-review-12523/build-review-12523/tests/guest_error_tests NEGATIVE_CONTROL_EXIT:134 Restored PR build: [1/3] Building CXX object core/libs/CMakeFiles/libc.dir/prx/libc/src/Errors.cpp.o [2/3] Linking CXX shared library core/libs/libs/unpatched/libc.prx [3/3] Linking CXX executable tests/guest_error_tests PR_TEST_EXIT:0 ``` </details> ### Negative control | Assertion | Change to code under test | Did the new test fail? | |---|---|---| | The eight extended errno-name assertions detect the prior behavior | Replaced only the PR `Errors.cpp` source blob with current `main`; left the PR `GuestErrors.cpp` test unchanged | Yes; exit 134. Restoring the PR implementation passed (exit 0) | ### Findings #### Blocking None remain from my previous review. #### Non-blocking Hosted Linux product tests were skipped, and hosted macOS jobs were pending when checked. The native title comparison remains author-reported; I did not reproduce it. ### Sources - [Implementation at the re-checked head](https://github.com/boykopovar/AnyPS5/blob/e80f7d8048d29ca9e640129f9e05ca799ae20171/core/libs/prx/libc/src/Errors.cpp) - [Focused assertions at the re-checked head](https://github.com/boykopovar/AnyPS5/blob/e80f7d8048d29ca9e640129f9e05ca799ae20171/core/libs/tests/GuestErrors.cpp) - [Updated provenance for firmware and title measurements](https://github.com/boykopovar/AnyPS5/blob/e80f7d8048d29ca9e640129f9e05ca799ae20171/docs/dev/debt/libc.md#L73) ### Not verified I did not run the title-native comparison, hosted macOS jobs, other operating systems, or a PS5 console. The Windows hosted workflow passed but skipped CTest; the Linux product job was skipped. ### To get this to a good state No follow-up is needed for the issue raised in my previous review. If the head changes, I will re-check the documentation and rerun the focused test and negative control.
Sign in to join this conversation.
No reviewers
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!12527
No description provided.