feat(libc): throw std::__sce_v2::filesystem::filesystem_error from _Xfilesystem_error #15486

Merged
SwetabhSingh17 merged 1 commit from upstream-pr/15486 into main 2026-11-07 20:46:38 +00:00
SwetabhSingh17 commented 2026-11-03 14:55:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SwetabhSingh17 on 2026-11-03T14:55:17Z.


What

Implement std::__sce_v2::filesystem::_Xfilesystem_error in libc:

  • _ZNSt8__sce_v210filesystem18_Xfilesystem_errorEPKcNS_10error_codeE_nid_postfix
  • _ZNSt8__sce_v210filesystem18_Xfilesystem_errorEPKcRKNS0_4pathENS_10error_codeE_nid_postfix

Following the 0x90-byte object layout with code at 0x30, paths at 0x40 and 0x68, and string representation assumed from the unversioned module:

  • Define SceV2FilesystemErrorType ("NSt8__sce_v210filesystem16filesystem_errorE") with base &SceV2::SystemErrorType and SceV2FilesystemError vtable.
  • Embed SystemErrorObject base inside FilesystemErrorObject and update ThrowFilesystemError to initialize object->base.code = code; at offset 16 (the SystemErrorObject code location) alongside preserving object->code = code; at offset 0x30 for both versioned and unversioned throwers.
  • Validate arguments: throw std::invalid_argument if message, error category, or path is null.
  • Add comprehensive guest exception tests in core/libs/tests/GuestFilesystemError.cpp, verifying catches as std::__sce_v2::system_error and access to code() with valid categories.
  • Update technical debt in docs/dev/debt/libc.md: restore the Versioned std::__sce_v2::filesystem primitives entry linking VersionedFilesystem.cpp without the resolved _Xfilesystem_error sentence, record the unverified sce_v2 layout in a dedicated entry linking StandardExceptions.cpp, and update the unversioned entry for the code-at-16 initialization.

