Fedora Linux Support Community & Resources Center
  #1  
Old 9th January 2017, 03:03 AM
shawn22 Offline
Registered User
 
Join Date: Jun 2015
Location: Toronto, Canada
Posts: 5
linuxcroschrome
Debugging Kernel Panic

Hi,

My F25 system periodically freezes and I don't see any pattern in when it happens. Sometimes it occurs while I'm using the system and other times at idle.

Based on my research I think this seems likely to be a kernel panic, but I'm struggling to figure out what logs I can look at to debug this problem. I'm looking for any advice on how to debug and solve my system.

I'm sort of towards the newbie side of the Linux scale, so any help would be greatly appreciated

A couple other notes:
- this issue has been occurring for quite a while now, dating back to when I used to run F23
- I'm running F25 Gnome with Xorg


Please let me know what information I can provide to begin tracking this down.


Thank you
Shawn
Reply With Quote
  #2  
Old 9th January 2017, 04:44 AM
nsnbm Offline
Registered User
 
Join Date: Dec 2007
Location: Australia
Posts: 1,432
linuxfedorafirefox
Re: Debugging Kernel Panic

Code:
journalctl -b
will ouput logs of the current boot which you can page through. You could search for errors with:
Code:
journalctl -b |grep -i error
There might be a clue to the problem.
Reply With Quote
  #3  
Old 9th January 2017, 05:17 AM
nobody Offline
Registered User
 
Join Date: Mar 2012
Location: München, Deutschland
Posts: 568
windows_98_nt_2000chrome
Arrow Re: Debugging Kernel Panic

Shawn,

You can read this: http://forums.fedoraforum.org/showthread.php?p=1771185
Also this (for better understanding): https://www.digitalocean.com/communi...e-systemd-logs

Quote:
For instance, to see the journal from the previous boot, use the -1 relative pointer with the -b flag: journalctl -b -1
But, it is better to attach the whole dmesg log to this thread for somebody's/nobody's inspection.

_nobody_
__________________
I am nobody, and nobody is perfect, therefore I am perfect!
Reply With Quote
  #4  
Old 10th January 2017, 02:11 AM
shawn22 Offline
Registered User
 
Join Date: Jun 2015
Location: Toronto, Canada
Posts: 5
linuxcroschrome
Re: Debugging Kernel Panic

Thank you both. I will report back after the next freeze when I can pull the crash logs.


Shawn
Reply With Quote
  #5  
Old 20th January 2017, 09:11 PM
nobody Offline
Registered User
 
Join Date: Mar 2012
Location: München, Deutschland
Posts: 568
windows_98_nt_2000chrome
Talking Re: Debugging Kernel Panic

Seems, that the new kernel (they are talking now about 4.9.3-200.fc25.x86_64) is much more stable, so Shawn, my best guess is that you are not able to crash your system lately.

_nobody_
__________________
I am nobody, and nobody is perfect, therefore I am perfect!
Reply With Quote
  #6  
Old 21st January 2017, 05:20 PM
shawn22 Offline
Registered User
 
Join Date: Jun 2015
Location: Toronto, Canada
Posts: 5
linuxcroschrome
Re: Debugging Kernel Panic

Haha I'm a little bit skeptical since this has been going on for nearly 2 years now through many updates, but I sure hope you're correct!!

In the past these crashes have sometimes occurred 2-3 times per week and other times only more like once a month, so we'll see what happens.

I can confirm that I've upgraded to that kernel though.
Reply With Quote
  #7  
Old 22nd January 2017, 12:32 AM
nsnbm Offline
Registered User
 
Join Date: Dec 2007
Location: Australia
Posts: 1,432
linuxfedorafirefox
Re: Debugging Kernel Panic

Quote:
Originally Posted by shawn22 View Post
Haha I'm a little bit skeptical since this has been going on for nearly 2 years now through many updates, but I sure hope you're correct!!

In the past these crashes have sometimes occurred 2-3 times per week and other times only more like once a month, so we'll see what happens.

I can confirm that I've upgraded to that kernel though.
The long-standing intermittent nature of the problem would lead me to run a memory test just to check that aspect: memtest-setup will add memtest to the grub menu so that you can choose it on boot.

Edit: if the fedora memtest86+ doesn't work on EFI machines, and it appears that it doesn't, the alternative that is available is to run memtest from an iso on a cdrom or a usb. Have a look at the thread: http://forums.fedoraforum.org/showthread.php?t=313044 for some references. Basically, download the memtest iso, burn it or write it to media, and boot from it.

Last edited by nsnbm; 23rd January 2017 at 12:36 AM.
Reply With Quote
  #8  
Old 24th January 2017, 04:23 AM
shawn22 Offline
Registered User
 
Join Date: Jun 2015
Location: Toronto, Canada
Posts: 5
linuxcroschrome
Re: Debugging Kernel Panic

memtest completed with no errors. All good on that front!
Reply With Quote
  #9  
Old 24th January 2017, 08:02 AM
nsnbm Offline
Registered User
 
Join Date: Dec 2007
Location: Australia
Posts: 1,432
linuxfedorafirefox
Re: Debugging Kernel Panic

Good that that's out of the way. I had an intermittent freezing problem on an older machine which I couldn't diagnose. I ended up changing the video card and the problem disappeared. Maybe you can check on the support for your video card, perhaps search to see if there are problems with it. I think intermittent problems are the hardest to diagnose.
Reply With Quote
  #10  
Old 25th January 2017, 01:39 AM
shawn22 Offline
Registered User
 
Join Date: Jun 2015
Location: Toronto, Canada
Posts: 5
linuxcroschrome
Re: Debugging Kernel Panic

My system has onboard video so should be good there
Reply With Quote
Reply

Tags
debugging, kernel, panic

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debugging a kernel panic when shutting down upnort Fedora Focus 1 23rd September 2015 07:40 PM
Debugging memory error lockup & kernel panic dryheat Using Fedora 2 1st February 2010 02:33 PM
Kernel panic on boot; remote debugging possible? moartl Using Fedora 0 1st December 2004 09:42 PM


Current GMT-time: 23:20 (Monday, 20-02-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat