crash: incompatible arguments: vmlinux is not SMP -- live system is SMP

Bug #1460942 reported by Ming Lei
This bug report is a duplicate of:  Bug #1444528: crash doesn't work with 4.0 kernels. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
crash (Ubuntu)
Fix Released
Undecided
Unassigned
Trusty
New
Undecided
Unassigned
Utopic
New
Undecided
Unassigned
Vivid
New
Undecided
Unassigned
Wily
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

crash can't be used on ubuntu trusty, utopic and vivid

[Test Case]

sudo crash ~/vmlinux

[Regression Potential]

The proposed patch has been merged upstream, so there shouldn't be potential regression

[Other Info]

When I build crash from wily, the failure in [1] can be
triggered if the kernel is 4.0+.

[1] failure log
ubuntu@am2:~/git/crash-wily$ sudo ./crash ~/vmlinux

crash 7.0.8
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.

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 "aarch64-unknown-linux-gnu"...

WARNING: kernels compiled by different gcc versions:
  /home/ubuntu/vmlinux: (unknown)
  live system kernel: 4.8.2

WARNING: kernel version inconsistency between vmlinux and live memory

crash: incompatible arguments:
   /home/ubuntu/vmlinux is not SMP -- live system is SMP

Usage:

  crash [OPTION]... NAMELIST MEMORY-IMAGE[@ADDRESS] (dumpfile form)
  crash [OPTION]... [NAMELIST] (live system form)

Enter "crash -h" for details.
ubuntu@am2:~/git/crash-wily$

Revision history for this message
Ming Lei (tom-leiming) wrote :

The problem can be fixed by applying the following commit:

commit db07dbf5a7e19806b1629bd4125e6643978c6f9f
Author: Dave Anderson <email address hidden>
Date: Thu Feb 19 16:16:33 2015 -0500

    Prepare for the future increment of Linux 3.x to 4.x.
    (<email address hidden>)

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

From a private email thread, the next step is to merge this commit to the upstream Debian crash archive, and then re-sync the Ubuntu crash archive from Debian.

Ming Lei (tom-leiming)
description: updated
Revision history for this message
dann frazier (dannf) wrote :

Resolved for wily w/ Debian sync of upstream 7.1.1.

Changed in crash (Ubuntu Wily):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.