[ntp:bugs] [Bug 1864] Autokey authentication causes core dump, ntpd crash

bugzilla-daemon at ntp.org bugzilla-daemon at ntp.org
Mon Mar 28 16:04:32 UTC 2011


https://bugs.ntp.org/show_bug.cgi?id=1864

--- Comment #1 from Richard Schmidt <rich.schmidt at usno.navy.mil> 2011-03-28 16:04:32 UTC ---
Analysis of core file:
ntpdev#gdb /opt/ntp/4.2.7p138/bin/ntpd ./core
HP gdb 6.1 for HP Itanium (32 or 64 bit) and target HP-UX 11iv2 and 11iv3.
Copyright 1986 - 2009 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 6.1 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..
Core was generated by `ntpd'.
Program terminated with signal 11, Segmentation fault.
SEGV_MAPERR - Address not mapped to object
#0  0x408fc60:0 in concat_gen_fifos () at ntp_config.c:988
988             if (NULL == pf1)
(gdb) bt
#0  0x408fc60:0 in concat_gen_fifos () at ntp_config.c:988
#1  0x4086d50:0 in yyparse () at ntp_parser.y:520
#2  0x4107200:0 in getconfig () at ntp_config.c:4281
#3  0x403d440:0 in ntpdmain () at ntpd.c:805
#4  0x403c7f0:0 in main () at ntpd.c:290

Here is my ntp.conf:
server 127.127.16.0 minpoll 4 maxpoll 4 prefer # local clock
server 127.127.16.1 minpoll 4 maxpoll 4 
#
# Test of AUTOKEY from ntp
server 10.1.4.86   autokey iburst burst   # ntp.usno.navy.mil
#server 10.1.4.76   autokey iburst burst   # ptp1.usno.navy.mil
#
restrict default nomodify
restrict 127.127.21.0
restrict 127.127.21.1
restrict 10.1.4.86
restrict 10.1.4.76 #ptp1
restrict 10.1.4.40
restrict 10.1.4.41
restrict 10.1.4.209
restrict 127.0.0.1
restrict 192.168.40.1  # webmux
restrict 192.5.40.40  # tick.usno.navy.mil
restrict 192.168.41.40  # tick.usno.navy.mil
restrict 192.5.40.41  # tock.usno.navy.mil
restrict 192.168.41.41  # tock.usno.navy.mil
restrict 192.5.40.209  # ntp2.usno.navy.mil
restrict 192.168.41.209  # ntp2.usno.navy.mil
restrict 204.34.198.40   # tick.usnogps.navy.mil
restrict 204.34.198.41   # tick.usnogps.navy.mil
# location of drift file
driftfile /etc/ntp.drift
# crypto stuff
keysdir /opt/ntp/etc
crypto randfile /opt/ntp/etc/.rnd 
crypto  pw something
crypto digest SHA1
#
statsdir /var/opt/ntp/
statistics sysstats  peerstats rawstats loopstats cryptostats
filegen cryptostats file cryptostats type day enable link
filegen peerstats file peerstats type day enable link
filegen rawstats file rawstats type day enable link
filegen loopstats file loopstats type day enable link
filegen sysstats file sysstats type day link enable
# turn off monitoring
disable monitor
leapfile /opt/ntp/etc/ntp.leap

-- 
Configure bugmail: https://bugs.ntp.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the bugs mailing list