feat(libSceLibreSsl3): report queued errors through guest callbacks #15737
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15737"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by santhoshkumar-dev on 2026-11-04T10:41:52Z.
What
ERR_print_errors_cb(gtRD8r2e+uk) currently throws. Its guest callback now receives one diagnostic line at a time from the existing LibreSSL error queue. Each call consumes the oldest record before invoking the callback. A zero or negative callback result stops the report and leaves later records queued.The report uses the existing numeric formatter, the decimal guest pthread handle, and the stored filename and line. Missing filenames produce
NA:0, and the callback length excludes the terminating null. The implementation follows the public LibreSSL callback and line format. The queue does not store optional diagnostic text. Console callback ABI and diagnostic metadata remain unverified. Pinned LibreSSL formatter · OpenBSD manualThe dependency line records integration order for the older branches that touch the same build, declaration, or debt lines. The callback uses the error queue and pthread APIs already on main.
Tested
Submitted head
b8266feacf432d3fed8e051e22049dd69e53d5b9on upstream mainb11c7bf84f5d2f636ff60166cc3371bd071e24d5.BUILD_TESTING=ON. Completelibsbuild, selected tests and packaged-library loader built. 83/83 selected CTests pass, including the header audit and 64 compile batches.ERR_print_errors_cb_nid_postfix not implemented.Conventions and whitespace pass.
tools/pr_overlap.py --branchscanned 1,822 open PRs and found seven shared-file conflicts and no same-export collision. It exited 2 on 33 branches with pre-existing base conflicts. I compared their shared files against the baseline and searched each full source diff for the callback, its NID and the new queue helper. This found only neighboring declaration edits from #12928 and #15163 beyond the conflicts already present on main. The earlier inventory addition supplies the throwing declaration.Validation covers the selected runtime tests. macOS, console, title execution and the complete CTest suite remain untested.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)