Bug#584491: gnome-session opens ICE socket named using PID; doesn't cope with socket existing

Josselin Mouette joss at debian.org
Sat Jun 26 08:36:46 UTC 2010


reassign 584491 xtrans-dev
affects 584491 gnome-session
thanks

Le jeudi 03 juin 2010 à 15:02 -0700, Josh Triplett a écrit :
> Package: gnome-session
> Version: 2.30.0-1
> Severity: important
> 
> gnome-session opens its ICE listening socket in /tmp/.ICE-unix/ and
> names the socket using its PID.  If the path it wants to create already
> exists (for instance, from a previous run of gnome-session), it fails,
> with a message saying "Could not create ICE listening socket: Cannot
> establish any listening sockets", and then many parts of the session
> subtly (or less than subtly) break.

This is created by libICE. The relevant code is in Xtranssock.c:

    if (!(port && *port)) {
        snprintf (tmpport, sizeof(tmpport), "%s%ld", UNIX_PATH, (long)getpid());
        port = tmpport;
    }
with UNIX_PATH being /tmp/.ICE-unix/ (hardcoded).

Looks like Xtrans is missing a few bits of code to obtain unique
pathnames.

Cheers,
-- 
 .''`.      Josselin Mouette
: :' :
`. `'  “If you behave this way because you are blackmailed by someone,
  `-    […] I will see what I can do for you.”  -- Jörg Schilling
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20100626/c3f90e76/attachment.pgp>


More information about the pkg-gnome-maintainers mailing list