From owner-freebsd-bugs@FreeBSD.ORG Wed Sep 18 07:20:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.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 CD43EE83 for ; Wed, 18 Sep 2013 07:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id ABB79236E for ; Wed, 18 Sep 2013 07:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8I7K0S1018712 for ; Wed, 18 Sep 2013 07:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8I7K0pQ018711; Wed, 18 Sep 2013 07:20:00 GMT (envelope-from gnats) Resent-Date: Wed, 18 Sep 2013 07:20:00 GMT Resent-Message-Id: <201309180720.r8I7K0pQ018711@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matthieu Volat Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C1020D84 for ; Wed, 18 Sep 2013 07:15:34 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AD5EF230E for ; Wed, 18 Sep 2013 07:15:34 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8I7FXwA002360 for ; Wed, 18 Sep 2013 07:15:33 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8I7FXRY002359; Wed, 18 Sep 2013 07:15:33 GMT (envelope-from nobody) Message-Id: <201309180715.r8I7FXRY002359@oldred.freebsd.org> Date: Wed, 18 Sep 2013 07:15:33 GMT From: Matthieu Volat To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/182199: mdnsd failing on assertion because badly defined flags X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Sep 2013 07:20:01 -0000 >Number: 182199 >Category: misc >Synopsis: mdnsd failing on assertion because badly defined flags >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 18 07:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Matthieu Volat >Release: 9.2-RC4 >Organization: >Environment: FreeBSD freedom.alkumuna.eu 9.2-RC4 FreeBSD 9.2-RC4 #0 r255465: Wed Sep 11 05:11:03 UTC 2013 root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >Description: When started, the mdnsd service from net/mDNSResponder fails very quickly because failing a catch of "unknown" flags in the recvmsg function. Turns out that values are strangely hardcoded to wrong values, at least for FreeBSD, in mDNS/mDNSUNP.h. The following patch fixes the problem : --- mDNSPosix/mDNSUNP.h.orig 2013-09-18 09:02:04.000000000 +0200 +++ mDNSPosix/mDNSUNP.h 2013-09-18 09:02:55.000000000 +0200 @@ -31,8 +31,8 @@ // The following are the supported non-linux posix OSes - // netbsd, freebsd and openbsd. #if HAVE_IPV6 -#define IPV6_2292_PKTINFO 19 -#define IPV6_2292_HOPLIMIT 20 +#define IPV6_2292_PKTINFO IPV6_PKTINFO +#define IPV6_2292_HOPLIMIT IPV6_HOPLIMIT #endif #endif >How-To-Repeat: * Install net/mDNSResponder * run mdnsd -debug * try to do anything that will generate an answer, like dns-sd -G v4v6 somehost.local where the host is sane >Fix: Apply the following patch: --- mDNSPosix/mDNSUNP.orig 2013-09-18 09:02:04.000000000 +0200 +++ mDNSPosix/mDNSUNP.h 2013-09-18 09:02:55.000000000 +0200 @@ -31,8 +31,8 @@ // The following are the supported non-linux posix OSes - // netbsd, freebsd and openbsd. #if HAVE_IPV6 -#define IPV6_2292_PKTINFO 19 -#define IPV6_2292_HOPLIMIT 20 +#define IPV6_2292_PKTINFO IPV6_PKTINFO +#define IPV6_2292_HOPLIMIT IPV6_HOPLIMIT #endif #endif >Release-Note: >Audit-Trail: >Unformatted: