Repository navigation
0.7.3: okrun's command line is a function of the runner, so a program built over it names itself the loader (#46) - #48
Merged
Conversation
… built over it names itself the loader (#46)
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.
Fixes #46.
Cause
An image file that an image starts is entered through the loader the runner names (
okrun_options::loader, 0.7.1). The programokrunnames itself (kal_env_image). openkal-platform's carrier (carrier/main.cpp), which mcpp packs as a row's runner where nookrunpackage serves the machine, callsokrun_run_filewith default options and names no loader. Oni686-openkalthe runner is that carrier, sostart_programreturnedkal_err_not_program.posix_spawnthen gaveENOEXEC, and a copy that called exec ended with 127. x86_64 runs theokrunprogram and was not affected.Measured on Linux x86_64 with mcpp 2026.11.22.1 and openkal-platform 0.31.2, using an i386 image that
posix_spawns itself:spawn rc=8okrunbuilt for i686-linux-musl from this branchchild=3Change
okrun_main(argc, argv)(include/okrun.h,run/src/command.cpp) is okrun's command line, moved fromtools/src/okrun.cpp:--require-signature,--trust,--debugger,--prof,--argv0;cachesubcommand;okrunis nowmaincalling it. A platform's carrier calls it as its package's runner; that is the openkal-platform change that follows this release.Tests
run (linux-i686 on linux-x86_64):i686-linux-muslover openkal-platform 0.31.2;examples/startsandexamples/exitsfor i686;starts: itself 7andstarts: ok. The image starts itself, thenexits.oke, then/bin/sh -c "exit 5".starts: itself 7,starts: exits.oke 0,starts: /bin/sh 5,starts: ok.