[Bug 1263] connection sharing often freezes

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Mon Nov 20 12:57:40 EST 2006


http://bugzilla.mindrot.org/show_bug.cgi?id=1263

           Summary: connection sharing often freezes
           Product: Portable OpenSSH
           Version: v4.5p1
          Platform: PPC
        OS/Version: Mac OS X
            Status: NEW
          Severity: major
          Priority: P2
         Component: ssh
        AssignedTo: bitbucket at mindrot.org
        ReportedBy: vincent at vinc17.org


I use connection sharing with Subversion; it was working well in the
past, but for several days (after I updated OpenSSH, in particular),
I've had many problems with it: ssh often freezes. I've tried with two
servers, and I have the same problem with both. For the test, I've used
the following wrapper:

#!/usr/bin/env zsh

source ~/.zshenv
source ~/.zalias
unset DISPLAY

[[ $1 != ay || -e /tmp/ssh-ay.vinc17.org-22-lefevre ]] ||
  (echo "Starting master" >&2; ssh -fMNv ay >& ~/master.log)

echo "executing ssh" >&2
ssh -Cvvv "$@"

Note: I use only the -v option for the master since I can't reproduce
the bug with -vv or -vvv (perhaps I haven't tried hard).

On the remote side (ay, which is a Debian testing/unstable machine with
OpenSSH_4.3p2 Debian-5.1), I have a .ssh/rc file that contains:

case "$OSTYPE" in
  solaris*)  ip="`echo $SSH_CONNECTION | sed 's/ .*//'`";;
  *)         ip="${SSH_CONNECTION%% *}";;
esac

: ${HOST:=`hostname`}
echo "Connected to $HOST (from $ip)" >&2

if read proto cookie && [ -n "$DISPLAY" ]; then
  [ "$HOST" = prunille.vinc17.org ] && PATH=${PATH}:/usr/X11R6/bin
  if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ]; then
    echo add unix:`echo $DISPLAY | cut -c11-` $proto $cookie
  else
    echo add $DISPLAY $proto $cookie
  fi | xauth -q -
fi

I'm going to attach the master.log file and a file containing the two
(identical) commands I've typed from the terminal on my Mac OS X
machine (prunille), and you'll see the point where the second one
freezes.




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the openssh-bugs mailing list