Bug 431398

Summary: kdm instantly crashes (without xfs running)
Product: [Fedora] Fedora Reporter: Greg Martyn <greg.martyn>
Component: kdebaseAssignee: Than Ngo <than>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 8CC: kevin, ltinkl, rdieter
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-05 17:30:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Greg Martyn 2008-02-04 06:19:18 UTC
Description of problem:
kdm doesn't start

Version-Release number of selected component (if applicable):
kdebase.x86_64    6:3.5.8-31.fc8

How reproducible:
always

Steps to Reproduce:
1. [root@localhost ~]# cat /etc/sysconfig/desktop
DESKTOP="KDE"
DISPLAYMANAGER="KDE"

2. logout
3. it uses gdm

--or--

1. yum remove gdm
2. logout
3. beep. logon manager is crashing. will try an alternate. endless loop.
  
Actual results:


Expected results:


Additional info:
it doesn't matter whether selinux is enabled or not

Comment 1 Rex Dieter 2008-02-04 14:04:00 UTC
Is xfs installed and running?

rpm -q xorg-x11-xfs
/sbin/service xfs status

Comment 2 Greg Martyn 2008-02-04 14:23:13 UTC
[root@localhost ~]# rpm -q xorg-x11-xfs
package xorg-x11-xfs is not installed
[root@localhost ~]# /sbin/service xfs status
xfs: unrecognized service

P.S.: I followed the directions from here:
http://fedoraproject.org/wiki/KDE

Comment 3 Rex Dieter 2008-02-04 15:20:07 UTC
OK, quick-n-dirty fix:
yum install xorg-x11-xfs
/sbin/chkconfig xfs on
/sbin/service xfs start

I'll work to update dependencies, to ensure this doesn't get missed.

Comment 4 Greg Martyn 2008-02-04 15:20:35 UTC
installing xorg-x11-xfs fixed it. thanks.

Comment 5 Alexei Podtelezhnikov 2008-02-04 18:06:11 UTC
I thought that xfs is all but deprecated in Fedora 8. 
My KDM/KDE installation on i686 works just fine without it. 
Read -- it is NOT needed on i686.

Can you explain why adding xfs back in is a fix all alone?
Or is it added only in x86_64?

Comment 6 Rex Dieter 2008-02-04 18:27:46 UTC
Perhaps you're right, I *thought* xfs was still included in base-x comps group,
and installed/configured by default.   But, on double-checking, I find it is
not.  Curious.

It may have to do with /etc/kde/kdm/Xresources referencing items/fonts not
available when xfs isn't running.  ??

Comment 7 Alexei Podtelezhnikov 2008-02-05 14:22:46 UTC
I guess we need more info from the reporter.
Did it use to start before 3.5.8-31?
How the packages were installed? 

I am guessing that the reporter switched from Gnome and had to do
modify /etc/sysconfig/desktop. Why would he report that if he installed a KDE
spin? I wonder if all necessary themes and fonts are there.

Please report
rpm -qa '*kde*'
rpm -qa '*kdm*'
rpm -qa '*font*'


Comment 8 Greg Martyn 2008-02-05 16:13:21 UTC
Yesterday I installed from the fedora 8 x86_64 dvd. I checked off KDE but didn't
check Gnome. I did a yum upgrade. /etc/sysconfig/desktop didn't exist so I
created it according to the directions on the wiki.

