LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-12-2012, 12:48 AM   #1
ubyt3m3
Member
 
Registered: Apr 2008
Distribution: Slackware64 13.37, Solaris 10, RHEL5/6
Posts: 92

Rep: Reputation: 19
System Freeze and How to Debug?


Hi all,

My system (Slackware64 13.37 on AMD Phenom 2.6GHz with 16 GB of memory) started freezing up on me and I'm wondering if you could help me debug it.

This freeze happens randomly and there seems to be no association with a particular software (First I thought VirtualBox was causing it but it also happened without it running). When it happens, everything becomes non-responsive and key-sequences for SysRq do not work. All I could do is hard-reboot by pressing down the power button.

I ran memtest86+ but nothing seems to be wrong with memory.

It already froze up twice in the last hour...

Could anyone help me debug this problem? Any suggestions would be appreciated.

Thanks,
gibb
 
Old 06-12-2012, 12:56 AM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Are you able to see or getting any error messages? Can you share the errors with us?
 
Old 06-12-2012, 01:25 AM   #3
ubyt3m3
Member
 
Registered: Apr 2008
Distribution: Slackware64 13.37, Solaris 10, RHEL5/6
Posts: 92

Original Poster
Rep: Reputation: 19
Hi Satyaveer Arya,

Thanks for your response.

No, I don't have any error messages. I checked /var/log/messages but didn't see any suspicious messages. Should I look for somewhere else?

Is it possible to set up memory dump (or something similar) at the time of freeze-up? Since I can't trigger sysrq manually, I have no idea to get anything.

Thanks in advance,
gibb
 
Old 06-12-2012, 06:31 AM   #4
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
I don't know exactly how to set up memory dump. So, let any guru or gurus see your thread, maybe they can help you somehow.
Checkout kernel logs and boot logs.
Files are -
/var/log/kern.log
/var/log/boot.log
 
Old 06-12-2012, 11:22 AM   #5
bilyboy65
LQ Newbie
 
Registered: Apr 2012
Posts: 14

Rep: Reputation: 0
I had a similar problem with my system. My issue was that the memory was overheating and causing instability. How I debugged this issue was removed all of the memory sticks. Inserted one stick and booted. Repeat with all sticks of memory. If problem doesn't occur then you most likely have a similar issue. Insert 2 sticks and test for problem. With my system the problem occurred with 2 or more. If this turns out to be the problem double check latency for memory is compatible with mb and if it is you might want to contact the memory manufacturer to see if could be a defect or buy a cooler for your memory.

I should mention that I was running a windows 7 OS and the error code from the constant bluescreen of death was not helpful because it's error code was saying that it was my video card. I also couldn't find any error codes because the system would just freeze and it wouldn't be caused by an error.

Last edited by bilyboy65; 06-12-2012 at 11:25 AM.
 
Old 06-13-2012, 01:28 AM   #6
ubyt3m3
Member
 
Registered: Apr 2008
Distribution: Slackware64 13.37, Solaris 10, RHEL5/6
Posts: 92

Original Poster
Rep: Reputation: 19
Hi Satyaveer Arya,

I don't seem to have kern.log or boot.log in /var/log...


Hi bilyboy65,

Oh I don't really hope it's a memory issue, but I'll give your suggestion a try; testing each and some combination of modules. It'll take quite a while to report back.

Thanks!
gibb
 
Old 06-13-2012, 01:36 AM   #7
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,832
Blog Entries: 36

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
What logging facility do you use (e.g. syslog, rsyslog, syslog-ng)? It might be that you simply have kern.log disabled (commonly a default unless debugging).

See logging config files (depending on what your system is using):
/etc/rsyslog.conf
/etc/syslog.conf
/etc/syslog-ng/syslog-ng.conf

If there is a - at the beginning of the log file path
Code:
kern.*                          -/var/log/kern.log
then the logging is disabled (also if the line is commented out). Enable it like so
Code:
kern.*                          /var/log/kern.log
By default on my system, kern logs to /dev/console and I had to change it to /var/log/kern.log. For ryslog there could be custom facility rules in /etc/rsyslog.d/ directory.
SAM

Last edited by sag47; 06-13-2012 at 01:40 AM.
 
Old 06-17-2012, 08:23 AM   #8
ubyt3m3
Member
 
Registered: Apr 2008
Distribution: Slackware64 13.37, Solaris 10, RHEL5/6
Posts: 92

Original Poster
Rep: Reputation: 19
Hi sag47,

Thanks for your post.

I took bilyboy65's advice and swapped around memory modules. What do you know... it was really a problem with memory. I took old two modules that originally came with the system and let it run for a few days. Freeze-up never happened anymore. After swapping with old modules, it froze-up in an hour. I guess I got bad memory modules.

Thank you all for your inputs!
gibb
 
  


Reply


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
Linux, How to debug OS freeze issue? ma1 Linux - Newbie 3 05-20-2012 04:32 AM
getting better debug info on a headless Linux system dexdyne Linux - Software 1 12-04-2009 11:53 PM
How can you debug a system hang during shutdown? bcage Linux - Newbie 6 07-12-2009 01:34 PM
How to debug & isolate system hangs ? RipClaw Linux - General 1 09-02-2008 05:56 AM
How to debug system freezes due to networking? shridharj Linux - Networking 1 11-06-2005 01:59 AM


All times are GMT -5. The time now is 02:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration