[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#642374: xauth: Doesn't seem to handle concurrency [SEC=UNCLASSIFIED]



Package: xauth
Version: 1:1.0.6-1
Severity: normal

for run in `seq 1 10`
do
    ssh -X -l <my user> <server> "xload" &
done

/usr/bin/xauth:  error in locking authority file /home/<user>/.Xauthority
X11 connection rejected because of wrong authentication.



A sleep 0.1 though lets it through (most of the time, but like all
race conditions, this is a deeply evil hack).  One suspects xauth
shouldn't just fail immediately if it can't hardlink the lockfile.
Act more like procmail's lockfile utility, and back off a bit while
retrying.



-- System Information:
Debian Release: wheezy/sid
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'stable'), (5, 'testing'), (1, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xauth depends on:
ii  libc6                         2.13-7     Embedded GNU C Library: Shared lib
ii  libx11-6                      2:1.4.3-2  X11 client-side library
ii  libxau6                       1:1.0.6-3  X11 authorisation library
ii  libxext6                      2:1.3.0-3  X11 miscellaneous extension librar
ii  libxmuu1                      2:1.1.0-2  X11 miscellaneous micro-utility li

xauth recommends no packages.

xauth suggests no packages.

-- no debconf information



Reply to: