[Crash-utility] problem with crash on upstream kernel cores

Dave Anderson anderson at redhat.com
Fri Feb 23 21:00:09 UTC 2007


Josef Whiter wrote:

> Hello,
>
> I'm having a problem using crash on cores generated by upstream kernels (in this
> case 2.6.20).  I'm using crash 4.0-3.20, and I've built my kernel with -g.
> Whenever I try to open it this is the error I get
>
> [root at rh5cluster2 127.0.0.1-2007-02-23-15:09:25]#
> crash /root/linux-2.6/vmlinux vmcore
>
> crash 4.0-3.20
> Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007  Red Hat, Inc.
> Copyright (C) 2004, 2005, 2006  IBM Corporation
> Copyright (C) 1999-2006  Hewlett-Packard Co
> Copyright (C) 2005, 2006  Fujitsu Limited
> Copyright (C) 2006  VA Linux Systems Japan K.K.
> Copyright (C) 2005  NEC Corporation
> Copyright (C) 1999, 2002  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 6.1
> Copyright 2004 Free Software Foundation, Inc.
> GDB 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.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i686-pc-linux-gnu"...
>
> crash: invalid (optional) structure member offsets: zone_struct_free_pages or
> zone_free_pages
>        FILE: memory.c  LINE: 11520  FUNCTION: dump_memory_nodes()
>
> [/usr/bin/crash] error trace: 8096dcc => 80baca0 => 80ba076 => 812ee1a
> /usr/bin/nm: /usr/bin/crash: no symbols
> /usr/bin/nm: /usr/bin/crash: no symbols
> /usr/bin/nm: /usr/bin/crash: no symbols
> /usr/bin/nm: /usr/bin/crash: no symbols
>
> WARNING: Because this kernel was compiled with gcc version 4.1.1, certain
>          commands or command options may fail unless crash is invoked with
>          the  "--readnow" command line option.
>
> [root at rh5cluster2 127.0.0.1-2007-02-23-15:09:25]# file vmcore
> vmcore: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV), SVR4-style
>
> the file is definitely a proper core.  I used the --readnow option and that did
> not help either.  Thank you,

if you do this with your kernel:

  # gdb vmlinux
  ...
  (gdb) ptype struct zone

What do you see?

Dave




More information about the Crash-utility mailing list