Hi,

please find the logs attached for crash -d8 vmlinux System.map.

crash -d8 vmlinux doesnt work.
it gives

crash 6.0.8
Copyright (C) 2002-2012  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.

get_live_memory_source: /dev/mem
WARNING: ./vmlinux and /proc/version do not match!

WARNING: /proc/version indicates kernel version: 3.0.15+

crash: please use the vmlinux file for that kernel version, or try using
       the System.map for that kernel version as an additional argument.

Regards,
Oza.



From: Dave Anderson <anderson@redhat.com>
To: paawan oza <paawan1982@yahoo.com>
Cc: "Discussion list for crash utility usage, maintenance and development" <crash-utility@redhat.com>
Sent: Thursday, 9 August 2012 6:24 PM
Subject: Re: [Crash-utility] using crash for ARM

----- Original Message -----
>
>
> shell@android:/system # ./crash -d8

OK, so try this:

$ crash -d8 vmlinux

and/or:

$ crash -d8 vmlinux System.map

Dave


> crash 6.0.8
> Copyright (C) 2002-2012 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.
>
>
> find_booted_kernel: search for [Linux version 3.0.15+
> (oza@lc-blr-292) (gcc version 4.4.3 (GCC) ) #2 PREEMPT Wed Aug 8
> 13:39:53 IST 2012]
> searchdirs[7]: /usr/lib/debug/lib/modules/3.0.15+/
> searchdirs[0]: /usr/src/linux/
> searchdirs[1]: /boot/
> searchdirs[2]: /boot/efi/redhat
> searchdirs[3]: /boot/efi/EFI/redhat
> searchdirs[4]: /
> searchdirs[5]: /usr/src/redhat/BUILD/kernel-3.0.15/linux/
> searchdirs[6]: /usr/src/redhat/BUILD/kernel-3.0.15/linux-3.0.15/
> mount_points[0]: / (cafcb0)
> mount_points[1]: /dev (cafcc0)
> mount_points[2]: /dev/pts (cafcd0)
> mount_points[3]: /proc (cafce8)
> mount_points[4]: /sys (cafcf8)
> mount_points[5]: /acct (cafd08)
> mount_points[6]: /mnt/asec (cafd18)
> mount_points[7]: /mnt/obb (cafd30)
> mount_points[8]: /dev/cpuctl (cafd48)
> mount_points[9]: /system (cafd68)
> mount_points[10]: /data (cafd80)
> mount_points[11]: /cache (cafd90)
> mount_points[12]: /sys/kernel/debug (cafda0)
> find_booted_kernel: check: /init
> crash: cannot find booted kernel -- please enter namelist argument
>
>
> Usage:
>
> crash [OPTION]... NAMELIST MEMORY-IMAGE (dumpfile form)
> crash [OPTION]... [NAMELIST] (live system form)
>
> Enter "crash -h" for details.
>
>
> PS: I also get a warning message from system: our own message crash
> used greatest stack depth: 5016 bytes left
>
>
>
> apart from that If I run crash
>
>
> ./crash ./vmlinux
> crash 6.0.8
> Copyright (C) 2002-2012 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.
>
> get_live_memory_source: /dev/mem
> WARNING: ./vmlinux and /proc/version do not match!
>
> WARNING: /proc/version indicates kernel version: 3.0.15+
>
> crash: please use the vmlinux file for that kernel version, or try
> using
> the System.map for that kernel version as an additional argument.
>
>
>
> If I include system.map
> it exits with
> 'can not open secondary temp[orary file"
> void
> open_tmpfile2(void)
> {
> if (pc->tmpfile2)
> error(FATAL, "recursive secondary temporary file usage\n");
>
> if ((pc->tmpfile2 = tmpfile()) == NULL)
> error(FATAL, "cannot open secondary temporary file\n");
>
> rewind(pc->tmpfile2);
> }
>
>
>
> Regards,
> Oza.
>
>
>
>
>
>
>
>
>
>
>
>
> From: Dave Anderson <anderson@redhat.com>
> To: paawan oza <paawan1982@yahoo.com>
> Cc: "Discussion list for crash utility usage, maintenance and
> development" <crash-utility@redhat.com>
> Sent: Thursday, 9 August 2012 12:11 AM
> Subject: Re: [Crash-utility] using crash for ARM
>
>
>
> ----- Original Message -----
> >
> >
> > > > crash: cannot open secondary temporary file
> > >
> > > When do you see that message?
> >
> > above is the last error statement and crash exits.
> >
> > Regards,
> > Oza.
>
> Attach the output of "crash -d8".
>
> Dave
>
>
>