Here is a proposed fix: https://review.haiku-os.org/c/haiku/+/10068
And corresponding serial trace:
arch_smp_register_cpu()
cpu
id: 0
Welcome to the Haiku boot loader!
Haiku revision: hrev59162+1+dirty
add_partitions_for(0x4264f160, mountFS = no)
add_partitions_for(fd = 0, mountFS = no)
0x4264f1a0 Partition::Partition
0x4264f1a0 Partition::Scan()
check for partitioning_system: GUID Partition Map
check for partitioning_system: Intel Partition Map
priority: 810
check for partitioning_system: Intel Extended Partition
0x4264f320 Partition::Partition
0x4264f1a0 Partition::AddChild 0x4264f320
0x4264f320 Partition::SetParent 0x4264f1a0
new child partition!
0x4264f3f0 Partition::Partition
0x4264f1a0 Partition::AddChild 0x4264f3f0
0x4264f3f0 Partition::SetParent 0x4264f1a0
new child partition!
0x4264f1a0 Partition::Scan(): scan child 0x4264f320 (start = 2097152, size = 41943040, parent = 0x4264f1a0)!
0x4264f320 Partition::Scan()
check for partitioning_system: GUID Partition Map
check for partitioning_system: Intel Partition Map
check for partitioning_system: Intel Extended Partition
0x4264f1a0 Partition::Scan(): scan child 0x4264f3f0 (start = 44040192, size = 8025800704, parent = 0x4264f1a0)!
0x4264f3f0 Partition::Scan()
check for partitioning_system: GUID Partition Map
check for partitioning_system: Intel Partition Map
check for partitioning_system: Intel Extended Partition
0x4264f1a0 Partition::~Partition
0x4264f320 Partition::SetParent 0x00000000
0x4264f3f0 Partition::SetParent 0x00000000
0x4264f320 Partition::_Mount check for file_system: BFS Filesystem
0x4264f320 Partition::_Mount check for file_system: FAT32 Filesystem
0x4264f320 Partition::_Mount check for file_system: TAR Filesystem
0x4264f320 Partition::~Partition
0x4264f3f0 Partition::_Mount check for file_system: BFS Filesystem
PackageVolumeInfo::SetTo()
PackageVolumeInfo::_InitState(): failed to parse activated-packages: No such file or directory
load kernel kernel_arm...
smbios: found v3 at 0x43873000
Chosen UART:
kind: 8250
regs: 0x1c28000, 0x400
irq: 32
clock: -1
Chosen interrupt controller:
kind: gicv2
regs: 0x1c81000, 0x1000
0x1c82000, 0x2000
Chosen timer:
kind: armv7
regs: 0x0, 0x0
irq: 29
kernel:
text: 0x80000000, 0x1ac000
data: 0x801ac000, 0x62000
entry: 0x80074260
Kernel stack at 0x82531000
System provided memory map:
phys: 0x40000000-0x41eac000, virt: 0x40000000-0x41eac000, type: EfiConventionalMemory (0x7), attr: 0x8
phys: 0x41eac000-0x42000000, virt: 0x41eac000-0x42000000, type: EfiLoaderData (0x2), attr: 0x8
phys: 0x42000000-0x4205c000, virt: 0x42000000-0x4205c000, type: EfiBootServicesData (0x4), attr: 0x8
phys: 0x4205c000-0x4205d000, virt: 0x4205c000-0x4205d000, type: EfiConventionalMemory (0x7), attr: 0x8
phys: 0x4205d000-0x4264e000, virt: 0x4205d000-0x4264e000, type: EfiLoaderData (0x2), attr: 0x8
phys: 0x4264e000-0x4264f000, virt: 0x4264e000-0x4264f000, type: EfiBootServicesData (0x4), attr: 0x8
phys: 0x4264f000-0x427cf000, virt: 0x4264f000-0x427cf000, type: EfiLoaderData (0x2), attr: 0x8
phys: 0x427cf000-0x42826000, virt: 0x427cf000-0x42826000, type: EfiLoaderCode (0x1), attr: 0x8
phys: 0x42826000-0x4282a000, virt: 0x42826000-0x4282a000, type: EfiBootServicesData (0x4), attr: 0x8
phys: 0x4282a000-0x42832000, virt: 0x4282a000-0x42832000, type: EfiACPIReclaimMemory (0x9), attr: 0x8
phys: 0x42832000-0x42836000, virt: 0x42832000-0x42836000, type: EfiBootServicesData (0x4), attr: 0x8
phys: 0x42836000-0x42837000, virt: 0x42836000-0x42837000, type: EfiRuntimeServicesData (0x6), attr: 0x8000000000000008
phys: 0x42837000-0x42838000, virt: 0x42837000-0x42838000, type: EfiBootServicesData (0x4), attr: 0x8
phys: 0x42838000-0x42859000, virt: 0x42838000-0x42859000, type: EfiRuntimeServicesData (0x6), attr: 0x8000000000000008
phys: 0x42859000-0x4285b000, virt: 0x42859000-0x4285b000, type: EfiBootServicesData (0x4), attr: 0x8
phys: 0x4285b000-0x4285c000, virt: 0x4285b000-0x4285c000, type: EfiRuntimeServicesData (0x6), attr: 0x8000000000000008
phys: 0x4285c000-0x42866000, virt: 0x4285c000-0x42866000, type: EfiBootServicesData (0x4), attr: 0x8
phys: 0x42866000-0x43873000, virt: 0x42866000-0x43873000, type: EfiBootServicesCode (0x3), attr: 0x8
phys: 0x43873000-0x43874000, virt: 0x43873000-0x43874000, type: EfiRuntimeServicesData (0x6), attr: 0x8000000000000008
phys: 0x43874000-0x43a8b000, virt: 0x43874000-0x43a8b000, type: EfiBootServicesCode (0x3), attr: 0x8
phys: 0x43a8b000-0x43a8d000, virt: 0x43a8b000-0x43a8d000, type: EfiRuntimeServicesCode (0x5), attr: 0x8000000000000008
phys: 0x43a8d000-0x43ad5000, virt: 0x43a8d000-0x43ad5000, type: EfiBootServicesCode (0x3), attr: 0x8
phys: 0x43ad5000-0x43ad8000, virt: 0x43ad5000-0x43ad8000, type: EfiReservedMemoryType (0x0), attr: 0x8
phys: 0x43ad8000-0x43b00000, virt: 0x43ad8000-0x43b00000, type: EfiBootServicesCode (0x3), attr: 0x8
phys: 0x43b00000-0x43d58000, virt: 0x43b00000-0x43d58000, type: EfiReservedMemoryType (0x0), attr: 0x8
phys: 0x43d58000-0x44000000, virt: 0x43d58000-0x44000000, type: EfiBootServicesCode (0x3), attr: 0x8
Welcome to kernel debugger output!
Haiku revision: hrev59162+dirty, debug level: 2
PANIC: _mutex_unlock() failure: thread 0 is trying to release mutex 0x801c4f1c (current holder -1)
Welcome to Kernel Debugging Land...
Thread 0 "" running on CPU 0
stack trace for thread 0x0 ""
kernel stack: 0x00000000 to 0x00000000
frame caller <image>:function + offset
0 82534e14 (+ 52) 80176538
1 82534e4c (+ 56) 800c850c
2 82534e9c (+ 80) 800c8a2c
3 82534eb4 (+ 24) 800c8d98
4 82534edc (+ 40) 800aaa98
5 82534f24 (+ 72) 800d1690
6 82534f44 (+ 32) 800d1e80
7 82534fdc (+ 152) 8014f9cc
8 82534ffc (+ 32) 80074380
9 438665b4 (+ 0) 43a8c3f9
kdebug>
We’re in the kernel debugger now!
I manually decoded the stacktrace to see where we are (using objdump on kernel.so and matching addresses):
0 82534e14 (+ 52) 80176538 arch_debug_call_with_fault_handler
1 82534e4c (+ 56) 800c850c kernel_debugger_loop
2 82534e9c (+ 80) 800c8a2c kernel_debugger_internal
3 82534eb4 (+ 24) 800c8d98 panic
4 82534edc (+ 40) 800aaa98 _mutex_unlock
5 82534f24 (+ 72) 800d1690 guarded_heap_allocate_meta
6 82534f44 (+ 32) 800d1e80 heap_init
7 82534fdc (+ 152) 8014f9cc vm_init
8 82534ffc (+ 32) 80074380 _start
9 438665b4 (+ 0) 43a8c3f9