LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-05-2007, 05:31 PM   #1
mhansen
LQ Newbie
 
Registered: Nov 2006
Distribution: Debian Etch
Posts: 22

Rep: Reputation: 15
Corrupt utmp - how to isolate cause


Hi.

I just did a fresh install of slack 11.0 yesterday. I made two changes from my previous installation(s):

1.) Using 2.6.17.13 SMP kernel.

2.) Installed NVIDIA driver (using a GeForce 8800 GTX), however I'm still using the xorg.conf that was generated when I did the slackware install as the NVIDIA xorg.conf file blackscreens me when I log out of X. But that's another problem entirely...


Now, the problem is that my utmp is somehow getting corrupted. I can't duplicate the problem. It's random, but occurs somewhat often. I believe it is X-related. When I log out of X sometimes, and do a "w", it'll show 2 users when only one is logged on, etc. Sometimes it'll work it's way up to 3 or 4 before I catch it...

Anyway, I know this isn't a slackware problem, but I'm hoping that another slack user has had the same problem and can tell me what it is that's corrupting my utmp. If not, I hope someone can tell me how I can figure out what it is that's corrupting my utmp.


Thanks,
Mike
 
Old 03-05-2007, 05:49 PM   #2
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
If you think it's X, maybe you can look through the logs (/var/log/Xorg.0.log among others) and see if you see anything strange.

Can you try reinstalling the same exact way but without the nvidia drivers. (if you must know, I suspect these the most as the being the cause ... I can't imagine the smp kernel, especially the stock Slackware kernel doing this)
 
Old 03-05-2007, 06:18 PM   #3
mhansen
LQ Newbie
 
Registered: Nov 2006
Distribution: Debian Etch
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by H_TeXMeX_H
If you think it's X, maybe you can look through the logs (/var/log/Xorg.0.log among others) and see if you see anything strange.

Can you try reinstalling the same exact way but without the nvidia drivers. (if you must know, I suspect these the most as the being the cause ... I can't imagine the smp kernel, especially the stock Slackware kernel doing this)

Thanks for the reply. I agree with you 100%. I've used slack since 3.5, and slack 11.0 since it came out, and never had a utmp problem in all these months with 11.0. I was just kinda throwing this out to see if anyone else had the problem (with nvidia) and figured out a fix for it. I can't find anything anywhere. Oh well, worth a shot...


Thanks again,
Mike
 
Old 03-05-2007, 09:10 PM   #4
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 69
I have run in to the same issue and have for a long time. It seems to be related to logging into console while X it running. In fact i show 3 users logged in now.

Quote:
gizzmo@slacker:~$ w
22:07:43 up 110 days, 4:13, 3 users, load average: 0.94, 0.90, 0.64
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
gizzmo :0 - Sun17 ?xdm? 41:11 0.47s /bin/sh /opt/kde/bin/startkde
gizzmo@slacker:~$
 
Old 03-05-2007, 09:34 PM   #5
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
Quote:
logging into console while X it running
is that even possible ? if I switch to a different console, and then switch back, X is no longer running.
 
Old 03-05-2007, 11:59 PM   #6
mhansen
LQ Newbie
 
Registered: Nov 2006
Distribution: Debian Etch
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by H_TeXMeX_H
is that even possible ? if I switch to a different console, and then switch back, X is no longer running.
Sure, ctrl-alt-f(whatever) from X to login to a text console, then alt-f7 from the console to get back to X.

So, if you boot up and login on tty1, and startx, you can ctrl-alt-f2 (f3, f4, etc) to login to another console, then alt-f7 to get back to X...etc, etc.



Regards,
Mike
 
Old 03-06-2007, 12:04 AM   #7
mhansen
LQ Newbie
 
Registered: Nov 2006
Distribution: Debian Etch
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by XGizzmo
I have run in to the same issue and have for a long time. It seems to be related to logging into console while X it running. In fact i show 3 users logged in now.

Thank you sir. That may very well be the problem. I'm just surprised I didn't notice it all this time. Do you happen to have the nvidia driver installed too?


Thanks for your reply,
Mike
 
Old 03-06-2007, 06:39 AM   #8
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 69
Quote:
Originally Posted by mhansen
Do you happen to have the nvidia driver installed too?
I do have the 1.0-9746 version installed but i have not had the issue you have. Two things to try make sure the driver you are using is the latest one and use the stock xorg.conf with the driver changed from vesa to nvidia. I don't really trust letting nvidia's installer edit the xorg.conf for me.
 
Old 03-06-2007, 10:34 AM   #9
mhansen
LQ Newbie
 
Registered: Nov 2006
Distribution: Debian Etch
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by XGizzmo
I do have the 1.0-9746 version installed but i have not had the issue you have. Two things to try make sure the driver you are using is the latest one and use the stock xorg.conf with the driver changed from vesa to nvidia. I don't really trust letting nvidia's installer edit the xorg.conf for me.

Check and check...

I didn't trust the nvidia config either. But, when I edit xorg.conf and change from vesa to nvidia, I get the "black screen of death", (not to be confused with the blue screen of death). I'm just going to back the driver out. I checked the nvidia linux forums and I'm not the only one having problems.

Realistically, I use X for browsing, viewing .pdf files, and maybe a game of Kolf here and there. I can do without the nvidia driver. It's not worth the trouble at this point.


Thanks for your help though.


Regards,
Mike
 
Old 03-06-2007, 01:09 PM   #10
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
If you don't play games or use 3D apps of any form ... I highly recommend the free 'nv' driver (using 'xorgsetup' should set it up right).
 
Old 03-08-2007, 11:32 AM   #11
mhansen
LQ Newbie
 
Registered: Nov 2006
Distribution: Debian Etch
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by H_TeXMeX_H
If you don't play games or use 3D apps of any form ... I highly recommend the free 'nv' driver (using 'xorgsetup' should set it up right).

Thanks, I'll try that one.

Update: I removed the nvidia module, and, lo and behold, I'm still getting a corrupt utmp. So, back to my original question, is there any way for me to isolate just what's causing it?



Thanks,
Mike


P.S. Sorry for blaming you, Mr. Nvidia.

Last edited by mhansen; 03-08-2007 at 11:33 AM.
 
Old 03-08-2007, 01:38 PM   #12
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
What kind of programs or background processes are you running ? Try to check the integrity of important packages and see if it holds.
 
  


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
how to isolate redundent libraries? dejavu_01 Slackware 3 08-24-2005 01:28 AM
How do I isolate a piece of string? vous Programming 4 03-16-2005 01:43 PM
911 Dispatch PC Security :: Isolate Internet Viruses danfig General 2 01-05-2005 08:30 PM
can't 'userdel' OR How to fix a corrupt utmp? Plauderer Linux - General 3 09-03-2004 11:50 AM
Elderly PC may have a HW fault - how to isolate/fix? CestusGW Linux - Hardware 3 03-24-2004 04:11 PM

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

All times are GMT -5. The time now is 02:29 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