qemu-system-arm segfaults while servicing SYS_HEAPINFO
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
I compiled QEMU version 5.2.0 from source on Ubuntu 18.04, and tried to use it to run the attached bare-metal Arm hello-world image, using the command line
qemu-system-arm -M microbit -semihosting -nographic -device loader,
The result was that qemu-system-arm itself died of a segfault. Compiling it for debugging, the location of the segfault was in target/
const struct arm_boot_info *info = env->boot_info;
and the problem seems to be that 'info', aka env->boot_info, is NULL in this context.
Note that this only happens for M-profile in system emulation mode.