Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

How to detect a Kernel Panic!

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
21 posts • Page 1 of 1
Author
Message
Pes88
Apprentice
Apprentice
User avatar
Posts: 243
Joined: Wed May 06, 2009 8:23 am

How to detect a Kernel Panic!

  • Quote

Post by Pes88 » Thu Jun 14, 2012 12:47 pm

Hi,

I have a big issue with my kernel! When I'm using my pc it freezes, I think, the kernel causes this because after that, the only way to use the pc is reboot with the power button. I explain myself better...

I've recently bought a new laptop with the Intel i7 3610, Nvidia 630 Optimus technology, It should be very nice computer but not long after buying it I had troubles.

Firstly, I've installed Ubuntu ( in order to install GENTOO ), and that problem occured.. When I am using the pc gets stuck, completely random.
I thought it was a problem which had to do with the Ubuntu Kernel. So, I decided to install Gentoo with a my kernel ( without any particular configuration, just the default config ), the pc still freezes...

I haven't found anything weird in the kernel messages (dmesg). I don't know how to find useful information linked to crushes.... :cry: :cry:
what shall I do to find out what cause this?
What shall I post to help you to understand better my problem?
Also I would like to be sure that isn't a Hardware problem..

I have also a Windows installation which works properly!!!

I have an idea about this, could the nouveau driver cause this? Because I have that driver in both systems... Also, I'm using lvm, but difficultly it can cause this because it is quite stable and tested software... isn't it?
Pygoscelis papua, chiamato Gentoo dagli abitanti delle isole Falkland/Malvinas, noto per essere il pinguino più veloce!!! XD
Top
aCOSwt
Bodhisattva
Bodhisattva
Posts: 2537
Joined: Fri Oct 19, 2007 1:48 pm
Location: Hilbert space

  • Quote

Post by aCOSwt » Thu Jun 14, 2012 12:53 pm

Do you mean it freezes only under X ?
And that CTRL+ALT+F1 does not bring you back to console ?
And that CTRL+ALT+BACKSPACE is intefficient ?

Well, if yes then do try with the nvidia proprietary drivers (emerge nvidia-drivers) and in the meantime, post your /etc/X11/xorg.conf and pastebin your /var/log/Xorg.0.log
Top
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

  • Quote

Post by DaggyStyle » Thu Jun 14, 2012 2:52 pm

you don't need to install ubuntu in order to install gentoo.

does your pc freezes or after x start screen is black?
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Top
Pes88
Apprentice
Apprentice
User avatar
Posts: 243
Joined: Wed May 06, 2009 8:23 am

  • Quote

Post by Pes88 » Fri Jun 15, 2012 8:22 am

Do you mean it freezes only under X ?
And that CTRL+ALT+F1 does not bring you back to console ?
And that CTRL+ALT+BACKSPACE is intefficient ?
It happened only when I'm using the graphic interface. However, it isn't any Xorg crash, it's a kernel freeze!!! :(
does your pc freezes or after x start screen is black?
not, the scree remain the same, but you can use the pc!

After the pc freezes, I can hear the fun, i think some kernel process get all the cpu... Maybe there is some bug in the kernel with my new hardware?
Pygoscelis papua, chiamato Gentoo dagli abitanti delle isole Falkland/Malvinas, noto per essere il pinguino più veloce!!! XD
Top
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

  • Quote

Post by DaggyStyle » Fri Jun 15, 2012 8:53 am

Pes88 wrote:
Do you mean it freezes only under X ?
And that CTRL+ALT+F1 does not bring you back to console ?
And that CTRL+ALT+BACKSPACE is intefficient ?
It happened only when I'm using the graphic interface. However, it isn't any Xorg crash, it's a kernel freeze!!! :(
does your pc freezes or after x start screen is black?
not, the scree remain the same, but you can use the pc!

