-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Labels
kind/bugSomething isn't workingSomething isn't working
Description
Describe the bug
Under the example helloworld-c of application catalog, kraft crashes.
root@d1f93b7d424e:/tmp/helloworld-c# kraft run --rm --plat qemu --arch x86_64 .
[+] pulling unikraft.org/base:latest (qemu/x86_64) ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• 100% [8.2s]
i using arch=x86_64 plat=qemu
Caught panic:
runtime error: invalid memory address or nil pointer dereference
Restoring terminal...
goroutine 4914 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:26 +0x5e
runtime/debug.PrintStack()
/usr/local/go/src/runtime/debug/stack.go:18 +0x13
github.com/charmbracelet/bubbletea.(*Program).recoverFromPanic(0xc000e3c280)
/github/home/go/pkg/mod/github.com/charmbracelet/bubbletea@v1.3.3/tea.go:733 +0x8b
panic({0x29afda0?, 0x4b44dd0?})
/usr/local/go/src/runtime/panic.go:787 +0x132
kraftkit.sh/initrd.(*dockerfile).Build.func2()
/__w/kraftkit/kraftkit/initrd/dockerfile.go:351 +0x2a
panic({0x29afda0?, 0x4b44dd0?})
/usr/local/go/src/runtime/panic.go:787 +0x132
kraftkit.sh/initrd.(*dockerfile).Build(0xc0044066c0, {0x330a1b8, 0xc002d12600})
/__w/kraftkit/kraftkit/initrd/dockerfile.go:369 +0xa04
kraftkit.sh/internal/cli/kraft/run.(*RunOptions).prepareRootfs.func1({0x330a1b8?, 0xc002d12600?})
/__w/kraftkit/kraftkit/internal/cli/kraft/run/utils.go:398 +0x4f
kraftkit.sh/tui/processtree.(*ProcessTree).Init.(*ProcessTree).waitForProcessCmd.func2()
/__w/kraftkit/kraftkit/tui/processtree/processtree.go:334 +0x117
github.com/charmbracelet/bubbletea.(*Program).handleCommands.func1.1()
/github/home/go/pkg/mod/github.com/charmbracelet/bubbletea@v1.3.3/tea.go:348 +0x7d
created by github.com/charmbracelet/bubbletea.(*Program).handleCommands.func1 in goroutine 4909
/github/home/go/pkg/mod/github.com/charmbracelet/bubbletea@v1.3.3/tea.go:342 +0x131
E program was killed: context canceled
Steps to reproduce
Run inside qemu container:
docker run -it --name qemu -v $(pwd)/unikraft-catalog:/unikraft --entrypoint /bin/bash qemux/qemu
# install kraft using curl ...
# copy the helloworld-c to tmp
kraft run --rm --plat qemu --arch x86_64 .
KraftKit version
kraft 0.11.5 (fb79ed2) go1.24.0 2025-03-10T15:41:21Z
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't workingSomething isn't working
Type
Projects
Status
🧊 Icebox