This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Novice Question


Andy wrote:
/opt/wip/cygport-svn/xorg-server/xorg-server-1.6.0-10/src/xorg-server-1.6.0/
os/access.c
(gdb) p *ifr
$1 = {ifa_next = 0x1447798, ifa_name = 0x14474c4
"{B8B51884-C69A-4592-B65D-89ABB3DCF18D}", ifa_flags = 69635,
  ifa_addr = 0x14474f0, ifa_netmask = 0x14475f0, ifa_dstaddr = 0x0, ifa_data
= 0x0}

:-)


It seems that the (new for Cygwin 1.7) getifaddr() function can return interfaces with IFF_BROADCAST & IFF_UP set, but no broadcast address, which the X server assumes never happens

I'd guess this means you have a network interface with a slightly unusual state (connected but no address configured perhaps?)

I've uploaded a new build of the X server with a small patch (attached) applied which should avoid this crash, perhaps you could try ftp://cygwin.com/pub/cygwinx/XWin.20090629103603.exe.bz2 and see if that works any better...
--- origsrc/xorg-server-1.6.0/os/access.c	2009-02-25 19:12:13.000000000 +0000
+++ src/xorg-server-1.6.0/os/access.c	2009-06-29 11:22:03.781250000 +0100
@@ -812,7 +812,8 @@ DefineSelf (int fd)
 		continue;
 #endif
 	    if ((ifr->ifa_flags & IFF_BROADCAST) &&
-		(ifr->ifa_flags & IFF_UP))
+		(ifr->ifa_flags & IFF_UP) &&
+                ifr->ifa_broadaddr)
 		broad_addr = *ifr->ifa_broadaddr;
 	    else
 		continue;

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]