LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-26-2010, 04:24 PM   #1
zrdc28
Member
 
Registered: Dec 2007
Location: Alabama USA
Distribution: Slackware current
Posts: 309

Rep: Reputation: 55
Slack 13.1 runs fine as root, Crashes when run as user!


I have had slack 12 on this computer for quite a while with never a problem. Slack 13.1 was installed a few weeks ago without a problem, it seems to run forever as long as it is root. When I go to user it will crash 2 or 3 times a day. When it crashes it is a total lockup that only the off/on switch will reset it. There is no certain time or thing that causes it, it will just lockup while surfing using the command line switching or opening a new file. Any suggestions will be appreciated! I have googled and searched with no info found.
I do have 13.1 on another computer that works fine, it has an nvidea video card in it and it is 64 bit.

Computer Dell gx280 pentium m with hyper threading turned on
Video card ATI Radeon x300 using the ATI driver
80 gig sata hard drive
32 bit
 
Old 06-27-2010, 04:31 AM   #2
Dinithion
Member
 
Registered: Oct 2007
Location: Norway
Distribution: Slackware 14.1
Posts: 446

Rep: Reputation: 59
Something is completely wrong.

Are there some kind of information in /var/log/messages at the time of lock-up?
Have you tried using a new, clean user?

I suspect that it is a hardware problem. I had a similar problem a while ago. The problem seemed to me to be extra frequent when I used graphics-heavy things, like games and compiz-fusion etc. I can't remember if there were any difference in root/user behavior though, since I rarely/never start x as root. Anyway, it turned out that my problem was the power supply not being able to deliver a large amount of power over time, and some how froze the computer.

Anyway, did this happen with an earlier version of slackware or other operating systems? Are you running slackware current? Are you using the huge-smp kernel shipped with slackware or a custom kernel?
 
Old 06-27-2010, 02:09 PM   #3
zrdc28
Member
 
Registered: Dec 2007
Location: Alabama USA
Distribution: Slackware current
Posts: 309

Original Poster
Rep: Reputation: 55
Are there some kind of information in /var/log/messages at the time of lock-up?

I checked the /var/log/messages with nothing irregular showing up!

Anyway, did this happen with an earlier version of slackware or other operating systems? Are you running slackware current? Are you using the huge-smp kernel shipped with slackware or a custom kernel?[/QUOTE]

I had slack 12 on this computer with never a problem for couple of years!

I am using the huge-smp kernel shipped with slackware!

Have not tried it as another user, but I will and report back later.
I have done the memory test with ok results!
 
Old 06-27-2010, 02:19 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
So by ATI driver you mean fglrx ? If so, try without it for a while, does it still crash ?
 
Old 06-27-2010, 03:59 PM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
I take it this happens in X? If so what happens in runlevel 3?
 
Old 06-27-2010, 04:25 PM   #6
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Posted in wrong thread - sorry!

Last edited by 55020; 06-27-2010 at 04:27 PM. Reason: PEBKAC
 
Old 06-28-2010, 10:22 PM   #7
zrdc28
Member
 
Registered: Dec 2007
Location: Alabama USA
Distribution: Slackware current
Posts: 309

Original Poster
Rep: Reputation: 55
Thanks for the rapid reply's!
I do not not know for sure which driver it is using here is from lsmod.

Module Size Used by
radeon 650763
ttm 39060 1 radeon
drm_kms_helper 23751 1 radeon
drm 133002 5 radeon,ttm,drm_kms_helper
i2c_algo_bit 4355 1 radeon
snd_seq_dummy 1107 0
snd_seq_oss 25580 0

This is from x & have not tried runlevel 3!

Another user was added and that seems to have solved the problem on that user. It has only been used for about three hours total as the second user so maybe it is good to go, will report back tomorrow evening. Thanks to all!
 
Old 07-01-2010, 10:08 PM   #8
zrdc28
Member
 
Registered: Dec 2007
Location: Alabama USA
Distribution: Slackware current
Posts: 309

Original Poster
Rep: Reputation: 55
I have used this computer for quiet a number of hours and as of this evening there has been no problems logging in as 2nd user. I guess at some point I will try to find what is the problem with 1st user. thanks for all the help.
 
Old 07-02-2010, 01:57 AM   #9
Dinithion
Member
 
Registered: Oct 2007
Location: Norway
Distribution: Slackware 14.1
Posts: 446

Rep: Reputation: 59
This is just a step on a longer way. I would say something is seriously wrong. When a user is able to freeze/crash a linux computer, something tend to be way out of place. But this sort of debugging is quite difficult and time consuming unfortunately.

If there is no hints what so ever in any logfiles, one way to debug this is to copy the homefolder to your primary user to the debuguser, and delete one thing at a time. Perhaps there is a better way?
 
Old 07-03-2010, 12:41 PM   #10
tallship
Member
 
