From owner-freebsd-bugs@FreeBSD.ORG Tue Oct 2 00:10:07 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 8DBB316A419 for ; Tue, 2 Oct 2007 00:10:07 +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 7305C13C465 for ; Tue, 2 Oct 2007 00:10:07 +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 l920A7EH007480 for ; Tue, 2 Oct 2007 00:10:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l920A7gY007479; Tue, 2 Oct 2007 00:10:07 GMT (envelope-from gnats) Date: Tue, 2 Oct 2007 00:10:07 GMT Message-Id: <200710020010.l920A7gY007479@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Warren Block Cc: Subject: Re: 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 Reply-To: Warren Block List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Oct 2007 00:10:07 -0000 The following reply was made to PR bin/116722; it has been noted by GNATS. From: Warren Block To: Remko Lodder Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: misc/116722: ntpd core dumps if hostnames are not specifed with "-4" option Date: Mon, 1 Oct 2007 17:49:19 -0600 (MDT) On Sat, 29 Sep 2007, Remko Lodder wrote: > Hello, can you do some debugging on the core dump? This might tell us > what is going on more specifically. speedy% gdb /usr/sbin/ntpd ntpd.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... Core was generated by `ntpd'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libm.so.4...done. Loaded symbols for /lib/libm.so.4 Reading symbols from /lib/libmd.so.3...done. Loaded symbols for /lib/libmd.so.3 Reading symbols from /lib/libcrypto.so.4...done. Loaded symbols for /lib/libcrypto.so.4 Reading symbols from /lib/libc.so.6...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x08057520 in sendpkt (dest=0x808c588, inter=0x0, ttl=0, pkt=0xbfbfe4f0, len=48) at /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_io.c:1377 1377 switch (inter->sin.ss_family) { (gdb) bt #0 0x08057520 in sendpkt (dest=0x808c588, inter=0x0, ttl=0, pkt=0xbfbfe4f0, len=48) at /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_io.c:1377 #1 0x0805eb59 in transmit (peer=0x808c588) at /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_proto.c:2354 #2 0x080664ad in timer () at /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_timer.c:289 #3 0x080676ff in ntpdmain (argc=0, argv=0xbfbfeab0) at /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntpd.c:1032 #4 0x080677e7 in main (argc=8, argv=0xbfbfebc8) at /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntpd.c:234 (gdb) l 234 return ntpdmain(argc, argv); 235 } 236 #endif 237 #endif /* SIM */ 238 239 #ifdef _AIX 240 /* 241 * OK. AIX is different than solaris in how it implements plock(). 242 * If you do NOT adjust the stack limit, you will get the MAXIMUM 243 * stack size allocated and PINNED with you program. To check the (gdb) -Warren Block * Rapid City, South Dakota USA