feat(libSceLibreSsl): implement numeric ERR formatting and newest peeking #9535

Merged
Felipebmaitan merged 13 commits from upstream-pr/9535 into main 2026-11-02 07:54:07 +00:00
Felipebmaitan commented 2026-10-22 00:42:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Felipebmaitan on 2026-10-22T00:42:07Z.


What

Numeric ERR formatting, queue peeking and test-only names fixture. Refreshed onto fetched main 4ac683fe026c3368e508ace9745d3017e12a1207 without rewriting published history. Pending exports independently recounted after integration: 287 in libSceLibreSsl/Export.cpp (literal calls and direct exported stub bodies agree). Published ERR numeric-before/after-load/free behavior, test-only generation/Python/submodule scope, shared queue and registrations are preserved. All main implementation sources and the old/main public-definition/NID union are retained.

Tested

Exact head b8dc89c0f887e725b97ad2ea112fb6eded347e27, main integration base 4ac683fe026c3368e508ace9745d3017e12a1207. Ubuntu 24.04.5 amd64 Docker container on Apple Silicon, GCC 13.3.0, CMake 3.28.3, Ninja 1.11.1, Python 3.12.3, Release.

  • 41/41 native + 1/1 patched focused CTests pass on this head, covering ERR queue/numeric/load/free, available BIO/CMAC/BN cases and main's LibreSSL/LibreSSL3 regressions. Source-built actual libc/libkernel/LibreSSL/LibreSSL3 and repository NID patcher; separate native/patched loader paths. Each layer was reconfigured and rebuilt in the external component harness.
  • Generated ERR fixture deleted: runtime libraries build with it absent; the formatter target regenerates the same SHA256 (44af6828fdc064ca16f94aeb07ac913651d2bfce0f5ecbeee6b9b476e6be24e3); all three lifecycle cases pass again. Runtime Ninja graphs exclude the generator and compile src/Error.cpp once.
  • Public headers: 399 libraries / 26,750 exports, unique declarations and umbrella coverage; strict standalone compilation with Clang targeting x86-64 macOS (compile-only). All 35 scoped executable registrations pass. Full main/old implementation/NID preservation audit passes.
  • python3 tools/check_conventions.py --base origin/main and whitespace pass in an isolated Git context pinning origin/main to the integration base above, without changing shared tracking refs.
  • Overlap scan ran for this head and returned exit 2, reporting adjacent conflicts, inherited stack functions and incomplete comparisons. Shared-file/function inventories were reviewed: owned downstreams inherit ERR/BIO, #12928 explicitly depends on #9536 and reuses it, and #9446's BN work is preserved in CMAC. Remaining external comparisons and mechanical conflicts are recorded in the validation reply; no clean-overlap or external-order agreement is claimed.