Tested

  • python3 tools/check_conventions.py --base origin/main (clean, 0 warnings)
  • python3 core/libs/tests/test_public_headers.py --audit-only (verified umbrella coverage)
  • GuestFilesystemError.cpp: added CheckSceV2Messages(), CheckSceV2Paths(), CheckSceV2NullArguments(), and CheckSceV2SystemErrorBase() validating standard catch matching, type name, code(), category names, and paths

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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5139387833 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15486). Originally posted by [SwetabhSingh17](https://github.com/SwetabhSingh17) on 2026-11-03T14:55:17Z. --- ### What Implement `std::__sce_v2::filesystem::_Xfilesystem_error` in libc: - `_ZNSt8__sce_v210filesystem18_Xfilesystem_errorEPKcNS_10error_codeE_nid_postfix` - `_ZNSt8__sce_v210filesystem18_Xfilesystem_errorEPKcRKNS0_4pathENS_10error_codeE_nid_postfix` Following the 0x90-byte object layout with code at 0x30, paths at 0x40 and 0x68, and string representation assumed from the unversioned module: - Define `SceV2FilesystemErrorType` (`"NSt8__sce_v210filesystem16filesystem_errorE"`) with base `&SceV2::SystemErrorType` and `SceV2FilesystemError` vtable. - Embed `SystemErrorObject base` inside `FilesystemErrorObject` and update `ThrowFilesystemError` to initialize `object->base.code = code;` at offset 16 (the `SystemErrorObject` code location) alongside preserving `object->code = code;` at offset 0x30 for both versioned and unversioned throwers. - Validate arguments: throw `std::invalid_argument` if message, error category, or path is null. - Add comprehensive guest exception tests in `core/libs/tests/GuestFilesystemError.cpp`, verifying catches as `std::__sce_v2::system_error` and access to `code()` with valid categories. - Update technical debt in `docs/dev/debt/libc.md`: restore the `Versioned std::__sce_v2::filesystem primitives` entry linking `VersionedFilesystem.cpp` without the resolved `_Xfilesystem_error` sentence, record the unverified sce_v2 layout in a dedicated entry linking `StandardExceptions.cpp`, and update the unversioned entry for the code-at-16 initialization. ### Tested - `python3 tools/check_conventions.py --base origin/main` (clean, 0 warnings) - `python3 core/libs/tests/test_public_headers.py --audit-only` (verified umbrella coverage) - `GuestFilesystemError.cpp`: added `CheckSceV2Messages()`, `CheckSceV2Paths()`, `CheckSceV2NullArguments()`, and `CheckSceV2SystemErrorBase()` validating standard catch matching, type name, `code()`, category names, and paths ### 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
XairRrR commented 2026-11-03 15:30:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T15:30:10Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The new std::__sce_v2::filesystem::_Xfilesystem_error throwers build, and the focused tests pass and catch a missing base code(). However, the sce_v2 object layout cites no source, and the technical debt changes break the project's rules for debt entries.

What I ran

Head 7baa0af1dfa18df574b95db512cd96431993aecc, main 4f41f4c375f5abb487dbd184fbc150f31994d762, merged with --no-ff into f8a44a9c40e8e79b57145e7ab30c314f3e0c94e3 (Release, GCC 14.2.0, Ninja, Debian 13 VM).

git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...7baa0af1dfa18df574b95db512cd96431993aecc
python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762
ctest --test-dir build --output-on-failure -R "guest_filesystem_error|guest_sce_v2_filesystem"
# negative control 1: Api.hpp, VersionedFilesystem.cpp, StandardExceptions.cpp from main
ninja -C build -j32 -l32 guest_filesystem_error_tests
# negative control 2: merged tree minus `object->base.code = code;`
ninja -C build -j32 -l32 guest_filesystem_error_tests
ctest --test-dir build --output-on-failure -R "^guest_filesystem_error$"
# restored merged files
ninja -C build -j32 -l32 guest_filesystem_error_tests libc
ctest --test-dir build --output-on-failure -R "guest_filesystem_error|guest_sce_v2_filesystem|guest_sce_v2_exceptions"
git status --porcelain

Results

Check Result
git diff --check clean
check_conventions.py All conventions checks passed
Configure / build / libs (script) OK
Selected tests (script) 3702 ran, no new failures, no timeouts; the 9 known failures also fail on main
guest_filesystem_error, guest_sce_v2_filesystem, guest_sce_v2_filesystem_calls, guest_sce_v2_exceptions pass (under 0.1 s each)
Vulkan validation comparison skipped: no AGC, shader or VideoOut file changed
Worktree after restore clean

Negative control

  • Production files restored from main: GuestFilesystemError.cpp does not compile, because the old declarations of the two sce_v2 exports take no arguments (too many arguments to function ... _Xfilesystem_errorEPKcNS_10error_codeE_nid_postfix()).
  • Merged tree with only object->base.code = code; removed: the test fails as it should.
output
1/1 Test #701: guest_filesystem_error ...........***Exception: SegFault  0.01 sec
FAIL: system_error base code() matches generic category
FAIL: sce_v2 system_error base code() at 16
FAIL: system_error base code().value matches
FAIL: system_error base code().category matches generic category

After restoring the merged files, the tests pass again and git status --porcelain is empty.

Findings

Blocking

  1. The sce_v2 layout and behaviour cite no source, and the debt entry does not say so. core/libs/prx/libc/src/exception/StandardExceptions.cpp:805-806 and :834-840 reuse the 0x90-byte object of the unversioned thrower for std::__sce_v2::filesystem::filesystem_error:

    • code at 0x30;
    • paths at 0x40 and 0x68;
    • what() built as message: category text;
    • std::__sce_v2::filesystem::path treated as GuestLocale::String.

    That unversioned layout was read from the SDK 7.00 libc.prx of PPSA06416 (docs/dev/debt/libc.md:266). The PR names no disassembly of the versioned throwers. The rest of the sce_v2 code was checked against the libc.prx bundled with PPSA28416, so that source exists. CONTRIBUTING requires behaviour taken from a library to follow the reverse-engineering guide, and a debt entry to state the gap first.

    The new text at docs/dev/debt/libc.md:307 instead presents the layout as settled.

    Fix: either check the two exports in a versioned libc.prx and cite the module, build and offsets, or say in the entry that the sce_v2 layout is assumed from the unversioned module and not verified.

  2. The debt entry was rewritten instead of cut, and now links the wrong file. On main, the entry at docs/dev/debt/libc.md:307 stated an open gap: "The console loops over sceKernelGetdents itself, as the libc.prx bundled with PPSA28416 shows, and maps the same errors". The new text drops it, although the PR does not touch _Open_dir or _Read_dir.

    The entry also now links src/exception/StandardExceptions.cpp, but _Open_dir, _Read_dir, _Close_dir, _Current_get and _Stat live in src/VersionedFilesystem.cpp (for example _Open_dir at line 104).

    CONTRIBUTING says that a PR closing a gap "removes its entry, or cuts it to what is still open, instead of rewriting it to describe the corrected behaviour".

    Fix:

    • Restore the main entry.
    • Remove only its last sentence (the NotImplemented throwers and the missing filesystem_error).
    • Record the remaining sce_v2 _Xfilesystem_error gaps from finding 1 as a separate entry that links StandardExceptions.cpp.

Non-blocking

  1. The unversioned thrower changed too, but its entry was not updated. ThrowFilesystemError now also writes the code at offset 16 for std::filesystem::filesystem_error; the bytes there used to be zero. The entry at docs/dev/debt/libc.md:266 still says the object's system_error part "does not match this library's 32-byte std::system_error, whose code is at 16", which is now partly false.

    The change looks reasonable: this library's message is a pointer at 0x08, so offset 16 is free. Still, the description should mention it, and the entry should be cut to what is still open: the module keeps a std::string up to 0x30.

  2. The PR description is slightly inaccurate. It says the change follows "the unversioned ... layout", but it also changes that layout (see the previous point).

Not verified

  • The sce_v2 layout against any console libc.prx: I have no module to disassemble here.
  • The Windows (MinGW) build and tests.
  • Behaviour with a title.

To get this to a good state

  • Cite a disassembly source for the two sce_v2 throwers (module, build, offsets), or record the assumed layout as unverified in technical debt.
  • Restore the Versioned std::__sce_v2::filesystem primitives entry with its link to VersionedFilesystem.cpp. Remove only the sentence this PR resolves, and put the _Xfilesystem_error gaps in their own entry that links StandardExceptions.cpp.
  • Cut the std::filesystem::_Xfilesystem_error entry so it matches the new code-at-16 behaviour, and mention that change in the description.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5754925252 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15486#pullrequestreview-5754925252). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T15:30:10Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The new `std::__sce_v2::filesystem::_Xfilesystem_error` throwers build, and the focused tests pass and catch a missing base `code()`. However, the sce_v2 object layout cites no source, and the technical debt changes break the project's rules for debt entries. ## What I ran Head `7baa0af1dfa18df574b95db512cd96431993aecc`, `main` `4f41f4c375f5abb487dbd184fbc150f31994d762`, merged with `--no-ff` into `f8a44a9c40e8e79b57145e7ab30c314f3e0c94e3` (Release, GCC 14.2.0, Ninja, Debian 13 VM). ``` git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...7baa0af1dfa18df574b95db512cd96431993aecc python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 ctest --test-dir build --output-on-failure -R "guest_filesystem_error|guest_sce_v2_filesystem" # negative control 1: Api.hpp, VersionedFilesystem.cpp, StandardExceptions.cpp from main ninja -C build -j32 -l32 guest_filesystem_error_tests # negative control 2: merged tree minus `object->base.code = code;` ninja -C build -j32 -l32 guest_filesystem_error_tests ctest --test-dir build --output-on-failure -R "^guest_filesystem_error$" # restored merged files ninja -C build -j32 -l32 guest_filesystem_error_tests libc ctest --test-dir build --output-on-failure -R "guest_filesystem_error|guest_sce_v2_filesystem|guest_sce_v2_exceptions" git status --porcelain ``` ## Results | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | All conventions checks passed | | Configure / build / libs (script) | OK | | Selected tests (script) | 3702 ran, no new failures, no timeouts; the 9 known failures also fail on `main` | | `guest_filesystem_error`, `guest_sce_v2_filesystem`, `guest_sce_v2_filesystem_calls`, `guest_sce_v2_exceptions` | pass (under 0.1 s each) | | Vulkan validation comparison | skipped: no AGC, shader or VideoOut file changed | | Worktree after restore | clean | ## Negative control - **Production files restored from `main`:** `GuestFilesystemError.cpp` does not compile, because the old declarations of the two sce_v2 exports take no arguments (`too many arguments to function ... _Xfilesystem_errorEPKcNS_10error_codeE_nid_postfix()`). - **Merged tree with only `object->base.code = code;` removed:** the test fails as it should. <details><summary>output</summary> ``` 1/1 Test #701: guest_filesystem_error ...........***Exception: SegFault 0.01 sec FAIL: system_error base code() matches generic category FAIL: sce_v2 system_error base code() at 16 FAIL: system_error base code().value matches FAIL: system_error base code().category matches generic category ``` </details> After restoring the merged files, the tests pass again and `git status --porcelain` is empty. ## Findings ### Blocking 1. **The sce_v2 layout and behaviour cite no source, and the debt entry does not say so.** `core/libs/prx/libc/src/exception/StandardExceptions.cpp:805-806` and `:834-840` reuse the 0x90-byte object of the unversioned thrower for `std::__sce_v2::filesystem::filesystem_error`: - code at 0x30; - paths at 0x40 and 0x68; - `what()` built as `message: category text`; - `std::__sce_v2::filesystem::path` treated as `GuestLocale::String`. That unversioned layout was read from the SDK 7.00 `libc.prx` of PPSA06416 (`docs/dev/debt/libc.md:266`). The PR names no disassembly of the versioned throwers. The rest of the sce_v2 code was checked against the `libc.prx` bundled with PPSA28416, so that source exists. CONTRIBUTING requires behaviour taken from a library to follow the reverse-engineering guide, and a debt entry to state the gap first. The new text at `docs/dev/debt/libc.md:307` instead presents the layout as settled. **Fix:** either check the two exports in a versioned `libc.prx` and cite the module, build and offsets, or say in the entry that the sce_v2 layout is assumed from the unversioned module and not verified. 2. **The debt entry was rewritten instead of cut, and now links the wrong file.** On `main`, the entry at `docs/dev/debt/libc.md:307` stated an open gap: "The console loops over `sceKernelGetdents` itself, as the `libc.prx` bundled with PPSA28416 shows, and maps the same errors". The new text drops it, although the PR does not touch `_Open_dir` or `_Read_dir`. The entry also now links `src/exception/StandardExceptions.cpp`, but `_Open_dir`, `_Read_dir`, `_Close_dir`, `_Current_get` and `_Stat` live in `src/VersionedFilesystem.cpp` (for example `_Open_dir` at line 104). CONTRIBUTING says that a PR closing a gap "removes its entry, or cuts it to what is still open, instead of rewriting it to describe the corrected behaviour". **Fix:** - Restore the main entry. - Remove only its last sentence (the `NotImplemented` throwers and the missing `filesystem_error`). - Record the remaining sce_v2 `_Xfilesystem_error` gaps from finding 1 as a separate entry that links `StandardExceptions.cpp`. ### Non-blocking 1. **The unversioned thrower changed too, but its entry was not updated.** `ThrowFilesystemError` now also writes the code at offset 16 for `std::filesystem::filesystem_error`; the bytes there used to be zero. The entry at `docs/dev/debt/libc.md:266` still says the object's `system_error` part "does not match this library's 32-byte `std::system_error`, whose code is at 16", which is now partly false. The change looks reasonable: this library's message is a pointer at 0x08, so offset 16 is free. Still, the description should mention it, and the entry should be cut to what is still open: the module keeps a `std::string` up to 0x30. 2. **The PR description is slightly inaccurate.** It says the change follows "the unversioned ... layout", but it also changes that layout (see the previous point). ## Not verified - The sce_v2 layout against any console `libc.prx`: I have no module to disassemble here. - The Windows (MinGW) build and tests. - Behaviour with a title. ## To get this to a good state - Cite a disassembly source for the two sce_v2 throwers (module, build, offsets), or record the assumed layout as unverified in technical debt. - Restore the `Versioned std::__sce_v2::filesystem primitives` entry with its link to `VersionedFilesystem.cpp`. Remove only the sentence this PR resolves, and put the `_Xfilesystem_error` gaps in their own entry that links `StandardExceptions.cpp`. - Cut the `std::filesystem::_Xfilesystem_error` entry so it matches the new code-at-16 behaviour, and mention that change in the description. <!-- anyps5-bots job=3404 head=7baa0af1dfa18df574b95db512cd96431993aecc -->
XairRrR commented 2026-11-03 15:44:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T15:44:00Z.

Review: APPROVED


Re-checked — approved

The new commit changes only docs/dev/debt/libc.md, and the PR description was edited. Both blocking findings and both non-blocking findings from my last review are resolved. The code and tests are unchanged and still pass.

What changed since my last review

  • git diff 7baa0af1df 97efb9ccaa --stat shows one file: docs/dev/debt/libc.md (+3 −2).
  • StandardExceptions.cpp, VersionedFilesystem.cpp, Api.hpp and GuestFilesystemError.cpp are the same as in 7baa0af1df.
  • The description now mentions that both throwers write the code at offset 16, and that the sce_v2 layout is assumed and not verified.

What I ran

Head 97efb9ccaa0fd0fffd0456e2008e0445e098e5f4, main 4f41f4c375f5abb487dbd184fbc150f31994d762, merged with --no-ff into 72754688cdd0f1410a1b8daf59d70a118fc5f094 (Release, GCC 14.2.0, Ninja, Debian 13 VM).

git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...97efb9ccaa0fd0fffd0456e2008e0445e098e5f4
python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762
git diff 7baa0af1dfa18df574b95db512cd96431993aecc 97efb9ccaa0fd0fffd0456e2008e0445e098e5f4 --stat
ctest --test-dir build --output-on-failure -R "guest_filesystem_error|guest_sce_v2_filesystem|guest_sce_v2_exceptions"
# the "Versioned std::__sce_v2::filesystem primitives" line on main, with its last sentence removed, compared with the same line in the merged tree
diff <(git show 4f41f4c3:docs/dev/debt/libc.md | grep "Versioned std::__sce_v2::filesystem" | sed "s/ The \`_Xfilesystem_error\`.*//") \
     <(git show 72754688:docs/dev/debt/libc.md | grep "Versioned std::__sce_v2::filesystem")
git status --porcelain
Check Result
git diff --check clean
check_conventions.py All conventions checks passed
Configure / build / libs (script) OK
Selected tests (script) 3702 ran; no new failures, no timeouts, nothing fixed. The 9 known failures also fail on main. guest_net_ctl was skipped for a reason tools/check_skips.py does not expect, and it is skipped on main too.
guest_sce_v2_exceptions, guest_filesystem_error, guest_sce_v2_filesystem, guest_sce_v2_filesystem_calls 4/4 pass, total 0.49 s
Debt entry compared with main identical except for the removed sentence (diff exit 0)
Worktree clean

I did not repeat the negative control. The test and production files are identical to the commit I reviewed last time. There, restoring the production files from main broke the test build, and removing only object->base.code = code; made guest_filesystem_error fail.

Previous findings

  1. Blocking — the sce_v2 layout cites no source: Resolved. The new entry at docs/dev/debt/libc.md:308 puts the gap first. It says the 0x90-byte layout, the code at 0x30, the paths at 0x40 and 0x68, and the string representation are assumed from the unversioned module, without console verification.
  2. Blocking — the debt entry was rewritten and linked the wrong file: Resolved. docs/dev/debt/libc.md:307 again links VersionedFilesystem.cpp. It is the same as the entry on main without its last sentence about the NotImplemented throwers (diff above), so the sceKernelGetdents gap is back. The _Xfilesystem_error gaps now have their own entry, which links StandardExceptions.cpp.
  3. Non-blocking — the unversioned entry was not updated: Resolved. docs/dev/debt/libc.md:266 no longer says the system_error part does not match. It now says the code at 16 is initialized, and keeps the open gap: the module keeps a std::string up to 0x30.
  4. Non-blocking — the description was inaccurate: Resolved. The description now says that both throwers write the code at 16, and that the sce_v2 layout is not verified.

New findings

Blocking

None.

Non-blocking

None.

Not verified

  • The sce_v2 layout against a console or versioned libc.prx. It is now recorded as unverified technical debt.
  • The Windows (MinGW) build and tests.
  • Behaviour with a title.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5755144377 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15486#pullrequestreview-5755144377). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T15:44:00Z. **Review:** APPROVED --- # Re-checked — approved The new commit changes only `docs/dev/debt/libc.md`, and the PR description was edited. Both blocking findings and both non-blocking findings from my last review are resolved. The code and tests are unchanged and still pass. ## What changed since my last review - `git diff 7baa0af1df 97efb9ccaa --stat` shows one file: `docs/dev/debt/libc.md` (+3 −2). - `StandardExceptions.cpp`, `VersionedFilesystem.cpp`, `Api.hpp` and `GuestFilesystemError.cpp` are the same as in `7baa0af1df`. - The description now mentions that both throwers write the code at offset 16, and that the sce_v2 layout is assumed and not verified. ## What I ran Head `97efb9ccaa0fd0fffd0456e2008e0445e098e5f4`, `main` `4f41f4c375f5abb487dbd184fbc150f31994d762`, merged with `--no-ff` into `72754688cdd0f1410a1b8daf59d70a118fc5f094` (Release, GCC 14.2.0, Ninja, Debian 13 VM). ``` git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...97efb9ccaa0fd0fffd0456e2008e0445e098e5f4 python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 git diff 7baa0af1dfa18df574b95db512cd96431993aecc 97efb9ccaa0fd0fffd0456e2008e0445e098e5f4 --stat ctest --test-dir build --output-on-failure -R "guest_filesystem_error|guest_sce_v2_filesystem|guest_sce_v2_exceptions" # the "Versioned std::__sce_v2::filesystem primitives" line on main, with its last sentence removed, compared with the same line in the merged tree diff <(git show 4f41f4c3:docs/dev/debt/libc.md | grep "Versioned std::__sce_v2::filesystem" | sed "s/ The \`_Xfilesystem_error\`.*//") \ <(git show 72754688:docs/dev/debt/libc.md | grep "Versioned std::__sce_v2::filesystem") git status --porcelain ``` | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | All conventions checks passed | | Configure / build / libs (script) | OK | | Selected tests (script) | 3702 ran; no new failures, no timeouts, nothing fixed. The 9 known failures also fail on `main`. `guest_net_ctl` was skipped for a reason `tools/check_skips.py` does not expect, and it is skipped on `main` too. | | `guest_sce_v2_exceptions`, `guest_filesystem_error`, `guest_sce_v2_filesystem`, `guest_sce_v2_filesystem_calls` | 4/4 pass, total 0.49 s | | Debt entry compared with `main` | identical except for the removed sentence (`diff` exit 0) | | Worktree | clean | I did not repeat the negative control. The test and production files are identical to the commit I reviewed last time. There, restoring the production files from `main` broke the test build, and removing only `object->base.code = code;` made `guest_filesystem_error` fail. ## Previous findings 1. **Blocking — the sce_v2 layout cites no source: Resolved.** The new entry at `docs/dev/debt/libc.md:308` puts the gap first. It says the 0x90-byte layout, the code at 0x30, the paths at 0x40 and 0x68, and the string representation are assumed from the unversioned module, without console verification. 2. **Blocking — the debt entry was rewritten and linked the wrong file: Resolved.** `docs/dev/debt/libc.md:307` again links `VersionedFilesystem.cpp`. It is the same as the entry on `main` without its last sentence about the `NotImplemented` throwers (diff above), so the `sceKernelGetdents` gap is back. The `_Xfilesystem_error` gaps now have their own entry, which links `StandardExceptions.cpp`. 3. **Non-blocking — the unversioned entry was not updated: Resolved.** `docs/dev/debt/libc.md:266` no longer says the `system_error` part does not match. It now says the code at 16 is initialized, and keeps the open gap: the module keeps a `std::string` up to 0x30. 4. **Non-blocking — the description was inaccurate: Resolved.** The description now says that both throwers write the code at 16, and that the sce_v2 layout is not verified. ## New findings ### Blocking None. ### Non-blocking None. ## Not verified - The sce_v2 layout against a console or versioned `libc.prx`. It is now recorded as unverified technical debt. - The Windows (MinGW) build and tests. - Behaviour with a title. <!-- anyps5-bots job=3421 head=97efb9ccaa0fd0fffd0456e2008e0445e098e5f4 -->
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!15486
No description provided.