[ntp:hackers] Help debugging ntpd on FreeBSD (hangs in ttyout on restart)
hmurray at megapathdsl.net
Thu Dec 30 06:58:06 UTC 2010
I'm running a reasonably up-to-date ntp-dev with various local patches. I
could easily have fat-fingered something in my changes.
I tried a stock ntp-dev and it has the same symptoms.
I did my standard make, make install, /etc/rc.d/ntpd restart
and it kept printing out that it was waiting for 83831
PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
86193 root 1 54 -10 5776K 2828K select 963:32 0.00% gpsd
83831 root 1 44 0 3640K 3660K ttyout 13:59 0.00% ntpd
Tail of ntpd log file:
29 Dec 18:11:54 ntpd: GPS_NMEA(10) 8093 83 unreachable
29 Dec 18:21:30 ntpd: GPS_NMEA(10) 80a4 84 reachable
29 Dec 18:53:40 ntpd: TBolt 1 Other: 0 -4.44089e-15
29 Dec 20:45:38 ntpd: ntpd exiting on signal 15
kill -9 works.
I can easily reproduce it.
I've got a NMEA and a Palisade/TBolt refclock (and SHM and PPS and audio).
What does ttyout mean? My debug-foo with gdb isn't very good. Can somebody
tell me what's going on and/or tell me how to get more info.
This is from another try so the pid has changed.
I was expecting this to work, but...
ted# gdb /usr/local/bin/ntpd 89316
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"...
Attaching to program: /usr/local/bin/ntpd, process 89316
ptrace: No such process.
/home/murray/ntp/work/89316: No such file or directory.
I'm running FreeBSD 8.0-RC1
Has anybody else seen this? Has anybody tried a recent ntp-dev (on FreeBSD)?
If you have better info, please tell me and/or file a bug report. If I don't
hear anything in a day or two, I'll file this.
These are my opinions, not necessarily my employer's. I hate spam.
More information about the hackers