LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-03-2010, 03:14 AM   #1
Santoshkb
Member
 
Registered: Sep 2007
Posts: 56

Rep: Reputation: 15
Question Help needed for analysing kernel core dump


HI everyone,

I'm trying to look into kernel core dump,

the core dump is placed in /var/crash

to use kdump it needs vmlinux in centos coud not find it also there is no directory debug as suggested in one of links

crash /usr/lib/debug/lib/modules/crashed-kernel-version/vmlinux /path-to-the-vmcore

Do i need to make a fresh kernel code compilation with debug mode set on? or can i download from any source the vmlinux for i386.

I could see in boot directory vmlinz can i generate the vmlinux is both same.

Please provide your valuable inputs
Thanks
Santosh
 
Old 06-03-2010, 04:02 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
You need a debuginfo kernel equivalent to your running kernel (uname -r) - and the common. With luck you'll find it already built for you at debuginfo.centos.org - I did when I needed one on an older system
A quick google found this - seems worth a look.
 
1 members found this post helpful.
Old 06-03-2010, 10:23 AM   #3
Santoshkb
Member
 
Registered: Sep 2007
Posts: 56

Original Poster
Rep: Reputation: 15
Lightbulb Using crash throws error with vmlinux and core not matching

Thanks for that info, the link helped for installing the kernel-debug's

well i'm facing issue, not matching version with my vmcore.


[root@12]# crash /usr/lib/debug/lib/modules/2.6.18-128.el5.centos.plus/vmlinux /var/crash/2010-06-03-12\:47/vmcore

The following error i'm facing,

----
CRASHTIME=1275549346
cannot determine relocation value: not a live system
gdb /usr/lib/debug/lib/modules/2.6.18-128.el5.centos.plus/vmlinux
GNU gdb 6.1
Copyright 2004 Free Software Foundation, Inc.
GDB 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.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...

cpu_possible_map:
cpu_present_map: 3 12 13 16 17 22 30 31
cpu_online_map: 1 2 3 5 6 7 8 11 12 13 16 17 18 19 21 22 30 31
crash: cannot determine base kernel version
linux_banner:
��b���b���b���b
crash: /usr/lib/debug/lib/modules/2.6.18-128.el5.centos.plus/vmlinux and /var/crash/2010-06-03-12:47/vmcore do not match!

!

---

Verified the core image's linux version as below, moreover i'm using the same host for analysis where the core is dumped.

[root@localhost 2010-06-03-12:47]# strings vmcore | grep "Linux version"
Linux version 2.6.18-128.el5PAE (mockbuild@builder16.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)) #1 SMP Wed Jan 21 11:19:46 EST 2009

Following is the rpm list have installed.

[root@localhost ~]# rpm -qa | grep -i kernel.*debug
kernel-debug-devel-2.6.18-128.1.6.el5
kernel-debuginfo-2.6.18-128.el5.centos.plus
kernel-debug-2.6.18-128.1.6.el5
kernel-debuginfo-common-2.6.18-128.el5.centos.plus
kernel-PAE-debuginfo-2.6.18-128.el5.centos.plus
[root@localhost ~]#

Please help with your inputs am in correct path of analysis or anything i'm missing ?

- Santosh

Last edited by Santoshkb; 06-03-2010 at 11:10 AM. Reason: addditional rpm install
 
Old 06-03-2010, 06:30 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Why aren't you using the PAE debuginfo ?.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Core Dump on Solaris (Question about core file) dayalan_cse Solaris / OpenSolaris 5 12-29-2014 07:56 AM
Compressed Core Dump Generation in Kernel 2.6 andersonfobr Linux - Software 1 02-21-2011 01:09 AM
Core dump issues. Program crashes but does not generate core dump file sabeel_ansari Programming 1 10-07-2009 04:23 PM
Core dump in Ubuntu 8.04 (Empty core file) vineet7kumar Linux - Newbie 1 01-17-2009 05:52 PM
Problems with core dump kernel 2.4 TordYvel Linux - General 0 03-29-2005 02:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration