[Crash-utility] The problems when running SuSE 12 on VirtualBox

Dave Anderson anderson at redhat.com
Fri Nov 13 14:54:11 UTC 2015



----- Original Message -----
> Hi all,
> 
> Firstly, I am not sure whether posting this issue on this mailing list is appropriate, if not,
> please forgive me, thanks!
> 
> I install SuSE Enterprise Linux 12 (Xen version) on VirtualBox, and want to use crash.
> Executing "crash" command, and the output likes this:
>
> # crash
> 
> crash 7.1.3
> Copyright (C) 2002-2014  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.
> 
> crash: /boot/symtypes-3.12.49-6-xen.gz: original filename unknown
>   Use "-f /boot/symtypes-3.12.49-6-xen.gz" on command line to prevent
> this message.
> 
> crash: /boot/symtypes-3.12.49-6-default.gz: original filename unknown
>   Use "-f /boot/symtypes-3.12.49-6-default.gz" on command line to
> prevent this message.
> 
> crash: /boot/xen-4.5.1_10-1.gz: original filename unknown
>   Use "-f /boot/xen-4.5.1_10-1.gz" on command line to prevent this message.
> 
> WARNING: machine type mismatch:
> crash utility: X86_64
> /var/tmp/xen-4.5.1_10-1.gz_E5lLat: X86
> 
> crash: /boot/xen-4.5.gz: original filename unknown
>   Use "-f /boot/xen-4.5.gz" on command line to prevent this message.
> 
> WARNING: machine type mismatch:
> crash utility: X86_64
> /var/tmp/xen-4.5.gz_0BL7f2: X86
> 
> crash: /boot/xen-4.gz: original filename unknown
>   Use "-f /boot/xen-4.gz" on command line to prevent this message.
> 
> WARNING: machine type mismatch:
> crash utility: X86_64
> /var/tmp/xen-4.gz_PW97tB: X86
> 
> crash: /boot/xen-dbg-4.5.1_10-1.gz: original filename unknown
>   Use "-f /boot/xen-dbg-4.5.1_10-1.gz" on command line to prevent this
>   message.
> 
> WARNING: machine type mismatch:
> crash utility: X86_64
> /var/tmp/xen-dbg-4.5.1_10-1.gz_zcILOa: X86
> 
> crash: /boot/xen-dbg-4.5.gz: original filename unknown
>   Use "-f /boot/xen-dbg-4.5.gz" on command line to prevent this message.
> 
> WARNING: machine type mismatch:
> crash utility: X86_64
> /var/tmp/xen-dbg-4.5.gz_AEpJfK: X86
> 
> crash: /boot/xen-dbg-4.gz: original filename unknown
>   Use "-f /boot/xen-dbg-4.gz" on command line to prevent this message.
> 
> WARNING: machine type mismatch:
> crash utility: X86_64
> /var/tmp/xen-dbg-4.gz_np36Nj: X86
> 
> crash: /boot/xen-dbg.gz: original filename unknown
>   Use "-f /boot/xen-dbg.gz" on command line to prevent this message.
> 
> WARNING: machine type mismatch:
> crash utility: X86_64
> /var/tmp/xen-dbg.gz_1tAiuT: X86
> 
> crash: /boot/xen.gz: original filename unknown
>   Use "-f /boot/xen.gz" on command line to prevent this message.
> 
> WARNING: machine type mismatch:
> crash utility: X86_64
> /var/tmp/xen.gz_htZLuv: X86
> 
> crash: /boot/symvers-3.12.49-6-xen.gz: original filename unknown
>   Use "-f /boot/symvers-3.12.49-6-xen.gz" on command line to prevent
> this message.
> 
> 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 "x86_64-unknown-linux-gnu"...
> 
> WARNING: could not find MAGIC_START!
> WARNING: cannot read linux_banner string
> crash: /var/tmp/vmlinux-3.12.49-6-xen.gz_FjRFMJ and /dev/mem do not match!
> 
> Usage:
> 
>  crash [OPTION]... NAMELIST MEMORY-IMAGE[@ADDRESS]     (dumpfile form)
>  crash [OPTION]... [NAMELIST]                          (live system form)
> 
> Enter "crash -h" for details.
> 
> My question are as follows:
> 
> (1) There are so may warnings like this:
> 
> crash: xxxxxx: original filename unknown
>   Use "-f xxxxxx" on command line to prevent this message.
> 
> Do I need to add somay "-f xxxxxx" options on command line? Is there
> any better method?

The message above simply mean that the original filename of the compressed
file was not stored in the file's header.  That means that whoever created
the compressed file used "gzip -n" or "--no-name":

  $ man gzip
  ... [ cut ] ...

     -n --no-name
          When  compressing,  do not save the original file name and time
          stamp by default. (The original name is always saved if the name
          had to be truncated.) When decompressing, do not restore the
          original file name if present (remove only the gzip suffix from
          the compressed file name) and do not restore the original time stamp
          if present (copy it from the compressed file). This option is the
          default when decompressing.
  ...

> (2) "machine type mismatch"
> WARNING: machine type mismatch:
> crash utility: X86_64
> /var/tmp/xen-4.5.1_10-1.gz_E5lLat: X86
> 
> But according to "uname -a":
> 
>  # uname -a
> Linux linux-6ev3 3.12.49-6-xen #1 SMP Mon Oct 26 16:05:37 UTC 2015
> (11560c3) x86_64 x86_64 x86_64 GNU/Linux
> 
> The running SuSE is also a 64-bit OS, so whether can remove these warnings?

The mismatch message says that "/var/tmp/xen-4.5.1_10-1.gz_E5lLat" is an X86
32-bit binary.  You cannot use a 32-bit xen binary with a 64-bit crash utility
binary.  

Run "gunzip xen-4.5.1_10-1.gz", and then run "file" on the uncompressed file.  
If it's a 32-bit binary, and the dumpfile came from that kernel, then you need
to use a 32-bit crash utility binary.  If the dumpfile came from a 64-bit kernel,
then you're using the wrong xen binary.

> (3)
> 
> WARNING: could not find MAGIC_START!
> WARNING: cannot read linux_banner string
> crash: /var/tmp/vmlinux-3.12.49-6-xen.gz_FjRFMJ and /dev/mem do not match!
> 
> How can I fix this issue and run crash on SuSE?

For starters, make sure the kernel, the dumpfile, and the crash binary are all
32-bit or all 64-bit, whichever is appropriate.

Dave

> 
> Thanks very much in advance!
> Best Regards
> Nan Xiao
> 
> --
> Crash-utility mailing list
> Crash-utility at redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility
> 




More information about the Crash-utility mailing list