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:
(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 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)
 	    if ((ifr->ifa_flags & IFF_BROADCAST) &&
-		(ifr->ifa_flags & IFF_UP))
+		(ifr->ifa_flags & IFF_UP) &&
+                ifr->ifa_broadaddr)
 		broad_addr = *ifr->ifa_broadaddr;

Unsubscribe info:
Problem reports:

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