From owner-freebsd-bugs@FreeBSD.ORG Fri Sep 28 21:50:01 2007 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5B5416A469 for ; Fri, 28 Sep 2007 21:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B528E13C47E for ; Fri, 28 Sep 2007 21:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l8SLo1G1031828 for ; Fri, 28 Sep 2007 21:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l8SLo1cG031827; Fri, 28 Sep 2007 21:50:01 GMT (envelope-from gnats) Resent-Date: Fri, 28 Sep 2007 21:50:01 GMT Resent-Message-Id: <200709282150.l8SLo1cG031827@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, Warren Block Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D96516A419 for ; Fri, 28 Sep 2007 21:49:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 48F0513C47E for ; Fri, 28 Sep 2007 21:49:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l8SLn0RU050504 for ; Fri, 28 Sep 2007 21:49:00 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l8SLn0sw050503; Fri, 28 Sep 2007 21:49:00 GMT (envelope-from nobody) Message-Id: <200709282149.l8SLn0sw050503@www.freebsd.org> Date: Fri, 28 Sep 2007 21:49:00 GMT From: Warren Block To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/116722: ntpd core dumps if hostnames are not specifed with "-4" option X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Sep 2007 21:50:02 -0000 >Number: 116722 >Category: misc >Synopsis: ntpd core dumps if hostnames are not specifed with "-4" option >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 28 21:50:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Warren Block >Release: 6.2-STABLE >Organization: >Environment: FreeBSD speedy.wonkity.com 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Sep 28 13:51:02 MDT 2007 root@speedy.wonkity.com:/usr/obj/usr/src/sys/SPEEDY i386 >Description: Client system using ntpd has a kernel with only IPv4. ntpd core dumps if hostnames are used without specific IPv4 notation. >How-To-Repeat: Compile/install kernel with INET but without INET6 kernel option. In /etc/ntp.conf, use only server name: # bad /etc/ntp.conf server wonkity.com This causes ntpd to core dump on startup: speedy kernel: pid 1276 (ntpd), uid 0: exited on signal 11 (core dumped) ntpd starts and runs normally if an IP address is used or if hostnames are preceded with the poorly-documented "-4" option: # good /etc/ntp.conf server 10.0.0.1 server -4 wonkity.com >Fix: Workaround: when running ntpd on clients with only IPv4, use IP addresses or precede hostnames with "-4" in /etc/ntp.conf. >Release-Note: >Audit-Trail: >Unformatted: