[libvirt] [PATCH] Augment bug reporting documentation

Eric Blake eblake at redhat.com
Wed Nov 10 16:00:16 UTC 2010


On 11/10/2010 05:18 AM, Daniel Veillard wrote:
> On Wed, Nov 10, 2010 at 11:34:23AM +0000, Daniel P. Berrange wrote:
>> On Wed, Nov 10, 2010 at 11:01:15AM +0100, Daniel Veillard wrote:
>>> With some instruction on how to attach useful gdb backtraces
> [...]
>>> +      <pre> #  ps -o etime,pid `pgrep libvirt`
>>> +... note the process id from the output
>>> +# gdb /usr/sbin/libvirtd
>>> +.... some informations about gdb and loading debug data
>>> +(gdb) attach $the_damon_process_id
>>> +....
>>> +(gdb) thread apply all bt
>>> +.... informations to attach to the bug
>>> +(gdb)
>>> +</pre>
>>
>> You don't need to specify the  /usr/sbin/libvirtd binary name on the
>> command line to GDB if you're about to use 'attach', because GDB will
>> find it automatically from the PID, but ACK anyway
> 
>   okay, just that I always do it that way, and since that's the only
> example of gdb usage on that page, being a bit more complete should
> not hurt :-)

Personally, I use

gdb /proc/nnn/exe nnn

when I know the process I want to debug, but not its location.  Then I
don't have to do an apply step inside gdb.  But what you pushed is fine :)

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20101110/04ab8d05/attachment-0001.sig>


More information about the libvir-list mailing list