Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware64 13.37, Solaris 10, RHEL5/6
Posts: 92
Rep:
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.
Distribution: Slackware64 13.37, Solaris 10, RHEL5/6
Posts: 92
Original Poster
Rep:
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.
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420
Rep:
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
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.
Distribution: Slackware64 13.37, Solaris 10, RHEL5/6
Posts: 92
Original Poster
Rep:
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.
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
Distribution: Slackware64 13.37, Solaris 10, RHEL5/6
Posts: 92
Original Poster
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.