crash
crash copied to clipboard
Dwarf Error: wrong version in compilation unit header (is 0, should be 2, 3, or 4)
I try to introduce crash
tool into ALT Linux, but, there is a problem - if vmlinux.debug
is eu-elfcompress
ed (no matter gabi
or gnu
compressed) - crash
is unable to load it with:
4.19.127-rt-alt2.rt54:~# crash
crash 7.2.8.0.21.gc4862e1-alt1
Copyright (C) 2002-2020 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 "x86_64-unknown-linux-gnu"...
gdb called without error_hook: Dwarf Error: wrong version in compilation unit header (is 0, should be 2, 3, or 4) [in module /usr/lib/debug/usr/lib/debug/lib/modules/4.19.127-rt-alt2.rt54/vmlinux.debug]
Dwarf Error: wrong version in compilation unit header (is 0, should be 2, 3, or 4) [in module /usr/lib/debug/usr/lib/debug/lib/modules/4.19.127-rt-alt2.rt54/vmlinux.debug]
crash: /usr/lib/debug/lib/modules/4.19.127-rt-alt2.rt54/vmlinux: no debugging data available
Is it possible to have support for elfcompressed debug into crash
? Would it be hard to add?
Additional note: I suppose eu-elfcompress
's compression is the same in result as with CONFIG_DEBUG_INFO_COMPRESSED
kernel option (which is -gz=zlib -Wa,--compress-debug-sections=zlib --compress-debug-sections=zlib
).
The gdb-7.6 that crash contains looks to have some code to handle gnu
type compression, but as far as I've tested with eu-elfcompress -t gnu
(not gcc -gz=zlib
) it didn't work as you said. It would need to patch or rebase the gdb, so I think it would be pretty hard to support it.