After the pc freezes, I can hear the fun, i think some kernel process get all the cpu... Maybe there is some bug in the kernel with my new hardware?
the kernel is the core of the system, if it freezes, you cannot use the system.
according to you the screen is black but you can use the system, e.g. CTRL+ALT+F1 should drop you to shell.
in that case, you'll need to look at /var/log/Xorg.0.log to see what is the issue.

did you installed the gpu driver? are you sure the driver supports your card?

also it is a good idea to change the topic and ask to move it to the right forum.
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Top
Pes88
Apprentice
Apprentice
User avatar
Posts: 243
Joined: Wed May 06, 2009 8:23 am

  • Quote

Post by Pes88 » Sat Jun 16, 2012 8:55 am

I made a mistake, the screen is not black, it's just stuck and I CANNOT use the pc! Sorry...
However I think it's a kernel Panic.
did you installed the gpu driver? are you sure the driver supports your card?
I haven't installed the official driver yet, because I have the Optimus technology I din't understood very well how it works. Although I have installed the driver intel which works properly.

also it is a good idea to change the topic and ask to move it to the right forum.
why?
Pygoscelis papua, chiamato Gentoo dagli abitanti delle isole Falkland/Malvinas, noto per essere il pinguino più veloce!!! XD
Top
aCOSwt
Bodhisattva
Bodhisattva
Posts: 2537
Joined: Fri Oct 19, 2007 1:48 pm
Location: Hilbert space

  • Quote

Post by aCOSwt » Sat Jun 16, 2012 9:42 am

Pes88 wrote:why?
Just because it is likely not to be a kernel panic.
Could you post the informations I asked for in my first post ?
Top
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

  • Quote

Post by DaggyStyle » Sat Jun 16, 2012 9:50 am

Pes88 wrote:I made a mistake, the screen is not black, it's just stuck and I CANNOT use the pc! Sorry...
However I think it's a kernel Panic.

I haven't installed the official driver yet, because I have the Optimus technology I din't understood very well how it works. Although I have installed the driver intel which works properly.

why?
you really need to decide what is the problem...

so grab a livecd, boot it, mount then needed partitions to access /var/log/messages, post it on dpaste and put the link here.
if there is a kernel panic, we will see it in the log.
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Top
Pes88
Apprentice
Apprentice
User avatar
Posts: 243
Joined: Wed May 06, 2009 8:23 am

  • Quote

Post by Pes88 » Sat Jun 16, 2012 10:17 am

/etc/X11/xorg.conf and pastebin your /var/log/Xorg.0.log
I don't use any xorg.conf for the moment...

http://pastebin.com/4StqZ9hw
so grab a livecd, boot it, mount then needed partitions to access /var/log/messages, post it on dpaste and put the link here.
if there is a kernel panic, we will see it in the log.
I couldn't do that because now the pc didn't freeze... It is completely random! When happen I will do..

Thank for helping me...
Pygoscelis papua, chiamato Gentoo dagli abitanti delle isole Falkland/Malvinas, noto per essere il pinguino più veloce!!! XD
Top
John R. Graham
Administrator
Administrator
User avatar
Posts: 10905
Joined: Tue Mar 08, 2005 3:39 pm
Location: Somewhere over Winder, Georgia, USA

  • Quote

Post by John R. Graham » Sat Jun 16, 2012 10:25 am

The /var/log/messages file will preserve messages from the previous freeze, so it's still potentially useful to post. :wink:

- John
I can confirm that I have received between 0 and 499 National Security Letters.
Top
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

  • Quote

Post by DaggyStyle » Sat Jun 16, 2012 10:47 am

John R. Graham wrote:The /var/log/messages file will preserve messages from the previous freeze, so it's still potentially useful to post. :wink:

- John
Pes88 wrote:
/etc/X11/xorg.conf and pastebin your /var/log/Xorg.0.log
I don't use any xorg.conf for the moment...

http://pastebin.com/4StqZ9hw
so grab a livecd, boot it, mount then needed partitions to access /var/log/messages, post it on dpaste and put the link here.
if there is a kernel panic, we will see it in the log.
I couldn't do that because now the pc didn't freeze... It is completely random! When happen I will do..

