From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jan 27 09:50:14 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5915116A420 for ; Fri, 27 Jan 2006 09:50:14 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47C4C43D79 for ; Fri, 27 Jan 2006 09:50:01 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k0R9o1rp000699 for ; Fri, 27 Jan 2006 09:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k0R9o1eb000698; Fri, 27 Jan 2006 09:50:01 GMT (envelope-from gnats) Resent-Date: Fri, 27 Jan 2006 09:50:01 GMT Resent-Message-Id: <200601270950.k0R9o1eb000698@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Akihiro KAYAMA Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23D4116A420 for ; Fri, 27 Jan 2006 09:42:04 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id E739A43D45 for ; Fri, 27 Jan 2006 09:42:03 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k0R9g3pl094859 for ; Fri, 27 Jan 2006 09:42:03 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k0R9g3Rw094856; Fri, 27 Jan 2006 09:42:03 GMT (envelope-from nobody) Message-Id: <200601270942.k0R9g3Rw094856@www.freebsd.org> Date: Fri, 27 Jan 2006 09:42:03 GMT From: Akihiro KAYAMA To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/92414: [patch] net/vnc Xvnc server doesn't run with XDMCP options X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jan 2006 09:50:14 -0000 >Number: 92414 >Category: ports >Synopsis: [patch] net/vnc Xvnc server doesn't run with XDMCP options >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 27 09:50:01 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Akihiro KAYAMA >Release: FreeBSD 6.0-RELEASE-p2 >Organization: PERSONAL-MEDIA Corp. >Environment: FreeBSD net2.personal-media.co.jp 6.0-RELEASE-p2 FreeBSD 6.0-RELEASE-p2 #0: Thu Jan 19 19:45:59 JST 2006 kayama@pc137.personal-media.co.jp:/usr/obj/home/src/sys/GENERIC i386 vnc-4.1.1 xorg-clients-6.8.2 xorg-server-6.9.0 >Description: Xvnc, which is modified X server to draw desktop remotely with vnc protocol, can be managed with X Display Manager via XDMCP when combined with option -query. But FreeBSD port version of Xvnc seemed to fail to create a session with xdm, due to xdm error "Decline No valid address". >How-To-Repeat: execute xdm: % /usr/X11R6/bin/xdm -debug 1 execute Xvnc server: % /usr/local/bin/Xvnc :59 -query localhost -once securitytypes=none Log='*:stderr:9' Xvnc fails to start and outputs following error messages: Fatal server error: XDMCP fatal error: Session declined No valid address >Fix: This is because of an uninitialized variable bug of XFree 4.3.0 source tree which current vnc port use. Simply apply the following patch, or perhaps it is better choice to use fixed X source tree like X.org 6.9.0. --- xc/programs/Xserver/os/access.c.orig Fri Jan 27 16:23:17 2006 +++ xc/programs/Xserver/os/access.c Fri Jan 27 16:22:32 2006 @@ -730,6 +730,7 @@ if (ifr->ifa_addr.sa_family == AF_DECnet) continue; #endif /* DNETCONN */ + len = sizeof(*(ifr->ifa_addr)); family = ConvertAddr(ifr->ifa_addr, &len, (pointer *)&addr); if (family == -1 || family == FamilyLocal) continue; >Release-Note: >Audit-Trail: >Unformatted: