openkal-musl 0.6.0: a caller's redirection reaches the program it starts - #271
Merged
Conversation
This was referenced Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
openkal-musl0.6.0, released and mirrored.openkal-llvm-runtime0.3.1follows in its own change once its own run on
mainfinishes; it records whichC library that version is handed and adds nothing else.
What 0.6.0 answers
Three defects a consumer reported as
openkal-linux#13. Each is
a place where the specification already carried the atom and the C library had
no route to it; openkal itself does not change.
dup2(fd, 1)and thenposix_spawn,system, orfork+execvestarted a program writing to the stream the caller had been started with; the file it had redirected onto stayed emptyabortraiseistkill, the port had no case for it, soabortfell through toa_crash()—hlton x86_64 — and every uncaught C++ exception,assertandstd::terminatereported a segmentation faultSYS_tkill/SYS_tgkillperform a signal's default action; SIGABRT reacheskal_abortwaitpid(…, WNOHANG)kal_timeout_wait_processThe second row is
openkal-llvm-runtime's business directly: libc++abi'sterminate handler ends in
abort, so every uncaught C++ exception over thatruntime reported a segmentation fault.
Verification
green on
main;examples/subprocessgrew from 7 observations to 24.rather than a published version — including the bare-metal
cfg(os = "none")configuration, which is the only place that compiles the C library with
OKM_HAS_FS=0andOKM_HAS_PROCESS=0.-- failures: 7 --,one for each fix, with fifteen controls holding.
these packages installed, builds and runs a program asserting all three.
The digest is of the archive GitHub serves, and the CN asset is that same file:
downloaded from the mirror and compared,
ca769663…both ways, 990799 bytes.