Thank for helping me...
john is right, unlike dmesg, /var/log/messages is kept between boots.
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Top
Pes88
Apprentice
Apprentice
User avatar
Posts: 243
Joined: Wed May 06, 2009 8:23 am

  • Quote

Post by Pes88 » Sat Jun 16, 2012 12:45 pm

The /var/log/messages file will preserve messages from the previous freeze, so it's still potentially useful to post
I don't have!

This is the content of my var :

Code: Select all

ConsoleKit  Xorg.0.log  Xorg.0.log.old  dmesg  emerge-fetch.log  emerge.log  genkernel.log  kdm.log  lastlog  pm-powersave.log  pm-suspend.log  portage  sandbox  tallylog  wtmp
Pygoscelis papua, chiamato Gentoo dagli abitanti delle isole Falkland/Malvinas, noto per essere il pinguino più veloce!!! XD
Top
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

  • Quote

Post by DaggyStyle » Sat Jun 16, 2012 4:37 pm

Pes88 wrote:
The /var/log/messages file will preserve messages from the previous freeze, so it's still potentially useful to post
I don't have!

This is the content of my var :

Code: Select all

ConsoleKit  Xorg.0.log  Xorg.0.log.old  dmesg  emerge-fetch.log  emerge.log  genkernel.log  kdm.log  lastlog  pm-powersave.log  pm-suspend.log  portage  sandbox  tallylog  wtmp
did you emerged syslog-ng?
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Top
cach0rr0
Bodhisattva
Bodhisattva
User avatar
Posts: 4123
Joined: Thu Nov 13, 2008 11:14 pm
Location: Houston, Republic of Texas

  • Quote

Post by cach0rr0 » Sun Jun 17, 2012 8:13 am

a)you need to emerge a syslog daemon, such as syslog-ng as DaggyStyle suggested
b)if it's really not showing for whatever reason, if your system has a serial port, you can terminal in via serial console and watch the panic - if in fact there is one

I normally confirm a panic by trying to contact the box from another host on the same LAN - it doesnt always work, since sometimes a network driver may be what's crashing, but it can be helpful - all the better if you can try to ssh from another local host to your supposedly frozen PC.
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Top
Pes88
Apprentice
Apprentice
User avatar
Posts: 243
Joined: Wed May 06, 2009 8:23 am

  • Quote

Post by Pes88 » Mon Jun 18, 2012 9:51 am

I've installed syslog-ng!

These logs are when the system had a freeze!

dmesg :
http://pastebin.com/grCYVjHH

Xorg :
http://pastebin.com/i0W4JqPK

Messages :
http://pastebin.com/nypM0kfT

thak for helping.. ;)
Pygoscelis papua, chiamato Gentoo dagli abitanti delle isole Falkland/Malvinas, noto per essere il pinguino più veloce!!! XD
Top
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

  • Quote

Post by DaggyStyle » Mon Jun 18, 2012 10:20 am

when the freeze occurs, does the leds on the keyboard blink?
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Top
Pes88
Apprentice
Apprentice
User avatar
Posts: 243
Joined: Wed May 06, 2009 8:23 am

  • Quote

Post by Pes88 » Mon Jun 18, 2012 10:27 am

