Bug 742260

Summary: crash fails to start -- Dwarf Error: wrong version in compilation unit header
Product: [Fedora] Fedora Reporter: Jeff Layton <jlayton>
Component: crashAssignee: Dave Anderson <anderson>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anderson, jmoskovc, mtoman, shawn.bohrer, steved, stuart
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: crash-6.0.2-1.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 798927 (view as bug list) Environment:
Last Closed: 2012-01-15 20:04:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 798927    

Description Jeff Layton 2011-09-29 14:23:57 UTC
Trying to run crash live on a recent rawhide kernel. When I do so, I get:


------------------------[snip]-------------------------
# crash

crash 5.1.8-1.fc17
Copyright (C) 2002-2011  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, 2007  VA Linux Systems Japan K.K.
Copyright (C) 2005  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.0
Copyright (C) 2009 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"...
gdb called without error_hook: Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/lib/debug/lib/modules/3.1.0-0.rc7.git0.2.fc17.x86_64/vmlinux]
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/lib/debug/lib/modules/3.1.0-0.rc7.git0.2.fc17.x86_64/vmlinux]

crash: /usr/lib/debug/lib/modules/3.1.0-0.rc7.git0.2.fc17.x86_64/vmlinux: no debugging data available
------------------------[snip]-------------------------

The machine is running:

crash-5.1.8-1.fc17.x86_64
kernel-3.1.0-0.rc7.git0.2.fc17.x86_64
kernel-debuginfo-common-x86_64-3.1.0-0.rc7.git0.2.fc17.x86_64
kernel-debuginfo-3.1.0-0.rc7.git0.2.fc17.x86_64

...and kernel debuginfo packages seem to be correctly installed.

Comment 1 Dave Anderson 2011-09-29 14:34:02 UTC
Yeah, I just became aware of this a couple days ago.  It's because
gcc-4.6.x has started using -gdwarf4 by default, and the embedded
gdb-7.0 version within crash doesn't support it.  It will require
an upgrade of the embedded gdb.  

Work is in progress...

Comment 2 Dave Anderson 2011-10-26 19:48:09 UTC
Information for build crash-6.0.0-1.fc17:

 http://koji.fedoraproject.org/koji/buildinfo?buildID=270760

Comment 3 Shawn Bohrer 2011-12-05 17:00:13 UTC
This bug also affects F16.  Can you please provide an update for F16 as well?

Comment 4 Dave Anderson 2011-12-05 18:37:05 UTC
(In reply to comment #3)
> This bug also affects F16.  Can you please provide an update for F16 as well?

Yeah, although I might use crash-6.0.1 (or later).  I usually don't
get too active on current Fedora releases because any kernel upgrade
can conceivably introduce something that breaks the crash utility.

Comment 5 Fedora Update System 2012-01-04 20:19:40 UTC
crash-6.0.2-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/crash-6.0.2-1.fc16

Comment 6 Fedora Update System 2012-01-05 20:55:47 UTC
crash-6.0.2-1.fc16 has been pushed to the Fedora 16 testing repository.

Comment 7 Fedora Update System 2012-01-15 20:04:32 UTC
crash-6.0.2-1.fc16 has been pushed to the Fedora 16 stable repository.