Skip to content

okrun for freebsd-x86_64 (0.7.2): an image an image starts is executed by the kernel (Exec format error), as #42 was on Linux #47

Open

Description

@speak-agent

What happens

In FreeBSD (x86_64, 14.5), an image run by the okrun the self-contained package carries for freebsd-x86_64 (openkal-platform 0.31.2, openkal-image 0.7.2) starts the image itself, and the start goes to the kernel, which refuses the .oke:

Failed to execute '/tmp/dirun/cmd-0.1.0-openkal-bundle-all/lib/x86_64/cmd.exe.oke': Exec format error
child=1

This is #42 (an image started by an image is executed by the host without the loader) on the FreeBSD runner; on Linux x86_64 and aarch64, okrun 0.7.2 enters such an image (status 3 as expected). A host program started from the same image works in FreeBSD.

Reproduce

Sunrisepeak/cmd, mcpp pack --target openkal --all-programs --mode self-contained --systems all, then in the FreeBSD VM (the x86_64-freebsd row's runner):

tar -xzf cmd-0.1.0-openkal-bundle-all.tar.gz
cmd-0.1.0-openkal-bundle-all/bin/cmd.exe /c TEST.BAT   # "%COMSPEC%" /c exit 3 → Exec format error, child=1

%COMSPEC% is the image's own path (cmd takes it from argv[0]). CI: https://github.com/Sunrisepeak/cmd/actions/runs/45037747165 (job openkal-on-freebsd).

cmd records the package at L1 for now; its CI reports L2 by itself once this start works. Related: #46 (the i386 runner), mcpp-community/mcpp#1005.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions