openssh 5.0p1: Solaris - Failed to allocate internet-domain X11display socket.

Scott Neugroschl scott_n at xypro.com
Thu Jul 17 07:00:37 EST 2008



> -----Original Message-----
> From: openssh-unix-dev-bounces+scott_n=xypro.com at mindrot.org
> [mailto:openssh-unix-dev-bounces+scott_n=xypro.com at mindrot.org] On
> Behalf Of Pieter Bowman
> Sent: Wednesday, July 16, 2008 11:17 AM
> To: openssh-unix-dev at mindrot.org
> Cc: bowman at math.utah.edu
> Subject: openssh 5.0p1: Solaris - Failed to allocate internet-domain
> X11display socket.
> 
> On Solaris 10 (SPARC & x86), I'm seeing the following error:
> 
> error: Failed to allocate internet-domain X11 display socket.
> 
> 
> I tracked this down to this code change between openssh 4.7p1 and
> 5.0p1:
> 
> *** openssh-4.7p1/channels.c	Mon Jun 25 03:04:47 2007
> --- openssh-5.0p1/channels.c	Wed Apr  2 15:43:57 2008
> ***************
> *** 1,4 ****
> ! /* $OpenBSD: channels.c,v 1.270 2007/06/25 08:20:03 dtucker Exp $ */
>   /*
>    * Author: Tatu Ylonen <ylo at cs.hut.fi>
>    * Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
> --- 1,4 ----
> ! /* $OpenBSD: channels.c,v 1.273 2008/04/02 21:36:51 markus Exp $ */
>   /*
>    * Author: Tatu Ylonen <ylo at cs.hut.fi>
>    * Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
> ***************
> *** 2905,2913 ****
>   				debug2("bind port %d: %.100s", port,
> strerror(errno));
>   				close(sock);
> 
> - 				if (ai->ai_next)
> - 					continue;
> -
>   				for (n = 0; n < num_socks; n++) {
>   					close(socks[n]);
>   				}
> --- 2906,2911 ----
> 
> 
> When those two lines are added back in, X11 forwarding is able to get
> a port bound.
> 
> This is only the case on Solaris.  On Linux, *BSD, IRIX systems the
> current code works.
> 

Weren't those two lines related to the fix between 4.9p1 and 5.0p1
ix-dev


More information about the openssh-unix-dev mailing list