misc/116722: ntpd core dumps if hostnames are not specifed with "-4" option

Warren Block wblock at wonkity.com
Mon Oct 1 17:10:07 PDT 2007


The following reply was made to PR bin/116722; it has been noted by GNATS.

From: Warren Block <wblock at wonkity.com>
To: Remko Lodder <remko at FreeBSD.org>
Cc: freebsd-gnats-submit at 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


More information about the freebsd-bugs mailing list