LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-25-2007, 09:36 AM   #1
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
KSplash segmentation fault. KDE won't start


As the subject indicates, KDE is suddenly segfaulting when I run startx. Fluxbox will start. I'm using it now, but some programs won't run. xterm and aterm for example. I have root and two normal users and, oddly, the only user with this problem is mine, whose $HOME is a USB disk. The disk is formatted as ext2 so that permissions and links work properly. It's worked fine until now. I just installed kernel to 2.6.21.2 and, since I recently upgraded to 1GB RAM, I set highmem to 4GB in the new kernel. That's the only change from the previous kernel's config, so is that the cause? Or could the nVidia driver be incompatible with the new kernel? And if so why does it only affect the user who's $HOME is on USB?
I still have a 2.6.20.6 kernel I can boot into where everything's fine.

These are the error lines after the failed start.

startkde: Starting up...
/usr/bin/startkde: line xxx: xxxx Segmentation fault ksplash
/usr/bin/startkde: line xxx: xxxx Segmentation fault LD_BIND_NOW=true kdeinit+kcminit+knotify
startkde: Could not start kdeinit. Check your installation.
Warning: connect() failed: : No such file or directory
/usr/bin/startkde: line xxx: xxxx Segmentation fault kwraper kmserver $KDEWM
 
Old 05-25-2007, 09:40 AM   #2
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
i would try changing the location of /home and see if that fixes it...
 
Old 05-25-2007, 10:48 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Since the 2.6.20 kernel is still working fine, and the 2.6.21 is the problem one (for the user on USB stick), I'd suggest that you run diff on the .config files for the two kernels. Look for the differences in config options, especially in the USB portion.

Then perhaps recompile the 2.6.21 to match 2.6.20?
 
Old 05-25-2007, 12:40 PM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Original Poster
Rep: Reputation: 63
Thanks for the suggestions, but it turns out to be a different issue than originally suspected. Moving $HOME didn't help and booting into another kernel produced the same problem. The user that does work has more administrative priveleges and is a member of the root group. I login to this user very rarely and only for administrative tasks. I'll probably remove it one day or restrict it to a normal user.

Iv'e found it to be a permissions problem. Somehow udev is assigning incorrect, and very restrictive, permissions. I have to chmod 666 /dev/null and /dev/nvidia0 just to get into X because they, and all tty and pty are receiving root:root ownership with 0660 permission. I can get into Fluxbox where I'm typing this but I can't open xterm because it can't get a pty. My udev rules files show correct rules and I haven't changed anything that would affect hardware detection. I tried shutting the computer completely off for a few minutes to clear the memory but it's still the same when it started.

EDIT: bigrigdriver, I always use the option for load alternate config in menuconfig. That way I know I'm starting with my current working config and this time the only thing I changed is highmem. My 2.6.20.6 had it off because I built it before upgrading to 1GB.

Last edited by dracolich; 05-25-2007 at 12:44 PM.
 
Old 05-25-2007, 12:51 PM   #5
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
take a look at /etc/group you will see users assigned to certain groups...

the kdeadmin package has a good GUI frontend for adding users to certain groups...
 
Old 05-25-2007, 12:59 PM   #6
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Original Poster
Rep: Reputation: 63
I have looked at that file - closely. And I agree, KDE's user management app is easy to use. But I don't see any way that can help unless I add my user to the root group. That's why one user works and one doesn't. The mystery is why hardware permissions suddenly changed allowing only a root user to access ttys and such.
 
Old 05-25-2007, 02:39 PM   #7
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Original Poster
Rep: Reputation: 63
I think I got it fixed. I tried manually chmodding and chowning the /dev/null, /dev/nvidia* and /dev/pty. After that I still couldn't get into KDE or open an xterm from Fluxbox. I then upgraded udev to 111 from -current and rebooted and now it's behaving. I think the rules format may have changed because I saw some errors during startup, but my USB storage and wireless devices are working and everything in /dev has proper permissions. It'll have to stay working after another reboot or shutdown before I'm convinced, though.
 
Old 05-26-2007, 07:31 AM   #8
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Original Poster
Rep: Reputation: 63
Upgrading udev is the solution. I started my computer this morning and everything was still as it should be. I just finished applying the same fix on my laptop. Gee, when you know the fix you can actually do the whole thing without rebooting using '/etc/rc.d/rc.udev stop' and then 'etc/rc.d/rc.udev start'. The errors are nothing serious - pilotlink-0.2.12 installed a rules file that uses a group that I don't have called dialout. That's easy enough to change.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xfce's Mousepad wont start: Segmentation fault (core dumped) Mr_Shameless *BSD 4 05-19-2007 10:56 PM
sunbird 0.3 does not start, error: Segmentation fault : "$prog" ${1+"$@"} polemon Ubuntu 8 01-08-2007 04:22 AM
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 09:34 AM
segmentation fault libriana Linux - Newbie 2 06-10-2005 05:52 PM
Wine wont start program, segmentation fault, artsdsp nontoxic Linux - Software 3 03-21-2005 06:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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