commit r7088 breaks kqemu, even when its not loaded...
I was just trying to build head again on FreeBSD, and found it now always segfaults at startup regardless whether kqemu is loaded or not, the only thing that helps is passing -no-kqemu. Bisected, and found the breakage starts with r7088 (git 94a6b54fd6d2d3321066cb4db7abeeb417af9365, `Implement dynamic guest ram allocation.')
#0 cpu_physical_memory_reset_dirty (start=134344704, end=134348800,
dirty_flags=2)
at /usr/ports/emulators/qemu-devel-20090411a/work/qemu-snapshot-20090411_14/exec.c:18791879 p[i] &= mask;
[New Thread 0x8023020b0 (LWP 100219)]
(gdb) bt
#0 cpu_physical_memory_reset_dirty (start=134344704, end=134348800,
dirty_flags=2)
at /usr/ports/emulators/qemu-devel-20090411a/work/qemu-snapshot-20090411_14/exec.c:1879
#1 0x00000000004b5131 in tb_link_phys (tb=0x802400000, phys_pc=Variable "phys_pc" is not available.
)
at /usr/ports/emulators/qemu-devel-20090411a/work/qemu-snapshot-20090411_14/exec.c:1147
#2 0x00000000004b692c in tb_gen_code (env=0x802338000, pc=4294967280,
cs_base=4294901760, flags=Variable "flags" is not available.
)
at /usr/ports/emulators/qemu-devel-20090411a/work/qemu-snapshot-20090411_14/exec.c:896
#3 0x00000000004bae5b in cpu_x86_exec (env1=Variable "env1" is not available.
)
at /usr/ports/emulators/qemu-devel-20090411a/work/qemu-snapshot-20090411_14/cpu-exec.c:160
#4 0x000000000040c7a1 in main (argc=7, argv=0x7fffffffe9d8, envp=Variable "envp" is not available.
)
at /usr/ports/emulators/qemu-devel-20090411a/work/qemu-snapshot-20090411_14/vl.c:3840(gdb) p p
$1 = (uint8_t *) 0x801f <Address 0x801f out of bounds> (gdb) q
Cheers,
Juergen
Quoted 5 lines · Juergen Lock
I was just trying to build head again on FreeBSD, and found it now always segfaults at startup regardless whether kqemu is loaded or not, the only thing that helps is passing -no-kqemu. Bisected, and found the breakage starts with r7088 (git
94a6b54fd6d2d3321066cb4db7abeeb417af9365, `Implement dynamic guest ram allocation.')
And guess what... actually it doesn't. Looking at this again I meanwhile found out this was in fact caused by a broken FreeBSD patch that I thought was disabled at least once in my original investigations, but apparently it wasnt. :(
Paul, I guess I owe you a ${beverage} now...
Juergen