From eacb17a47f5fa6ef66d869f24f308312918b5a1b Mon Sep 17 00:00:00 2001 From: Sunrisepeak Date: Fri, 20 Nov 2026 11:16:16 +0900 Subject: [PATCH] 0.31.2: openkal-image 0.7.2, a copy of the program ends as the copy ends itself A patch of the group with one member. openkal-image 0.7.2: the carrier (openkal-run), the tools (okld, okrun, okprof) and the build dependency. A library composes fork by starting a context in a copy of the address space (openkal.space); the copy holds the runner's memory and not the runner's task that waits for the requests to end. Under 0.7.1 the copy's kal_exit waited for that task to return, so a program an image started by fork and exec never ended (openkal-image#44, measured in Sunrisepeak/cmd#5). No other member changes; the platform requires mcpp 2026.11.17.1, as 0.31.1 does. --- README.md | 16 ++++++++++++---- mcpp.toml | 23 +++++++++++++---------- 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 3ddfe7a..a80747f 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,14 @@ builds openkal-run's core runner as a program of the DOS row below, with the image in its `.oke` section. Measured under DOSBox Staging: the image sorted its arguments, caught its exception, read DOS's `PATH` and returned 7. +Platform 0.31.2 is a patch of the group with one member. openkal-image 0.7.2: a +copy of the program ends as the copy ends itself. A library composes `fork` by +starting a context in a copy of the address space (openkal.space); the copy +holds the runner's memory and not the runner's task that waits for the requests +to end, and under 0.7.1 the copy's `kal_exit` waited for that task to return, +so a program an image started by fork and exec never ended (openkal-image#44). +The carrier and the tools are 0.7.2. No other member changes. + Platform 0.31.1 is a patch of the group with two members. openkal-image 0.7.1: its runner joins its task that waits for the requests to end before it ends the program, so the program ends with the image's tasks alone. Under GDB 15, @@ -222,7 +230,7 @@ until a project or this machine does: ```toml [target.x86_64-freebsd-musl] -platform = "openkal-platform@0.31.1" +platform = "openkal-platform@0.31.2" runner = { enabled = true } ``` @@ -334,7 +342,7 @@ with `import std`: ```toml [target.x86_64-uefi] -platform = "openkal-platform@0.31.1" +platform = "openkal-platform@0.31.2" runner = { enabled = true } ``` @@ -370,7 +378,7 @@ and C++ run-time over openkal-svr4, so it is written in C++23 with `import std`: ```toml [target.i686-svr4-musl] -platform = "openkal-platform@0.31.1" +platform = "openkal-platform@0.31.2" runner = { enabled = true } ``` @@ -424,7 +432,7 @@ run-time over openkal-dos, so it is written in C++23 with `import std`: ```toml [target.i686-dos-musl] -platform = "openkal-platform@0.31.1" +platform = "openkal-platform@0.31.2" ``` The row is TECHNICAL EXPERIMENT ONLY (openkal-dos's README). A program is the diff --git a/mcpp.toml b/mcpp.toml index f67a58e..f254ec3 100644 --- a/mcpp.toml +++ b/mcpp.toml @@ -12,7 +12,7 @@ [package] namespace = "mcpplibs" name = "openkal-platform" -version = "0.31.1" +version = "0.31.2" description = "The platform of ok images (-openkal): their toolchain, C library and C++ run-time, tools, compile and link conventions, seal, runner and carrier, as one versioned statement mcpp reads." license = "Apache-2.0" authors = ["mcpplibs"] @@ -59,7 +59,7 @@ toolchain = "llvm@23.1.3" runner = { cmd = ["okrun", "{}"], host = "same-arch", hosts = ["linux-x86_64", "linux-aarch64", "linux-i686", "macos-aarch64", "macos-x86_64", "windows-x86_64", "freebsd-x86_64", "freebsd-aarch64", "uefi-x86_64", "dos-i686"], built-as = { "freebsd-x86_64" = "x86_64-freebsd-musl", "freebsd-aarch64" = "aarch64-freebsd-musl", "linux-i686" = "i686-linux-musl" } } # `mcpp pack --mode self-contained`: a program of the packing machine that # carries the image in a section and runs it through libokrun (M3). -carrier = { package = "openkal-run@0.7.1", section = ".oke", main = "carrier/main.cpp" } +carrier = { package = "openkal-run@0.7.2", section = ".oke", main = "carrier/main.cpp" } # The `okb` package format (`mcpp pack --pkg-format okb`): the images of every # architecture as one file okrun runs (openkal-image docs/okb.md). plugin = "build.mcpp" @@ -80,9 +80,9 @@ c-abi = { name = "openkal-musl", version = "0.30.0", default-features # order of a start's first executions, which a producer lays its code out by # and writes as the touch note). [platform.tools] -okld = "openkal-tools@0.7.1" -okrun = "openkal-tools@0.7.1" -okprof = "openkal-tools@0.7.1" +okld = "openkal-tools@0.7.2" +okrun = "openkal-tools@0.7.2" +okprof = "openkal-tools@0.7.2" # The seal of the DOS row (0.28.0): the stub of openkal-dos before an executable. okdos = "openkal-dos-tools@0.2.0" @@ -474,7 +474,10 @@ runner = { cmd = ["unshare", "-Ur", "{pkg:ibcs-us}/bin/ibcs-us", "{}"], hosts = # program end as the image ended it, and the requests are taken once the image # is loaded; an image file an image starts is entered by the runner's loader) # and openkal-macos 0.24.1 (a request acted on by a context other -# than the first ends the program as the request). From 0.24.1 the members name +# than the first ends the program as the request); 0.31.2, openkal-image 0.7.2 +# (a copy of the program, which a library's fork makes, ends as it ends itself, +# where under 0.7.1 its kal_exit waited for the runner's task, which the copy +# does not have: openkal-image#44). From 0.24.1 the members name # one another by compatible ranges (`^0.28.0`) and this group chooses the # versions: mcpp 2026.11.7.1 resolves within it, and a fix of one member is that # member's release and a patch of this group, released together through one @@ -491,9 +494,9 @@ openkal-dos-tools = "0.2.0" openkal-svr4 = "0.3.0" openkal-musl = "0.30.0" openkal-llvm-runtime = "0.21.0" -openkal-ld = "0.7.1" -openkal-run = "0.7.1" -openkal-tools = "0.7.1" +openkal-ld = "0.7.2" +openkal-run = "0.7.2" +openkal-tools = "0.7.2" # The plugin's tool, `okld bundle`, which writes the okb, and its library, the # provider of a package format (mcpp.plugins.platform). mcpp.plugins 0.26.1 @@ -501,7 +504,7 @@ openkal-tools = "0.7.1" # mcpplibs.os 0.4.4, whose openkal ends at 0.25, and the version group's 0.26.0 # could not share a build with it. [build-dependencies] -openkal-tools = { version = "0.7.1", tools = ["okld"] } +openkal-tools = { version = "0.7.2", tools = ["okld"] } [build-dependencies.mcpp] plugins = { version = "0.26.1", features = ["plugins-platform"], host-module = true }