[root@localhost ~]# rpm -qa '*kde*'
kde-settings-3.5-35.fc8
kdesdk-3.5.8-2.fc8
kdebase-libs-3.5.8-31.fc8
kdemultimedia-libs-3.5.8-8.fc8
kdegraphics-libs-3.5.8-7.fc8
kdewebdev-libs-3.5.8-3.fc8
kdeutils-3.5.8-3.fc8
compiz-kde-0.6.2-3.fc8
kde-filesystem-4-6.fc8
kdepim-3.5.8-11.svn20080109.ent.fc8
kdenetwork-libs-3.5.8-9.fc8
lockdev-1.0.1-11.fc8.1
lockdev-1.0.1-11.fc8.1
lockdev-devel-1.0.1-11.fc8.1
kdewebdev-3.5.8-3.fc8
kdebase-3.5.8-31.fc8
kdeaddons-3.5.8-2.fc8
kdelibs-3.5.8-19.fc8
kdenetwork-3.5.8-9.fc8
kdelibs-3.5.8-19.fc8
kdeartwork-3.5.8-1.fc8
kdepim-libs-3.5.8-11.svn20080109.ent.fc8
kdesdk-libs-3.5.8-2.fc8
kdebase-libs-3.5.8-31.fc8
kdemultimedia-3.5.8-8.fc8
kdeaccessibility-3.5.8-3.fc8
kdenetwork-libs-3.5.8-9.fc8
kdegraphics-3.5.8-7.fc8
kde-settings-kdm-3.5-35.fc8
kdeaccessibility-3.5.8-3.fc8
lockdev-devel-1.0.1-11.fc8.1
kdeutils-3.5.8-3.fc8
kde-settings-pulseaudio-3.5-35.fc8
kdebindings-dcopperl-3.5.8-1.fc8
kdepim-libs-3.5.8-11.svn20080109.ent.fc8
kdegraphics-libs-3.5.8-7.fc8
[root@localhost ~]# rpm -qa '*kdm*'
fedorainfinity-kdm-theme-1.0.4-1.fc8
kdmtheme-1.2.2-1.fc8
kde-settings-kdm-3.5-35.fc8
[root@localhost ~]# rpm -qa '*font*'
libfontenc-1.0.4-4.fc8
fontconfig-devel-2.4.2-5.fc8
libXfontcache-1.0.4-3.fc8
lohit-fonts-gujarati-2.1.5-3.fc8
lohit-fonts-tamil-2.1.5-3.fc8
lohit-fonts-malayalam-2.1.5-3.fc8
xorg-x11-font-utils-7.2-2.fc8
xorg-x11-fonts-100dpi-7.2-3.fc8
bitmap-fonts-0.3-5.1.2.fc7
paktype-fonts-2.0-2.fc8
libXfontcache-1.0.4-3.fc8
libXfontcache-devel-1.0.4-3.fc8
xorg-x11-fonts-truetype-7.2-3.fc8
libXfont-devel-1.3.1-2.fc8
dejavu-lgc-fonts-2.19-1
lohit-fonts-hindi-2.1.5-3.fc8
kacst-fonts-1.6.2-2.fc8
ghostscript-fonts-5.50-18.fc8
sazanami-fonts-gothic-0.20040629-4.20061016.fc8
lklug-fonts-0.2.2-5.fc8
xorg-x11-fonts-ISO8859-1-100dpi-7.2-3.fc8
libfontenc-1.0.4-4.fc8
libfontenc-devel-1.0.4-4.fc8
baekmuk-ttf-fonts-gulim-2.2-6.fc8
lohit-fonts-oriya-2.1.5-3.fc8
cjkunifonts-uming-0.1.20060928-4.fc8
lohit-fonts-kannada-2.1.5-3.fc8
xorg-x11-fonts-misc-7.2-3.fc8
liberation-fonts-1.0-1.fc8
baekmuk-ttf-fonts-common-2.2-6.fc8
lohit-fonts-bengali-2.1.5-3.fc8
libXfontcache-devel-1.0.4-3.fc8
xorg-x11-fonts-Type1-7.2-3.fc8
libXfont-1.3.1-2.fc8
libXfont-devel-1.3.1-2.fc8
fontconfig-2.4.2-5.fc8
lohit-fonts-punjabi-2.1.5-3.fc8
urw-fonts-2.4-3.fc8
lohit-fonts-telugu-2.1.5-3.fc8
libXfont-1.3.1-2.fc8
fontconfig-2.4.2-5.fc8
jomolhari-fonts-0.003-4.fc8
tetex-fonts-3.0-44.3.fc8


Comment 9 Greg Martyn 2008-02-05 16:52:39 UTC
the plot thickens:
yum remove xorg-x11-xfs

.. and kdm still works.

When I installed xorg-x11-xfs it pulled in one other dependency. I'll try to
remember which.

Comment 10 Rex Dieter 2008-02-05 16:57:56 UTC
Greg, thanks!

The likely culprit is that font* scriptlets previously didn't run, so fonts.dir
(and friends) weren't created properly.  xfs forces a regeneration of all that
when run.

Comment 11 Kevin Kofler 2008-02-05 16:58:11 UTC
Must be one of these (the dependencies of xorg-x11-xfs):
/bin/bash
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sort
/sbin/chkconfig
/sbin/chkconfig
/sbin/nologin
/sbin/service
/sbin/service
/usr/bin/find
/usr/bin/uniq
/usr/sbin/useradd
config(xorg-x11-xfs) = 1:1.0.5-1.fc8
coreutils
fontconfig
grep
initscripts
libFS.so.6
libXfont >= 1.2.9
libXfont.so.1
libc.so.6
libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.3)
libc.so.6(GLIBC_2.3.4)
libc.so.6(GLIBC_2.4)
mkfontdir
mkfontscale
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rtld(GNU_HASH)
sed
sed
ttmkfdir

Comment 12 Kevin Kofler 2008-02-05 16:58:43 UTC
That, or as Rex says, it could be the %pre/%post scriptlets who fixed it.

Comment 13 Greg Martyn 2008-02-05 17:06:57 UTC
It was libFS.

I just tried removing it. KDM still works. I guess I have a scriptlet to thank.

Comment 14 Rex Dieter 2008-02-05 17:19:32 UTC
See also (kinda related): bug #429966 "xfs dies, startkde becomes Zombie Child
of gdm-binary on logout"

Comment 15 Rex Dieter 2008-02-05 17:30:39 UTC
End result: not a kde bug.

Not sure where the bug lies truly, I just checked xorg-x11-fonts-misc and
xorg-x11-font-utils, and all appears correct (xorg-x11-fonts-misc includes
Requires(post): mkfontdir mkfontscale which are provided by xorg-x11-font-utils).

Or could be an rpm bug where the Requires(post) wasn't satisified properly
(scary, just saw one of these in rawhide today).

If anyone seeing this problem can identify the fonts.dir that's not correct, and
file a bug against the pkg owning/creating that erroneously (or reopen this one
and reassign it appropriately), the effort would be greatly appreciated by all.