Skip to content

Bug - Crash when running unikraft.org/java:17 via kraft run on QEMU x86_64 #241

@lupsalexandra33

Description

@lupsalexandra33

I encountered a fatal crash (kernel panic) when attempting to run the Java 17 image from the catalog on the QEMU x86_64 platform. The application crashes immediately after initialization.

The issue can be reproduced by using the following exact command:

kraft run --rm -M 1024M -p 8080:8080 --plat qemu --arch x86_64 unikraft.org/java:17

The command above returns a CRIT: Unikraft Crash. Please find the full log below, including the register dump:

[?] multiple runnable contexts discovered: how would you like to proceed? run the oci 'unikraft.org/java:17' package and ignore cwd
 i  use --as=oci to skip this prompt in the future
 i  using arch=x86_64 plat=qemu
en1: Interface is up
Powered by Unikraft Kiviuq (0.20.0~5a22d73)
[    0.691485] ERR:  [libposix_process] <deprecated.c @  337> Ignore updating resource 7: cur = 1024, max = 1024
[    0.722113] CRIT: Unikraft Crash - Kiviuq (0.20.0~5a22d73)
[    0.735734] CRIT:     _      
[    0.743176] CRIT:   cx xo    
[    0.750028] CRIT:   (|O|)/V  
[    0.759196] CRIT:            
[    0.765668] CRIT: Registers:
[    0.774466] CRIT:  rip: 0008:000000101700662d
[    0.785710] CRIT:  rsp: 0010:0000001001b62f88 eflags: 00210246 orig_rax: 0000000000000000
[    0.804462] CRIT:  rax: 0000000000000000 rbx: 0000000000000000 rcx:00000000cafebabe
[    0.822260] CRIT:  rdx: 000000002fd3fbff rsi: 0000000000000000 rdi:0000001001746d00
[    0.845663] CRIT:  rbp: 0000001001746d00 r08: 00000000ffffffff r09:000000000000000c
[    0.865337] CRIT:  r10: 0000001017006724 r11: 0000001001b63368 r12:0000001001b63480
[    0.888688] CRIT:  r13: 00000010016f0600 r14: 00000010016bc024 r15:ffffffffffffffff
 E  machine fatally exited

Environment Information

  • Operating System (Host): Windows 11 Version 24H2 (Build 10.0.26100.7171)
  • WSL Version: WSL2 (v2.4.11.0)
  • Operating System (Guest): Ubuntu 24.04.3 LTS
  • Kernel Version (WSL): 5.15.167.4-1
  • Target Platform: QEMU/x86_64
  • Failing Image: unikraft.org/java:17
  • KraftKit Version: kraft 0.12.3 (68ca88778e63247d5a558951423eadee5bd2bf34)

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