gdb in CURRENT cannot debug userland cores, when is kernel lldb coming?

Dimitry Andric dim at FreeBSD.org
Wed Jun 11 20:40:07 UTC 2014


On 11 Jun 2014, at 21:56, Craig Rodrigues <rodrigc at FreeBSD.org> wrote:
> On Wed, Jun 11, 2014 at 12:30 PM, Dimitry Andric <dim at freebsd.org> wrote:
>> On 11 Jun 2014, at 20:53, Craig Rodrigues <rodrigc at FreeBSD.org> wrote:
>>> 
>>> Recently when trying to debug some coredumps in CURRENT from
>>> a userland process in the devel/libvirt port, I found that the gdb in
>>> base could not get a backtrace from the core file:
>>> 
>>> http://lists.freebsd.org/pipermail/freebsd-virtualization/2014-June/002606.html
>> 
>> Can you please post the output of the following?
>> 
>> objdump -W /usr/local/sbin/libvirtd | head
>> 
>> -Dimitry
>> 
> 
> $ objdump -W /usr/local/sbin/libvirtd | head
> 
> /usr/local/sbin/libvirtd:     file format elf64-x86-64-freebsd
> 
> The section .debug_aranges contains:
> 
>  Length:                   92
>  Version:                  2
>  Offset into .debug_info:  0
>  Pointer Size:             8
>  Segment Size:             0

Ah sorry, your objdump prints sections in a different order than mine.
I was mainly interested in the DWARF version of debug information; maybe
the way you built libvirt has caused it to contain DWARF4 instead of
DWARF2.

Can you post the complete objdump output instead, or post just the part
under "The section .debug_info contains"?  That should look similar to:

The section .debug_info contains:

  Compilation Unit @ offset 0x0:
   Length:        59
   Version:       4
   Abbrev Offset: 0
   Pointer Size:  4
[...]

but with possibly another "Version:" line.

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20140611/5cabbc37/attachment.sig>


More information about the freebsd-arch mailing list