[LinuxPPS] New test release

Hal V. Engel hvengel at astound.net
Mon Dec 7 22:39:06 CET 2009


On Monday 07 December 2009 01:50:19 am Rodolfo Giometti wrote:
> On Sat, Dec 05, 2009 at 08:42:30PM -0800, Hal V. Engel wrote:
> > # ppstest /dev/pps0
> > trying PPS source "/dev/pps0"
> > cannot create a PPS source from device "/dev/pps0" (Operation not
> > supported)
> 
> Can you please run this command by using strace?
> 
>   $ strace ppstest /dev/pps0
> 
> And report its output?
> 
> Ciao,
> 
> Rodolfo
> 

Rodolfo,

ppstest is working for me now.   It turns out that I was using an old version. 
I thought that I reported this here yesterday but it appears my note got lost 
along the way.

However ntp is not working.  It aborts during the initialization of the 
Oncore.  I also think that there is something wrong with the build I have but 
I don't know what is causing the problem.   I setup all of the symlinks to the 
new kernel header files as documented in the wiki before I built ntp so it 
should have picked up all of the correct header files.

I rebuilt ntp with debug turned on to see if it would give me any additional 
info.   It appears that there is a buffer overflow in refclock_ioctl().   
Running ntpd -d I get the following:

ntpd 4.2.4p7 at 1.1607-o Mon Dec  7 21:01:23 UTC 2009 (1)
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: no IPv6 interfaces found                                            
addto_syslog: no IPv6 interfaces found                                            
addto_syslog: Listening on interface #1 lo, 127.0.0.1#123 Enabled                 
addto_syslog: Listening on interface #2 eth1, 192.168.1.250#123 Enabled           
local_clock: time 0 offset 0.000000 freq 0.000 state 0                            
addto_syslog: kernel time sync status 2040                                        
ntp_syslogmask = 0x00ffff00 (+clockall)                                           
peer_crypto_clear: at 0 next 0 assoc ID 15055                                     
key_expire: at 0                                                                  
peer_clear: at 0 next 1 assoc ID 15055 refid INIT                                 
filegen  ff 3469208589 0 18446744073709551615                                     
refclock_setup fd 8 modem status: 0x4046                                          
refclock_ioctl: fd 8 flags 0x20                                                   
*** buffer overflow detected ***: ntpd terminated                                 
======= Backtrace: =========                                                      
/lib/libc.so.6(__fortify_fail+0x37)[0x7f0384e0c6a7]                               
/lib/libc.so.6[0x7f0384e0a4c0]                                                    
/lib/libc.so.6[0x7f0384e097b9]                                                    
/lib/libc.so.6(_IO_default_xsputn+0x85)[0x7f0384d97eb5]                           
/lib/libc.so.6(_IO_vfprintf+0x719)[0x7f0384d68e09]                                
/lib/libc.so.6(__vsprintf_chk+0x9d)[0x7f0384e0985d]                               
/lib/libc.so.6(__sprintf_chk+0x80)[0x7f0384e097a0]                                
ntpd[0x437f0a]                                                                    
ntpd[0x424372]                                                                    
ntpd[0x41c948]                                                                    
ntpd[0x40764e]                                                                    
ntpd[0x40e3f0]                                                                    
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f0384d44a26]                            
ntpd[0x406339]                                                                    
======= Memory map: ========                                                      
00400000-00481000 r-xp 00000000 16:02 211551                             
/usr/sbin/ntpd
00680000-00681000 r--p 00080000 16:02 211551                             
/usr/sbin/ntpd
00681000-0068c000 rw-p 00081000 16:02 211551                             
/usr/sbin/ntpd
0068c000-00703000 rw-p 00000000 00:00 0                                  
[heap]        
7f03844fa000-7f0384510000 r-xp 00000000 08:03 355102                     
/lib64/libgcc_s.so.1
7f0384510000-7f038470f000 ---p 00016000 08:03 355102                     
/lib64/libgcc_s.so.1
7f038470f000-7f0384710000 r--p 00015000 08:03 355102                     
/lib64/libgcc_s.so.1
7f0384710000-7f0384711000 rw-p 00016000 08:03 355102                     
/lib64/libgcc_s.so.1
7f0384711000-7f038471c000 r-xp 00000000 08:03 288593                     
/lib64/libnss_files-2.10.1.so
7f038471c000-7f038491b000 ---p 0000b000 08:03 288593                     
/lib64/libnss_files-2.10.1.so
7f038491b000-7f038491c000 r--p 0000a000 08:03 288593                     
/lib64/libnss_files-2.10.1.so
7f038491c000-7f038491d000 rw-p 0000b000 08:03 288593                     
/lib64/libnss_files-2.10.1.so
7f038491d000-7f0384921000 r-xp 00000000 08:03 288562                     
/lib64/libattr.so.1.1.0
7f0384921000-7f0384b20000 ---p 00004000 08:03 288562                     
/lib64/libattr.so.1.1.0
7f0384b20000-7f0384b21000 r--p 00003000 08:03 288562                     
/lib64/libattr.so.1.1.0
7f0384b21000-7f0384b22000 rw-p 00004000 08:03 288562                     
/lib64/libattr.so.1.1.0
7f0384b22000-7f0384b24000 r-xp 00000000 08:03 288181                     
/lib64/libdl-2.10.1.so
7f0384b24000-7f0384d24000 ---p 00002000 08:03 288181                     
/lib64/libdl-2.10.1.so
7f0384d24000-7f0384d25000 r--p 00002000 08:03 288181                     
/lib64/libdl-2.10.1.so
7f0384d25000-7f0384d26000 rw-p 00003000 08:03 288181                     
/lib64/libdl-2.10.1.so
7f0384d26000-7f0384e75000 r-xp 00000000 08:03 288217                     
/lib64/libc-2.10.1.so
7f0384e75000-7f0385075000 ---p 0014f000 08:03 288217                     
/lib64/libc-2.10.1.so
7f0385075000-7f0385079000 r--p 0014f000 08:03 288217                     
/lib64/libc-2.10.1.so
7f0385079000-7f038507a000 rw-p 00153000 08:03 288217                     
/lib64/libc-2.10.1.so
7f038507a000-7f038507f000 rw-p 00000000 00:00 0
7f038507f000-7f0385083000 r-xp 00000000 08:03 288582                     
/lib64/libcap.so.2.16
7f0385083000-7f0385283000 ---p 00004000 08:03 288582                     
/lib64/libcap.so.2.16
7f0385283000-7f0385284000 r--p 00004000 08:03 288582                     
/lib64/libcap.so.2.16
7f0385284000-7f0385285000 rw-p 00005000 08:03 288582                     
/lib64/libcap.so.2.16
7f0385285000-7f03853e4000 r-xp 00000000 08:0a 4246                       
/usr/lib64/libcrypto.so.0.9.8
7f03853e4000-7f03855e3000 ---p 0015f000 08:0a 4246                       
/usr/lib64/libcrypto.so.0.9.8
7f03855e3000-7f03855f1000 r--p 0015e000 08:0a 4246                       
/usr/lib64/libcrypto.so.0.9.8
7f03855f1000-7f0385609000 rw-p 0016c000 08:0a 4246                       
/usr/lib64/libcrypto.so.0.9.8
7f0385609000-7f038560d000 rw-p 00000000 00:00 0
7f038560d000-7f038568f000 r-xp 00000000 08:03 288584                     
/lib64/libm-2.10.1.so
7f038568f000-7f038588e000 ---p 00082000 08:03 288584                     
/lib64/libm-2.10.1.so
7f038588e000-7f038588f000 r--p 00081000 08:03 288584                     
/lib64/libm-2.10.1.so
7f038588f000-7f0385890000 rw-p 00082000 08:03 288584                     
/lib64/libm-2.10.1.so
7f0385890000-7f03858ad000 r-xp 00000000 08:03 288169                     
/lib64/ld-2.10.1.so
7f0385a6b000-7f0385a6f000 rw-p 00000000 00:00 0
7f0385aa6000-7f0385aac000 rw-p 00000000 00:00 0
7f0385aac000-7f0385aad000 r--p 0001c000 08:03 288169                     
/lib64/ld-2.10.1.so
7f0385aad000-7f0385aae000 rw-p 0001d000 08:03 288169                     
/lib64/ld-2.10.1.so
7fffc6895000-7fffc68ab000 rw-p 00000000 00:00 0                          [stack]
7fffc69ff000-7fffc6a00000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted

Hal



More information about the LinuxPPS mailing list