From owner-freebsd-gnome@FreeBSD.ORG Mon Nov 11 09:01:05 2013 Return-Path: Delivered-To: gnome@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 16388B5E for ; Mon, 11 Nov 2013 09:01:05 +0000 (UTC) (envelope-from fjo@ogris.de) Received: from ns1.ogris.net (ns1.ogris.net [IPv6:2a00:1348::17:0:0:1]) by mx1.freebsd.org (Postfix) with ESMTP id D33BC251D for ; Mon, 11 Nov 2013 09:01:04 +0000 (UTC) Received: from fjo-mbp.dts-systeme.intra (fjo-mbp.dts.de [81.89.251.80]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by ns1.ogris.net (Postfix) with ESMTPSA id B96802B6A57 for ; Mon, 11 Nov 2013 10:01:01 +0100 (CET) From: "Felix J. Ogris" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: [net/avahi-app] avahi-daemon exists with poll(): Invalid argument Message-Id: Date: Mon, 11 Nov 2013 10:01:01 +0100 To: gnome@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) X-Mailer: Apple Mail (2.1822) X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Nov 2013 09:01:05 -0000 Hi, I run avahi 0.6.31 on FreeBSD 8.4-RELEASE-p3 amd64 inside a VMware VM = with vendor supplied tools installed (i.e. no emulators/open-vm-tools). = Within a few hours up to a few days after restarting, avahi-daemon = exists with "poll(): Invalid argument". I added some syslog() calls to = avahi-common/simple-watch.c. Turns out that avahi_simple_poll_prepare(), = line 506 can run into an integer wrap around when usec > 0x7fffffff. = =46rom my debug output: avahi-daemon[4447]: avahi_simple_poll_prepare: t:-2147308239 = usec:6442626352642 ntsec:1390524436 ntusec:348696 nowsec:1384081809 = nowusec:996054 (where ntsec/ntusec are next_timeout->expiry, and nowsec/nowusec are = now) Fixing this might be trivial (insert 'if (timeout < 0) timeout =3D 0;' = at line 513), although I don't know why next_timeout occasionally is = about 74 days in the future (no adjkerntz when avahi-daemon exists, no = time leaps, vm behaves normally besides that avahi strangeness). Anyone..? I can add additional debug statements to avahi and provide = more data if asked for. --Felix=