LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-28-2014, 04:57 AM   #1
saran1987
LQ Newbie
 
Registered: May 2013
Posts: 5

Rep: Reputation: Disabled
Kernel Core dump shows invalid backtrace


Hi all,
I have been using kdump and kexec tools for collecting core dump when there is a kernel panic.
I have compiled 2 kernels, one is base kernel (3.12.0) and other one is kdump kernel (3.12.0-kdump).

I have followed the steps give in the below link to configure crash kernel for collecting core dumps.
https://www.kernel.org/doc/Documenta...dump/kdump.txt

I simulated a kernel crash using the below command
echo c > /proc/sysrq_trigger

When I try to debug the core using gdb, the bt shows the crash at

0 intel_idle (dev=<optimized out>, drv=<optimized out>, index=5) at drivers/idle/intel_idle.c:370
#1 0xffffffff813be15b in cpuidle_enter_state (dev=dev@entry=0xffff88042021a500,
drv=drv@entry=0xffffffff8185a480, index=index@entry=5) at drivers/cpuidle/cpuidle.c:84

But ideally the crash happened at sysrq_handle.
When i compile the base kernel(3.12.0) with CONFIG_SMP=n, the dump shows the right place of the crash. I m really confused with of role SMP configuration in base kernel. As per the kernel documentation, we need to disable the SMP configuration in crash kernel which i did already.
I need an expert guidance on this. Can you please throw your ideas/suggestions on this?
 
Old 03-03-2014, 08:29 AM   #2
saran1987
LQ Newbie
 
Registered: May 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
I found the root cause of the issue.
My cpu is having 8 cores. If my linux is running in any cpu(1...7) other than cpu0, the
dump is showing improper backtrace if kernel crashes.
If I make maxcpus=1 in grub prompt I am getting proper backtrace If Kernel crashes.

How to solve this issue? I want to utilize all the cores of my CPU.
What we need to do in order to get proper backtrace while running linux in multicore system?
 
  


Reply

Tags
kernel config, kernel panic


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
kernel panic - core dump indicates what the problem is? astanton Linux - Virtualization and Cloud 1 01-11-2012 12:44 PM
Help needed for analysing kernel core dump Santoshkb Linux - Kernel 3 06-03-2010 07:30 PM
Core dump issues. Program crashes but does not generate core dump file sabeel_ansari Programming 1 10-07-2009 05:23 PM
Backtrace / stack dump for all Linux platforms GreyBeard Programming 7 07-21-2005 01:04 PM
Problems with core dump kernel 2.4 TordYvel Linux - General 0 03-29-2005 03:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:46 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration