From owner-freebsd-bugs@freebsd.org Mon Oct 26 23:14:44 2015 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DDB40A1E10A for ; Mon, 26 Oct 2015 23:14:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A54081245 for ; Mon, 26 Oct 2015 23:14:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t9QNEied033552 for ; Mon, 26 Oct 2015 23:14:44 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 204048] stable/9: r289998: ntpd 4.2.8p4 DNS resolution misbehaves (occasional segfault) Date: Mon, 26 Oct 2015 23:14:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 9.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jdc@koitsu.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Oct 2015 23:14:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204048 --- Comment #1 from Jeremy Chadwick --- I can reproduce this problem on stable/9 using ports/net/ntp and ports/net/ntp-devel too, though the stack trace looks different (maybe getting clobbered, or maybe libevent takes care of something, not sure): root@icarus:~ # pkg info | grep ntp ntp-4.2.8p4 The Network Time Protocol Distribution root@icarus: # grep ntp /etc/rc.conf # ntpd_flags: temporary workaround for https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199127 ntpd_enable="yes" ntpd_program="/usr/local/sbin/ntpd" ntpd_config="/conf/ME/ntp.conf" ntpd_sync_on_start="yes" ntpd_flags="-4 -p /var/run/ntpd.pid -f /var/db/ntpd.drift" root@icarus:~ # service ntpd start Starting ntpd. root@icarus:~ # dmesg -a | tail -1 pid 2425 (ntpd), uid 0: exited on signal 11 (core dumped) root@icarus:~ # gdb /usr/local/sbin/ntpd /ntpd.core ... #0 0x000000080134579d in _malloc_postfork () from /lib/libc.so.7 [New Thread 801807c00 (LWP 100886/ntpd)] [New Thread 801807400 (LWP 100878/ntpd)] (gdb) bt #0 0x000000080134579d in _malloc_postfork () from /lib/libc.so.7 #1 0x0000000801347b3e in _malloc_postfork () from /lib/libc.so.7 #2 0x000000080134a3fe in _malloc_prefork () from /lib/libc.so.7 #3 0x000000080134c482 in calloc () from /lib/libc.so.7 #4 0x0000000801372ba6 in __res_state () from /lib/libc.so.7 #5 0x000000080137e98c in freeaddrinfo () from /lib/libc.so.7 #6 0x00000008013a361a in nsdispatch () from /lib/libc.so.7 #7 0x000000080137fffb in getaddrinfo () from /lib/libc.so.7 #8 0x0000000000461c3d in ?? () #9 0x0000000000462293 in ?? () #10 0x00000000004648c9 in ?? () #11 0x00000008010a6e70 in pthread_getprio () from /lib/libthr.so.3 #12 0x0000000000000000 in ?? () -- You are receiving this mail because: You are the assignee for the bug.