device: 0.155 other: 0.148 semantic: 0.135 vnc: 0.087 socket: 0.064 network: 0.063 debug: 0.061 graphic: 0.051 performance: 0.048 permissions: 0.046 files: 0.040 PID: 0.040 boot: 0.038 KVM: 0.024 debug: 0.546 other: 0.091 files: 0.075 PID: 0.055 semantic: 0.038 KVM: 0.036 network: 0.030 performance: 0.030 device: 0.022 socket: 0.018 permissions: 0.018 graphic: 0.016 boot: 0.014 vnc: 0.012 x86_cpu_gdb_read_register segfaults when gdb requests registers When attempting to attach to the gdbstub, a segfault occurs. I traced this down to a problem in a call to gdb_get_reg16 where the mem_buf was being treated like a uint8_t* instead of a GByteArray. The buffer passed to gdb_get_reg16 ends up passing an invalid GByteArray pointer, which subsequently causes a segfault in memcpy. I have a fix for this - just need to educate myself on how to submit a patch. Thanks for tracking down the source of the bug. Our 'submitting patches' policy is at https://wiki.qemu.org/Contribute/SubmitAPatch in case you haven't already found it. (It's quite long but for a simple one-shot bugfix patch the important stuff is just the summarized bits at the top.) Fixed in commit bbc40fefcee0d69d61ceaf8c0695d2ce43cdc87b.