fix(libkernel): export execvp #2827
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2827"
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 Get-fix on 2026-10-10T16:14:06Z.
What
VLC (PPSA85300) imports
execvp(0NJDcQ2B8vE) from libkernel and fails to load because no library exports it. This is the stop #2123 left for its own PR. Replacing the process image is not supported, soexecvpthrowsexecvp: executable replacement not implemented, assceSystemServiceLoadExecdoes for executable replacement. VLC cannot reach either of its two call sites: itsforkandvforkfail withENOSYS(libc_missing.c), so the child process that would callexecvpis never created. The newguest_execvptest checks the throw.Tested
Windows 11 (WinLibs GCC 15.2.0 r7), Release, full build with
BUILD_TESTING=ONonmain57f96fd2:guest_execvpandguest_waitpidpass 5/5. With a silentreturn -1or a different message planted,guest_execvpfails.guest_raise_exceptionfails the same way onmainwithout this change (0xc0000409, #1488).tools/check_conventions.pyandtools/check_test_registration.pypass.libkernel.prx, two runs each:mainstops atFAIL: unresolved ELF import 0NJDcQ2B8vE from libkernel.prx(execvp); this branch stops atFAIL: unresolved ELF import wdUufa9g-D8 from libkernel.prx(dup2, #2478). With #2478 as well, it stops atWn6I3wVATUE(daemon).babyhuey's run on #1772 shows PS5MC (PPSA99420) reaching the same
execvpstop aftergetifaddrs; PS5MC was not run here. Not tested on Linux. The same branch and results are posted in #1578.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T16:14:17Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T16:14:27Z.
Progress report (
57f96fd→d686f70)📉 System libraries: 84.49% (-0.03%, +1 declared functions)
🆕 1 declared as stubs
execvp_nid_postfixImported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-10T18:39:01Z.
Linux and the other two titles, on current
main.d686f705merged ontomain9c5d67fb(clean, now with #1772 and #2478 in), Linux (Ubuntu 24.04, GCC 13) and Windows 11 (MinGW-w64 GCC 15.2 from WinLibs), Release, catalog builds withsce_module/libc.prxunwrapped (#2605).guest_execvppasses 5/5 on both (--repeat until-fail:5).0NJDcQ2B8vEonmain(Windows:FAIL: unresolved ELF import 0NJDcQ2B8vE (execvp) from libkernel.prx), and all three get past it with this PR, to the same next stop on both:Wn6I3wVATUE(daemon)-nvxBWa0iDs(gethostname)oxMp8uPqa+U(pthread_set_name_np)Example for PS5MC with this PR: Linux
app.elf: symbol lookup error: app.elf: undefined symbol: -nvxBWa0iDs, WindowsFAIL: unresolved ELF import -nvxBWa0iDs (gethostname) from libSceLibcInternal.prx.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T22:49:38Z.
Checked build and ctest on current main:
guest_execvpandguest_waitpidpass, andguest_execvpdoesn't link without the change. Matches the throw convention for unsupported process replacement, TechnicalDebt line is in the right section; Linux/Windows runs and title stops confirmed by @babyhuey. Merging.