[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug 1869497] Re: x86_cpu_gdb_read_register segfaults when gdb requests
[Bug 1869497] Re: x86_cpu_gdb_read_register segfaults when gdb requests registers
Sun, 29 Mar 2020 20:33:57 -0000
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
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
x86_cpu_gdb_read_register segfaults when gdb requests registers
Status in QEMU:
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 subsequentlycauses a segfault in memcpy.
I have a fix for this - just need to educate myself on how to submit a
To manage notifications about this bug go to: