Bug #1094

kgdb crashes when remote debugging requested

Added by jgordeev about 8 years ago. Updated about 6 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:corecode% Done:


Target version:-


kgdb crashes when remote debugging (-r) is requested. The crash involves
a NULL pointer dereference in libkvm.
I've found that the crash was introduced with revision 1.2 of
In that revision the global variable 'kvm' isn't initialised if remote
debugging is requested, however it is always used. The value of 'kvm' is
passed to a libkvm function which attempts to dereference it.


#1 Updated by alexh almost 7 years ago

Simon, is there any update on this? Did you have a chance of looking into this?

Alex Hornung

#2 Updated by tuxillo about 6 years ago


I've started a qemu booting w/ our latest i386 ISO.

# qemu -m 128 -hda root.img -cdrom dfly.iso -boot d -s

Using /boot/kernel from the ISO image, I've done:

# kgdb -r localhost:1234 /tmp/kernel

I don't get any segfault. So can you please give some instructions on how to
reproduce this crash?

Or maybe it is gone after the gdb update that took place after this bug was opened?

Antonio Huete

#3 Updated by corecode about 6 years ago

Quite possible that the bug is gone. If -r works, then all is fine.

#4 Updated by tuxillo about 6 years ago

Ok, I'm closing it as this issue seems to be gone.

Antonio Huete

Also available in: Atom PDF