[ntp:questions] nmea patch

dhavey dhavey at gmail.com
Thu Dec 18 22:06:00 UTC 2008


On Dec 18, 1:49 pm, David Woolley
<da... at ex.djwhome.demon.co.uk.invalid> wrote:
> dhavey wrote:
> > What full debug?
>
> Depends on your development toolset, but for gcc, it means including the
> -g flag and not doing anything that would strip the binary.
>
> For gcc, unoptimised means something like -O0

Like that?

(gdb) run  -l /var/log/ntpd.log -d -c /etc/ntp.gps
Starting program: /usr/local/bin/ntpd -l /var/log/ntpd.log -d -c /etc/
ntp.gps
ntpd 4.2.4p5 at 1.1541-o Thu Dec 18 21:21:02 UTC 2008 (2)
addto_syslog: logging to file /var/log/ntpd.log
addto_syslog: logging to file /var/log/ntpd.log

addto_syslog: precision = 1.000 usec

addto_syslog: ntp_io: estimated max descriptors: 1024, initial socket
boundary: 16

addto_syslog: Listening on interface #0 wildcard, 0.0.0.0#123 Disabled

addto_syslog: Listening on interface #1 wildcard, ::#123 Disabled

addto_syslog: Listening on interface #2 lo, ::1#123 Enabled

addto_syslog: Listening on interface #3 eth0, fe80::21d:
9ff:fe18:815#123 Enabled

addto_syslog: Listening on interface #4 lo, 127.0.0.1#123 Enabled

addto_syslog: Listening on interface #5 eth0, 192.168.0.29#123 Enabled

local_clock: time 0 offset 0.000000 freq 0.000 state 0
addto_syslog: kernel time sync status 0040

addto_syslog: configure: keyword "ning" unknown, line ignored

peer_crypto_clear: at 0 next 0 assoc ID 59506
key_expire: at 0
peer_clear: at 0 next 1 assoc ID 59506 refid INIT
newpeer: 192.168.0.29->192.168.0.26 mode 1 vers 4 poll 6 10 flags 0x1
0x1 ttl 0 key 00000000
peer_crypto_clear: at 0 next 0 assoc ID 59507
key_expire: at 0
peer_clear: at 0 next 2 assoc ID 59507 refid INIT
newpeer: 192.168.0.29->192.168.0.27 mode 1 vers 4 poll 6 10 flags 0x1
0x1 ttl 0 key 00000000
peer_crypto_clear: at 0 next 0 assoc ID 59508
key_expire: at 0
peer_clear: at 0 next 3 assoc ID 59508 refid INIT
newpeer: 192.168.0.29->192.168.0.28 mode 1 vers 4 poll 6 10 flags 0x1
0x1 ttl 0 key 00000000

Breakpoint 1, 0x0000003361a341ca in ____strtoll_l_internal () from /
lib64/libc.so.6
(gdb) backtrace
#0  0x0000003361a341ca in ____strtoll_l_internal () from /lib64/
libc.so.6
#1  0x0000000000407c79 in getconfig (argc=<value optimized out>,
argv=0x4) at /usr/include/stdlib.h:336
#2  0x000000000040c90b in ntpdmain (argc=0, argv=<value optimized
out>) at ntpd.c:846
#3  0x0000003361a1d8b4 in __libc_start_main () from /lib64/libc.so.6
#4  0x0000000000404a79 in _start ()
(gdb)




More information about the questions mailing list