Registered: Jul 2003
Location: On the Beaches of Super Sunny Southern San Clemente, California USA
Distribution: Slackware - duh!
Posts: 534
Blog Entries: 3

Rep: Reputation: 118Reputation: 118
Hardware. Hardware.

I agree w/Dinithion that you've just unfurled the tether for your space walk, you haven't even gone into the air lock yet.

Me? I would start in Run Level 3 (I typically do that anyway). Log into your console as you normally would as root. Then log in as the offending user in the next virtual console.

Create a new user w/useradd or adduser, whichever you prefer, the second is the script which is typically used on Slack. login as this new user in your third virtual console.

Now proceed as the offending user... lalalalalalala.

If nothing happens, then startx as the offending user in that virtual console and try to locate the sequence of tasks that will reliably recreate the crash.

At this point, see if you can't switch back to the first virtual console and kill the login for the offending user.

It could be many things, yet one thing that stands out, other than bleeding edge hardware drivers, which should only crash X anyway and return you to a cli when the X Server crashes, is a hard drive failure....

Okay, If you've partitioned your HDD and /home is mounted on, say, /dev/hda4 and / is mounted on /dev/hda3, and portions of your hard drive are whacked in the general neighborhood of /dev/hda4, then this will coz a lockup such as you describe.

As root, your home directory is /root and as a non-privileged user your home directory is /home. If those are on separate partitions then the system is locking up during a seek (Listen carefully for that old WD clicking sound, or an HDD LED that stays lit, etc.).


Check to see whether data is disappearing from the offending users home dir tree, or if, as root, you get *not found* errors when doing dir's, ls's cp's, etc. run disk diags, depending on the file systems you're running now.

It's possible that your previous Linux install didn't touch the bad blocks on your disk (If this is indeed anything to do with the issue).

A non-privileged user should not be able to lock a whole system, unless it is merely incidental that such a user is logged in when something clustermucks in the system.

Hardware. Hardware.

Last edited by tallship; 07-03-2010 at 12:48 PM. Reason: uggh tarzan make pretty
 
1 members found this post helpful.
Old 07-22-2010, 06:38 PM   #11
zrdc28
Member
 
Registered: Dec 2007
Location: Alabama USA
Distribution: Slackware current
Posts: 309

Original Poster
Rep: Reputation: 55
Thanks for the help and suggestions, Here is my situation now, user #1 is still crashing, user #2 crashes every once in a while, root is still stable as a rock with never a problem. I have followed many of the suggestions in the above and may have found the problem. I ran "smartctl and did the long test "about 47 minutes" It did show up a problem at 40% on my /home partician, now if I can just figure out a way to move the data and block the badblocks Maybe it will cure the problem. I do have another hdd that I can replace it with and it does not have a lot of valuable data. The point of all this was not to just get it going but to learn in the process.


SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Short offline Completed without error 00% 22489
# 2 Extended offline Completed: read failure 40% 22488 113012204
# 3 Short captive Completed without error 00% 19334 -
# 4 Short captive Completed without error 00% 19133 -
# 5 Short offline Completed without error 00% 1 -

sorry for the jumbled format, but if you will notice this drive has 22489 hours of use on it with 1600 reboots.

Last edited by zrdc28; 07-22-2010 at 07:05 PM. Reason: format
 
Old 08-01-2010, 05:26 AM   #12
zrdc28
Member
 
Registered: Dec 2007
Location: Alabama USA
Distribution: Slackware current
Posts: 309

Original Poster
Rep: Reputation: 55
Just an update on this problem, it for sure is a hard disk problem! I ran the seagate disk utility and it found bad sectors and locked them out. I then ran spinrite with no errors found. The next thing I did was run smartctl again, it did find some errors but it seems to be working much better for now. There has only been 2 lockups in the 1st user since the tests.
 
Old 08-01-2010, 12:55 PM   #13
number22
Member
 
Registered: Sep 2006
Location: Earth
Distribution: Slackware 14.1 Slackware64-current multilib
Posts: 278
Blog Entries: 7

Rep: Reputation: Disabled
you can mark this thread solved.
 
  


Reply



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
Windows Runs fine, Linux Crashes OC problems.... Chaosbringer Linux - Hardware 7 08-08-2008 09:33 PM
Flash runs OK as root, won't run as user in Fedora 8 Cogar Fedora 1 11-14-2007 04:48 AM
script doesn't run in cron (runs from shell just fine) Timur Sakayev Linux - Software 6 02-26-2007 12:56 PM
Games runs slow as normal user, but fast as root user mcore Linux - Software 2 06-07-2004 11:11 PM
mozilla works fine when logged in as a user but crashes when logged in as root jimi Linux - General 6 04-02-2003 08:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:31 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
Open Source Consulting | Domain Registration