Date: Sat, 5 Oct 2013 20:47:02 GMT From: Nuno Subtil <subtil@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/182718: mDNSResponder crashes on IPV6-capable network Message-ID: <201310052047.r95Kl29V094051@oldred.freebsd.org> Resent-Message-ID: <201310052050.r95Ko1rk036433@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 182718 >Category: ports >Synopsis: mDNSResponder crashes on IPV6-capable network >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: Sat Oct 05 20:50:01 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Nuno Subtil >Release: 9.2-RELEASE >Organization: N/A >Environment: FreeBSD ponyo 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r+05c3e78: Fri Oct 4 18:22:18 PDT 2013 root@ponyo:/usr/obj/usr/src/sys/HOWL amd64 >Description: mDNSResponder will crash occasionally when used on a network with IPV6-capable Mac OS X hosts: Assertion failed: (0), function recvfrom_flags, file mDNSUNP.c, line 665. This seems to be caused by a wrong/stale set of #defines in mDNSUNP.h >How-To-Repeat: Run 'mDNSResponderPosix -v 2' >Fix: Patch attached with submission follows: --- ./mDNSPosix/mDNSUNP.h.orig 2011-12-01 16:39:45.000000000 -0800 +++ ./mDNSPosix/mDNSUNP.h 2013-10-05 13:18:15.000000000 -0700 @@ -31,10 +31,15 @@ // The following are the supported non-linux posix OSes - // netbsd, freebsd and openbsd. #if HAVE_IPV6 +#if defined(__FreeBSD__) +#define IPV6_2292_PKTINFO IPV6_PKTINFO +#define IPV6_2292_HOPLIMIT IPV6_HOPLIMIT +#else #define IPV6_2292_PKTINFO 19 #define IPV6_2292_HOPLIMIT 20 #endif #endif +#endif #ifdef __cplusplus extern "C" { >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310052047.r95Kl29V094051>