PDA

View Full Version : SLE11 SP2 Debuginfo



CIURI86
25-Jul-2014, 10:45
Hello ,

I have a problem with the crash command for debugging a kernel crash.

I followed the folowing link (https://www.suse.com/communities/conversations/running-crash-to-analyze-dump-data-on-sles11/).

But I do not manage to get the "crash" comand to work :


crash vmlinux-3.0.101-0.7.17-default vmcore

crash 6.0.7
Copyright (C) 2002-2012 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: vmlinux-3.0.101-0.7.17-default: no debugging data available
crash: vmlinux-3.0.101-0.7.17-default.debug: debuginfo file not found

crash: either install the appropriate kernel debuginfo package, or
copy vmlinux-3.0.101-0.7.17-default.debug to this machine


The flowing packages are installed as the tutorial from early is telling me:



#zypper lr

# | Alias | Name | Enabled | Refresh
---+---------------------------------------------------+--------------------------------------------------+---------+--------
1 | Novell-Open-Enterprise-Server-11-SP1_11.1.1-1.153 | Novell Open Enterprise Server 11 SP1 | Yes | No
2 | SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234 | SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234 | Yes | No
3 | nu_novell_com:OES11-SP1-Pool | OES11-SP1-Pool | Yes | Yes
4 | nu_novell_com:OES11-SP1-Updates | OES11-SP1-Updates | Yes | Yes
5 | nu_novell_com:SLE11-SP1-Debuginfo-Pool | SLE11-SP1-Debuginfo-Pool | No | Yes
6 | nu_novell_com:SLE11-SP1-Debuginfo-Updates | SLE11-SP1-Debuginfo-Updates | No | Yes
7 | nu_novell_com:SLE11-SP2-Debuginfo-Core | SLE11-SP2-Debuginfo-Core | Yes | Yes
8 | nu_novell_com:SLE11-SP2-Debuginfo-Updates | SLE11-SP2-Debuginfo-Updates | Yes | Yes
9 | nu_novell_com:SLE11-WebYaST-SP2-Pool | SLE11-WebYaST-SP2-Pool | No | Yes
10 | nu_novell_com:SLE11-WebYaST-SP2-Updates | SLE11-WebYaST-SP2-Updates | No | Yes
11 | nu_novell_com:SLES11-Extras | SLES11-Extras | No | Yes
12 | nu_novell_com:SLES11-SP1-Pool | SLES11-SP1-Pool | Yes | Yes
13 | nu_novell_com:SLES11-SP1-Updates | SLES11-SP1-Updates | Yes | Yes
14 | nu_novell_com:SLES11-SP2-Core | SLES11-SP2-Core | Yes | Yes
15 | nu_novell_com:SLES11-SP2-Extension-Store | SLES11-SP2-Extension-Store | Yes | Yes
16 | nu_novell_com:SLES11-SP2-Updates | SLES11-SP2-Updates | Yes | Yes




# uname -r
3.0.101-0.7.17-default

# zypper search -s kernel-*-debuginfo* | grep 3.0.101-0.7.17
v | kernel-default-debuginfo | package | 3.0.101-0.7.17.1 | x86_64 | SLE11-SP2-Debuginfo-Updates
v | kernel-default-devel-debuginfo | package | 3.0.101-0.7.17.1 | x86_64 | SLE11-SP2-Debuginfo-Updates
| kernel-ec2-debuginfo | package | 3.0.101-0.7.17.1 | x86_64 | SLE11-SP2-Debuginfo-Updates
| kernel-trace-debuginfo | package | 3.0.101-0.7.17.1 | x86_64 | SLE11-SP2-Debuginfo-Updates
| kernel-trace-devel-debuginfo | package | 3.0.101-0.7.17.1 | x86_64 | SLE11-SP2-Debuginfo-Updates
| kernel-xen-debuginfo | package | 3.0.101-0.7.17.1 | x86_64 | SLE11-SP2-Debuginfo-Updates
| kernel-xen-devel-debuginfo | package | 3.0.101-0.7.17.1 | x86_64 | SLE11-SP2-Debuginfo-Updates


I need some help to get this working for debugging my kernel.

Thank You!

jmozdzen
25-Jul-2014, 11:55
Hi CIURI86,

while I've never had to deal with debug kernels so far, the question made me curious.

The "v" status of the debug files caught my eye: "The 'v' status is only shown if the version or the repository matters (--details or --repo is used), and the installed version differs from the one listed or is from a repository other than specified." - do you actually have the proper version of the debug package(s) installed?

What does "rpm -ql kernel-default-debuginfo" tell you about its version and the installed files from that package - do you see vmlinux-3.0.101-0.7.17-default.debug as part of that list?

If the installed version is actually correct: Is the file available at the location specified? I had a quick glimpse at the options of the "crash" command but couldn't sport where it would look for the file - maybe running "strace" on the command would be helpful to see where it is looking (and not seeing) the required debug file?

Regards,
Jens

CIURI86
25-Jul-2014, 12:23
Hello ,




rpm -ql kernel-default-debuginfo | grep vmlinux

The output is:

/usr/lib/debug/boot/vmlinux-3.0.101-0.7.21-default.debug



I see it is 3.0.101-0.7.21

I need to downgrade somehow to 3.0.101-0.7.17 ,,,

jmozdzen
25-Jul-2014, 13:05
Hi CIURI86,

> I need to downgrade somehow to 3.0.101-0.7.17

did you manage to downgrade - and did it resolve the problem with the "crash" command?

Regards,
Jens

CIURI86
25-Jul-2014, 13:19
Nope ,

I'm not managing to install the specified version ....

Can you please help me ?

I tried from this tutorial (http://doc.opensuse.org/products/draft/SLES/SLES-tuning_sd_draft/cha.tuning.multikernel.html)to modify zypper config to allow me to install other versions of the package.



zypper in kernel-default-debuginfo-3.0.101-0.7.17
Refreshing service 'nu_novell_com'.
Loading repository data...
Reading installed packages...
Package 'kernel-default-debuginfo-3.0.101-0.7.17' not found.
Resolving package dependencies...

Nothing to do.

CIURI86
25-Jul-2014, 13:29
Hello ,

I forgot a number kernel-default-debuginfo-3.0.101-0.7.17.1 uff , sorry it's now installing :))