summary refs log tree commit diff stats
path: root/results/classifier/gemma3:12b/debug/1918302
blob: 4b28bac2ac8e316cd1886ab0fb29a0c16f81f37f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
qemu-system-arm segfaults while servicing SYS_HEAPINFO

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,file=hello.hex

The result was that qemu-system-arm itself died of a segfault. Compiling it for debugging, the location of the segfault was in target/arm/arm-semi.c, in the case handler for the semihosting call TARGET_SYS_HEAPINFO, on line 1020 which assigns to 'rambase':

            const struct arm_boot_info *info = env->boot_info;
            target_ulong rambase = info->loader_start;

and the problem seems to be that 'info', aka env->boot_info, is NULL in this context.