when the freeze occurs, does the leds on the keyboard blink?
No! everything is dead... :(

I have noticed that after rebooting the pc the keyboard doesn't work properly! For instance, I can't use the arrows to select the system on Grub, only after the system is completely loaded it start again to work.

it's quite wired.. isn't it?
Pygoscelis papua, chiamato Gentoo dagli abitanti delle isole Falkland/Malvinas, noto per essere il pinguino più veloce!!! XD
Top
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

  • Quote

Post by DaggyStyle » Mon Jun 18, 2012 10:29 am

well your system doesn't panic, it just freezes.

try latest kernel.
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Top
DirtyHairy
l33t
l33t
User avatar
Posts: 608
Joined: Mon Jul 03, 2006 9:59 am
Location: Würzburg, Deutschland

  • Quote

Post by DirtyHairy » Mon Jun 18, 2012 10:50 am

Well, I have to second Pes88, it could be a panic. The fact that the logs are empty is natural, a panic stops userspace and therefore usually is not logged. Blinking keyboard lights are an indicator, but as all other indicators (no ping, lights do not change on caps/numlock etc.), it's absence doesn't indicate that _no_ panic occured. Another test would be to activate magic sysrq in the kernel config and try the various key combinations in /usr/src/linux/Documentation/sysrq.txt . If you have access to another machine in the network, try ping and ssh.

However, irrespectively of whether panic or not, a good first stab it fixing it is to let the system run for prolonged time (e.g. updating) without any video drivers or X, just a plain VGA terminal; if it doesn't freeze, you know it is video. As you have an intel IGP in addition to your nvidia optimus, try deactivting nouveau in the kernel config (your dmesg shows that you are loading it), it might well be the culprit.
Top
Pes88
Apprentice
Apprentice
User avatar
Posts: 243
Joined: Wed May 06, 2009 8:23 am

  • Quote

Post by Pes88 » Tue Jun 19, 2012 10:41 am

Code: Select all

However, irrespectively of whether panic or not, a good first stab it fixing it is to let the system run for prolonged time (e.g. updating) without any video drivers or X, just a plain VGA terminal; if it doesn't freeze, you know it is video. As you have an intel IGP in addition to your nvidia optimus, try deactivting nouveau in the kernel config (your dmesg shows that you are loading it), it might well be the culprit.
I have been using the pc in graphic mode for more than 4 hours and nothing happened, so I can't exclude the graphing driver if anything happens when I'm using in shell mode!
it's completely random and I am getting crazy trying to figure out who is the culprit. :(

I have substituted the driver nouveau in Ubuntu with the Nvidia official and I have installed bubblee to try to use the Optimums technology but in spite of this, the problem still persists.
Another test would be to activate magic sysrq in the kernel config and try the various key combinations in /usr/src/linux/Documentation/sysrq.txt
This might be useful, should the key-code work even though the pc is freezed?
I can't understand if it's a kernel panic or a freeze, actually I don't think it's worth it.. The important thing is just fix it!
Pygoscelis papua, chiamato Gentoo dagli abitanti delle isole Falkland/Malvinas, noto per essere il pinguino più veloce!!! XD
Top
DirtyHairy
l33t
l33t
User avatar
Posts: 608
Joined: Mon Jul 03, 2006 9:59 am
Location: Würzburg, Deutschland

  • Quote

Post by DirtyHairy » Tue Jun 19, 2012 11:57 am

I disagree with your opinion of disabling graphics being useless. As you can't get any log data from the incidents, your only way of nailing down the problem and solving it is to systematically simplify your configuration piecemeal and try to provoke the crash after each change long enough that you can be confident that it is gone. Other than that, you can just hope for a kernel change mysteriously solving the issue, which might or might not happen. In the worst case, the issue might be a hardware problem, but I doubt this.

For starters, take your discrete nvidia chip completely out of the equation by removing all drivers for it; your IGP will still work, but when it crashes, you will have excluded the nvidia. Then go to the plain terminal, as I told you, then remove more hardware drivers (wifi, network, you get the idea) until you get a configuration which seems to run stable. After that, you can start to look for a fix. I know that this is slow and painful, but it is the only reliable thing to do in absence of a log.

The only other pointer I can give you is to try aquiring a log of the hang, either using ssh (if the machine still responds), a serial console or netconsole. You can also run memcheck to check for memory and / or CPU issues. BIOS update is another desparate thing to try. As for the magic sysrq: if it doesn't work, you can be confident that something serious has happened and the kernel has panicked or hung. I don't think you can reliably deduce anything on the system state if it works though.
Top
Post Reply

21 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy