[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Crash-utility] crash-utility for inspecting FreeBSD VM dump



Hi Dave,

 

Thanks for your answer.

 

I will try gdb to do so.

 

Thanks

Jincheng Miao

 

 

 

From: Dave Anderson
Sent: 2016
215 0:15
To: Discussion list for crash utility usage, maintenance and development
Subject: Re: [Crash-utility] crash-utility for inspecting FreeBSD VM dump

 



----- Original Message -----
>
>
> Hi everyone,
>
>
>
> I am curious for inspecting FreeBSD VM dump by crash-utility.
>
>
>
> I built crash from source, and changed the configure option of gdb to target
> FreeBSD.
>
> And used virsh dump --memory-only to generate freebsd.dump.
>
> But I got an obstacle when use this crash utility to load FreeBSD dump:
>
> # ./crash/crash ./kernel.debug ./freebsd.dump
>
>
>
> crash 7.1.4
>
> Copyright (C) 2002-2015 Red Hat, Inc.
>
> Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
>
> Copyright (C) 1999-2006 Hewlett-Packard Co
>
> Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
>
> Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
>
> Copyright (C) 2005, 2011 NEC Corporation
>
> Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
>
> Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc.
>
> This program is free software, covered by the GNU General Public License,
>
> and you are welcome to change it and/or distribute copies of it under
>
> certain conditions. Enter "help copying" to see the conditions.
>
> This program has absolutely no warranty. Enter "help warranty" for details.
>
>
>
> GNU gdb (GDB) 7.6
>
> Copyright (C) 2013 Free Software Foundation, Inc.
>
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
>
> This is free software: you are free to change and redistribute it.
>
> There is NO WARRANTY, to the extent permitted by law. Type "show copying"
>
> and "show warranty" for details.
>
> This GDB was configured as "--host=x86_64-unknown-linux-gnu
> --target=x86_64-free bsd"...
>
>
>
> crash: ./kernel.debug: no debugging data available
>
>
>
> But this kernel.debug does have the debug sections:
>
> # readelf --sections ./kernel.debug | grep -i debug
>
> [39] .debug_aranges PROGBITS 0000000000000000 010e500b
>
> [40] .debug_pubnames PROGBITS 0000000000000000 0110d7eb
>
> [41] .debug_info PROGBITS 0000000000000000 012197dd
>
> [42] .debug_abbrev PROGBITS 0000000000000000 034485ff
>
> [43] .debug_line PROGBITS 0000000000000000 03557e9f
>
> [44] .debug_frame PROGBITS 0000000000000000 0387a408
>
> [45] .debug_str PROGBITS 0000000000000000 03985a90
>
> [46] .debug_loc PROGBITS 0000000000000000 03b92d35
>
> [47] .debug_pubtypes PROGBITS 0000000000000000 049b94f1
>
> [48] .debug_ranges PROGBITS 0000000000000000 04da98be
>
>
>
> So how is it possible to use crash to load FreeBSD dump?

The crash utility can only be used with Linux kernels.

If you dumped the kernel in ELF format, you may be able to use gdb.

Dave
 
>
>
>
> Thanks in advance.
>
> Jincheng Miao
>
> --
> Crash-utility mailing list
> Crash-utility redhat com
> https://www.redhat.com/mailman/listinfo/crash-utility

--
Crash-utility mailing list
Crash-utility redhat com
https://www.redhat.com/mailman/listinfo/crash-utility

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]