Bug 65710

Summary: ICE leaves stale sessions in /tmp/.ICE-unix, causes gdm crash
Product: [Retired] Red Hat Linux Reporter: John Verel <jverel>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED CURRENTRELEASE QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: medium    
Version: 7.3CC: hp, mharris, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: 6.86-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-28 21:36:27 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 John Verel 2002-05-30 16:56:18 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020513

Description of problem:
ICE sometimes leaves stale sessions in/fails to remove sessions from
/tmp/.ICE-unix.  The effect of this is that upon next boot of the instant user,
gdm will crash on first login attempt.  ~/.xsession-errors will have this message:

_IceTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_IceTransMakeAllCOTSServerListeners: server already running

** WARNING **: Cannot establish any listening sockets

On second boot, this error message goes away, replace with (say)
SESSION_MANAGER=local/Verdi:/tmp/.ICE-unix/1195

The fix for this is to delete stale entries in /tmp/.ICE-unix.

This problem will NOT occur if another user has sucessfully logged in before the
user with the stale session logs in.

Version-Release number of selected component (if applicable):

XFree86-4.2.0-8

How reproducible:
Always

Steps to Reproduce:
1. Observe "first boot" crash (cause unknown)
2. Login sucessfully to gdm on second boot.
3. Observe stale /tmp/.ICE-unix session and remove.
	

Actual Results:  Unable to log in first time.

Expected Results:  The boot process, e.g. rc.sysinit, should check
/tmp/.ICE-unix to ensure it is empty during boot.  If not empty, clear it.

Additional info:

Comment 1 John Verel 2002-07-15 02:03:09 UTC
FWIW, I recently discovered the /usr/bin/startkde does exactly the kind of
housekeeping re: /tmp files discussed in this bug.  To wit, lines 7-12, my stock
RH7.3 install:

# Clean up old kde /tmp files that belong to the user
real_display=`echo $DISPLAY | sed "s/://" | sed "s/\..*//"`
rm -f ~/.DCOPserver-`/bin/hostname`_$DISPLAY
for i in /tmp/.ICE-unix/* /tmp/.ICE-unix/.*; do
        [ -O $i ] && rm -f $i
done

John

Comment 2 Bill Nottingham 2002-07-17 05:01:18 UTC
This should be fixed in the latest rawhide initscripts.

Comment 3 Bill Nottingham 2002-07-17 05:04:40 UTC
(i.e., 6.86-1 or later)