The harness imports actual repository library/test fragments, source-building pinned dependencies; it is not the full root/product suite. Docker denies userfaultfd, invoking libc's existing comparison fallback. No new local Windows/macOS runtime, sanitizer, title or physical-console run was performed; no skipped/pending hosted job is counted as passed. Firmware-module evidence remains PC execution with stand-in imports. Earlier no-Python fragment and bounded BIO negative-control evidence is historical; those settled checks were not rerun, and neither production BIO nor the wipe assertions changed. Hosted CI for b8dc89c0f887e725b97ad2ea112fb6eded347e27: windows, conventions, library-portability, eligibility, labels and report succeeded. linux, relinker, relinker-asan, register-context and write-watch were skipped; an earlier conventions run was cancelled. GitHub reports CLEAN / MERGEABLE. Skipped jobs are not counted as executed. Current-head maintainer re-review remains pending. Exact logs, harness, audits and overlap limitations are in the latest validation reply.

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:4960311388 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9535). Originally posted by [Felipebmaitan](https://github.com/Felipebmaitan) on 2026-10-22T00:42:07Z. --- ### What Numeric ERR formatting, queue peeking and test-only names fixture. Refreshed onto fetched main `4ac683fe026c3368e508ace9745d3017e12a1207` without rewriting published history. Pending exports independently recounted after integration: **287** in `libSceLibreSsl/Export.cpp` (literal calls and direct exported stub bodies agree). Published ERR numeric-before/after-load/free behavior, test-only generation/Python/submodule scope, shared queue and registrations are preserved. All main implementation sources and the old/main public-definition/NID union are retained. ### Tested Exact head **`b8dc89c0f887e725b97ad2ea112fb6eded347e27`**, main integration base **`4ac683fe026c3368e508ace9745d3017e12a1207`**. Ubuntu 24.04.5 amd64 Docker container on Apple Silicon, GCC 13.3.0, CMake 3.28.3, Ninja 1.11.1, Python 3.12.3, Release. - **41/41 native + 1/1 patched focused CTests pass** on this head, covering ERR queue/numeric/load/free, available BIO/CMAC/BN cases and main's LibreSSL/LibreSSL3 regressions. Source-built actual libc/libkernel/LibreSSL/LibreSSL3 and repository NID patcher; separate native/patched loader paths. Each layer was reconfigured and rebuilt in the external component harness. - Generated ERR fixture deleted: runtime libraries build with it absent; the formatter target regenerates the same SHA256 (`44af6828fdc064ca16f94aeb07ac913651d2bfce0f5ecbeee6b9b476e6be24e3`); all three lifecycle cases pass again. Runtime Ninja graphs exclude the generator and compile `src/Error.cpp` once. - Public headers: **399 libraries / 26,750 exports**, unique declarations and umbrella coverage; strict standalone compilation with Clang targeting x86-64 macOS (compile-only). All **35 scoped executable registrations** pass. Full main/old implementation/NID preservation audit passes. - `python3 tools/check_conventions.py --base origin/main` and whitespace pass in an isolated Git context pinning `origin/main` to the integration base above, without changing shared tracking refs. - Overlap scan ran for this head and returned **exit 2**, reporting adjacent conflicts, inherited stack functions and incomplete comparisons. Shared-file/function inventories were reviewed: owned downstreams inherit ERR/BIO, #12928 explicitly depends on #9536 and reuses it, and #9446's BN work is preserved in CMAC. Remaining external comparisons and mechanical conflicts are recorded in the validation reply; no clean-overlap or external-order agreement is claimed. The harness imports actual repository library/test fragments, source-building pinned dependencies; it is not the full root/product suite. Docker denies userfaultfd, invoking libc's existing comparison fallback. No new local Windows/macOS runtime, sanitizer, title or physical-console run was performed; no skipped/pending hosted job is counted as passed. Firmware-module evidence remains PC execution with stand-in imports. Earlier no-Python fragment and bounded BIO negative-control evidence is historical; those settled checks were not rerun, and neither production BIO nor the wipe assertions changed. Hosted CI for `b8dc89c0f887e725b97ad2ea112fb6eded347e27`: `windows`, `conventions`, `library-portability`, `eligibility`, `labels` and `report` succeeded. `linux`, `relinker`, `relinker-asan`, `register-context` and `write-watch` were skipped; an earlier conventions run was cancelled. GitHub reports CLEAN / MERGEABLE. Skipped jobs are not counted as executed. Current-head maintainer re-review remains pending. Exact logs, harness, audits and overlap limitations are in the latest validation reply. <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> ### 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 <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: n/a <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes <!-- yes / no -->
MarcZX10 commented 2026-10-22 00:51:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T00:51:33Z.

Review: CHANGES_REQUESTED


There is a concrete error-string lifecycle regression in ErrorQueue.cpp: ERR_free_strings stores StringState::Freed, but LibreSslLoadErrorStrings_nid_no_patch only transitions Uninitialized to Loaded. Therefore, after the supported sequence ERR_free_strings(); ERR_load_crypto_strings();, string loading is still disabled and later format calls continue to return numeric lib()/func()/reason() fallbacks for known errors. The free-first test currently asserts that fallback, so it hides the failed reload.

Please make the explicit load operation restore the loaded state after freeing (with a thread-safe transition), or make free a no-op for the compiled-in static tables, and add a regression assertion that a known error string is available after free then load. This behavior is separate from whether applications need to call these legacy APIs during normal operation; both exports are implemented here and the upstream API documents loading after removal as registration.

The ancestry and declared Depends on: #9529 are consistent. Hosted eligibility, conventions, intake, labels and report checks pass. All product/relinker platform jobs are skipped; the PR reports Windows builds/tests and a full-suite run with disclosed baseline failures, which I did not rerun locally. I’m requesting changes for the lifecycle issue only.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5607991600 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9535#pullrequestreview-5607991600). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T00:51:33Z. **Review:** CHANGES_REQUESTED --- There is a concrete error-string lifecycle regression in `ErrorQueue.cpp`: `ERR_free_strings` stores `StringState::Freed`, but `LibreSslLoadErrorStrings_nid_no_patch` only transitions `Uninitialized` to `Loaded`. Therefore, after the supported sequence `ERR_free_strings(); ERR_load_crypto_strings();`, string loading is still disabled and later format calls continue to return numeric `lib()/func()/reason()` fallbacks for known errors. The `free-first` test currently asserts that fallback, so it hides the failed reload. Please make the explicit load operation restore the loaded state after freeing (with a thread-safe transition), or make free a no-op for the compiled-in static tables, and add a regression assertion that a known error string is available after free then load. This behavior is separate from whether applications need to call these legacy APIs during normal operation; both exports are implemented here and the upstream API documents loading after removal as registration. The ancestry and declared `Depends on: #9529` are consistent. Hosted eligibility, conventions, intake, labels and report checks pass. All product/relinker platform jobs are skipped; the PR reports Windows builds/tests and a full-suite run with disclosed baseline failures, which I did not rerun locally. I’m requesting changes for the lifecycle issue only.
Felipebmaitan commented 2026-10-22 00:58:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Felipebmaitan on 2026-10-22T00:58:47Z.


I checked the requested reload against the exact historical contract pinned here. LibreSSL 3.4.1 does not restore strings after this sequence:

  • ERR_load_crypto_strings uses a function-local pthread_once guard.
  • ERR_free_strings deletes the registered table without resetting that guard. Its initial OPENSSL_init_crypto also makes free-first follow this lifecycle.
  • The manual at the same revision says: “If the error strings were already loaded before, no action occurs.”

I also built the official LibreSSL 3.4.1 release's static libcrypto outside the repository using WinLibs GCC 15.2. The relevant three source files (err.c, err_all.c, crypto_init.c) match this pin after line-ending normalization. This reproduction exits successfully:

#include <openssl/err.h>
#include <stdio.h>
#include <string.h>

int main(int argc, char **argv) {
    char buffer[256];
    if (argc == 1) {
        ERR_load_crypto_strings();
        ERR_error_string_n(0x20fff043UL, buffer, sizeof(buffer));
        puts(buffer);
    }
    ERR_free_strings();
    ERR_load_crypto_strings();
    ERR_error_string_n(0x20fff043UL, buffer, sizeof(buffer));
    puts(buffer);
    return strcmp(buffer, "error:20FFF043:lib(32):func(4095):reason(67)") != 0;
}

Running without arguments prints the named BIO error followed by the numeric fallback. Running with free-first prints the numeric fallback. Repeated free/load calls give the same result.

Pushed 3f66ff0dea to make the deliberate contract clearer: both lifecycle tests now check formatting immediately after free, after one explicit load, and after a repeated free/load cycle, with queue preservation checked too. The debt file and PR description now state the one-time loading behavior. All five focused LibreSSL/patched-library tests passed (0.23 s), as did strict compiler and convention checks.

The runtime implementation continues to match the pinned upstream behavior; PS5 equivalence remains unverified. Could you reconsider the lifecycle change request against this historical source and reproduction?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6330063729 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9535#issuecomment-6330063729). Originally posted by [Felipebmaitan](https://github.com/Felipebmaitan) on 2026-10-22T00:58:47Z. --- I checked the requested reload against the exact historical contract pinned here. LibreSSL 3.4.1 does **not** restore strings after this sequence: - [`ERR_load_crypto_strings`](https://github.com/libressl/openbsd/blob/078b3d1df8ca2011c1605cd40418c58fa0f5b143/src/lib/libcrypto/err/err_all.c#L164-L169) uses a function-local `pthread_once` guard. - [`ERR_free_strings`](https://github.com/libressl/openbsd/blob/078b3d1df8ca2011c1605cd40418c58fa0f5b143/src/lib/libcrypto/err/err.c#L716-L724) deletes the registered table without resetting that guard. Its initial `OPENSSL_init_crypto` also makes free-first follow this lifecycle. - The [manual at the same revision](https://github.com/libressl/openbsd/blob/078b3d1df8ca2011c1605cd40418c58fa0f5b143/src/lib/libcrypto/man/ERR_load_crypto_strings.3#L90-L107) says: “If the error strings were already loaded before, no action occurs.” I also built the official LibreSSL 3.4.1 release's static libcrypto outside the repository using WinLibs GCC 15.2. The relevant three source files (`err.c`, `err_all.c`, `crypto_init.c`) match this pin after line-ending normalization. This reproduction exits successfully: ```c #include <openssl/err.h> #include <stdio.h> #include <string.h> int main(int argc, char **argv) { char buffer[256]; if (argc == 1) { ERR_load_crypto_strings(); ERR_error_string_n(0x20fff043UL, buffer, sizeof(buffer)); puts(buffer); } ERR_free_strings(); ERR_load_crypto_strings(); ERR_error_string_n(0x20fff043UL, buffer, sizeof(buffer)); puts(buffer); return strcmp(buffer, "error:20FFF043:lib(32):func(4095):reason(67)") != 0; } ``` Running without arguments prints the named BIO error followed by the numeric fallback. Running with `free-first` prints the numeric fallback. Repeated free/load calls give the same result. Pushed 3f66ff0dea to make the deliberate contract clearer: both lifecycle tests now check formatting immediately after free, after one explicit load, and after a repeated free/load cycle, with queue preservation checked too. The debt file and PR description now state the one-time loading behavior. All five focused LibreSSL/patched-library tests passed (0.23 s), as did strict compiler and convention checks. The runtime implementation continues to match the pinned upstream behavior; PS5 equivalence remains unverified. Could you reconsider the lifecycle change request against this historical source and reproduction?
MarcZX10 commented 2026-10-22 01:01:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T01:01:28Z.

Review: COMMENTED


Correction to my earlier review: I rechecked the pinned LibreSSL 3.4.1 source and the updated release-source reproduction. The one-time loader uses pthread_once, and ERR_free_strings deletes the table without resetting that guard, so retaining numeric fallbacks after free followed by explicit load is consistent with this compatibility target. The new head documents and tests this historical behavior. I withdraw my earlier request for a lifecycle change; sorry for the incorrect finding. The PR remains dependent on #9529 as declared.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5608050762 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9535#pullrequestreview-5608050762). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T01:01:28Z. **Review:** COMMENTED --- Correction to my earlier review: I rechecked the pinned LibreSSL 3.4.1 source and the updated release-source reproduction. The one-time loader uses pthread_once, and ERR_free_strings deletes the table without resetting that guard, so retaining numeric fallbacks after free followed by explicit load is consistent with this compatibility target. The new head documents and tests this historical behavior. I withdraw my earlier request for a lifecycle change; sorry for the incorrect finding. The PR remains dependent on #9529 as declared.
MarcZX10 commented 2026-10-22 01:01:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T01:01:44Z.

Review: COMMENTED


Correction: the newly pushed LibreSSL-based test and documentation confirm the one-time loading behavior against the pinned source; the earlier concern is resolved. The dependent #9536 now also has a complete parent implementation and its declared Depends on chain is consistent. I have no additional code finding on the updated ERR change.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5608052342 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9535#pullrequestreview-5608052342). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T01:01:44Z. **Review:** COMMENTED --- Correction: the newly pushed LibreSSL-based test and documentation confirm the one-time loading behavior against the pinned source; the earlier concern is resolved. The dependent #9536 now also has a complete parent implementation and its declared Depends on chain is consistent. I have no additional code finding on the updated ERR change.
MarcZX10 commented 2026-10-22 01:01:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T01:01:51Z.

Review: APPROVED


The updated head and pinned LibreSSL 3.4.1 source/reproduction resolve my earlier concern: the historical one-time loader is not reset by ERR_free_strings, and the new lifecycle assertions and debt note accurately document that behavior. I found no remaining blocking issue in the reviewed diff. The PR declares Depends on #9529; hosted eligibility, conventions, labels and report checks pass, while product builds are skipped. The author reports focused Windows tests and compiler/convention checks, but no PS5/title, Linux or macOS run.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5608052932 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9535#pullrequestreview-5608052932). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T01:01:51Z. **Review:** APPROVED --- The updated head and pinned LibreSSL 3.4.1 source/reproduction resolve my earlier concern: the historical one-time loader is not reset by ERR_free_strings, and the new lifecycle assertions and debt note accurately document that behavior. I found no remaining blocking issue in the reviewed diff. The PR declares Depends on #9529; hosted eligibility, conventions, labels and report checks pass, while product builds are skipped. The author reports focused Windows tests and compiler/convention checks, but no PS5/title, Linux or macOS run.
MarcZX10 commented 2026-10-22 01:04:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T01:04:59Z.

Review: COMMENTED


One review-state note: GitHub still records my original CHANGES_REQUESTED review because the repository endpoint did not permit dismissing it, although my later review comments and approval explicitly withdraw that finding. The latest review is APPROVED after source verification; no further action is requested on the lifecycle point.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5608071389 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9535#pullrequestreview-5608071389). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T01:04:59Z. **Review:** COMMENTED --- One review-state note: GitHub still records my original CHANGES_REQUESTED review because the repository endpoint did not permit dismissing it, although my later review comments and approval explicitly withdraw that finding. The latest review is APPROVED after source verification; no further action is requested on the lifecycle point.
MarcZX10 commented 2026-10-22 01:08:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T01:08:36Z.

Review: APPROVED


The pinned LibreSSL 3.4.1 source and the updated release-source reproduction resolve my earlier concern. The one-time loader is not reset by ERR_free_strings, and the new lifecycle tests/documentation match that contract. I found no remaining blocking issue. Depends on #9529 is declared. Current eligibility, conventions, labels and report checks pass; product checks are skipped, and the author reports focused Windows tests and compiler/convention checks.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5608098111 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9535#pullrequestreview-5608098111). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T01:08:36Z. **Review:** APPROVED --- The pinned LibreSSL 3.4.1 source and the updated release-source reproduction resolve my earlier concern. The one-time loader is not reset by ERR_free_strings, and the new lifecycle tests/documentation match that contract. I found no remaining blocking issue. Depends on #9529 is declared. Current eligibility, conventions, labels and report checks pass; product checks are skipped, and the author reports focused Windows tests and compiler/convention checks.
MarcZX10 commented 2026-10-22 02:00:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T02:00:20Z.

Review: APPROVED


Rechecked the current ERR string lifecycle change against the pinned LibreSSL 3.4.1 source. The added loaded-first/free-first process tests correctly cover the pthread_once behavior and preserve numeric fallbacks after free/reload; the prior concern is resolved. #9529 remains open as the declared predecessor. Eligibility, conventions, intake, labels and report checks pass; product/relinker builds were skipped. I did not run local tests.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5608412791 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9535#pullrequestreview-5608412791). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T02:00:20Z. **Review:** APPROVED --- Rechecked the current ERR string lifecycle change against the pinned LibreSSL 3.4.1 source. The added loaded-first/free-first process tests correctly cover the pthread_once behavior and preserve numeric fallbacks after free/reload; the prior concern is resolved. #9529 remains open as the declared predecessor. Eligibility, conventions, intake, labels and report checks pass; product/relinker builds were skipped. I did not run local tests.
jotitadev commented 2026-10-22 07:44:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-22T07:44:19Z.

Review: COMMENTED


Linux run, since the description says only Windows was used. The full build and the ERR tests pass, and they run clean under ASan and UBSan.

Machine: Linux, Ubuntu 26.04, GCC 15.2.0, Python 3.14, x86-64. Head 3f66ff0de merged with git merge --no-commit onto current main d6eafa54d (clean), 3rdparty/libressl-openbsd initialized at 078b3d1df.

  • Release (Ninja, BUILD_TESTING=ON, ANYPS5_RELINKER_ONLY=OFF): the full build passes, including GenerateErrorStrings.py producing ErrorStrings.inc with Python 3.14. guest_libressl_error, guest_libressl_errors, guest_libressl_free_strings, guest_libressl_free_strings_first and patched_libraries pass (5/5).
  • ASan + UBSan (-fsanitize=address,undefined -fno-sanitize-recover=undefined -O1 -g, ANYPS5_ENABLE_ASAN=ON, leak detection off): guest_libressl_error_string_tests with no argument, free and free-first, and guest_libressl_error_tests, all exit 0 with no reports.

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5610799099 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9535#pullrequestreview-5610799099). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-22T07:44:19Z. **Review:** COMMENTED --- Linux run, since the description says only Windows was used. The full build and the ERR tests pass, and they run clean under ASan and UBSan. **Machine:** Linux, Ubuntu 26.04, GCC 15.2.0, Python 3.14, x86-64. Head `3f66ff0de` merged with `git merge --no-commit` onto current `main` `d6eafa54d` (clean), `3rdparty/libressl-openbsd` initialized at `078b3d1df`. - **Release** (Ninja, `BUILD_TESTING=ON`, `ANYPS5_RELINKER_ONLY=OFF`): the full build passes, including `GenerateErrorStrings.py` producing `ErrorStrings.inc` with Python 3.14. `guest_libressl_error`, `guest_libressl_errors`, `guest_libressl_free_strings`, `guest_libressl_free_strings_first` and `patched_libraries` pass (5/5). - **ASan + UBSan** (`-fsanitize=address,undefined -fno-sanitize-recover=undefined -O1 -g`, `ANYPS5_ENABLE_ASAN=ON`, leak detection off): `guest_libressl_error_string_tests` with no argument, `free` and `free-first`, and `guest_libressl_error_tests`, all exit 0 with no reports. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
MarcZX10 commented 2026-10-22 11:36:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T11:36:17Z.


I rechecked the current head against today’s upstream main: the merge is clean, diff-check passes, and conventions reports 0 errors (one inherited 1,038-character debt-entry warning). The reported Windows and independent Linux focused tests cover the error-string lifecycle and ASan/UBSan; those were run on older base d6eafa54d. This head is now 4 ahead / 119 behind current main (merge base a6dcea927), so please refresh it and rerun the focused ERR tests and checks before merge. Keep the declared #9529 dependency; #9536 depends on this ERR layer.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6339771584 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9535#issuecomment-6339771584). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T11:36:17Z. --- I rechecked the current head against today’s upstream `main`: the merge is clean, diff-check passes, and conventions reports 0 errors (one inherited 1,038-character debt-entry warning). The reported Windows and independent Linux focused tests cover the error-string lifecycle and ASan/UBSan; those were run on older base `d6eafa54d`. This head is now 4 ahead / 119 behind current `main` (merge base `a6dcea927`), so please refresh it and rerun the focused ERR tests and checks before merge. Keep the declared #9529 dependency; #9536 depends on this ERR layer.
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!9535
No description provided.