Public bug reported:

Binary package hint: ntp

I have an old Garmin GPS that I though I could use as a local time
source with NTP. It supports NMEA messages so I added the line to my
ntp.conf file:

server 127.127.20.0             # NMEA GPS

and created a symbolic link from /dev/gps0 -> /dev/ttyS0 as suggested
here:

http://www.eecis.udel.edu/~mills/ntp/html/drivers/driver20.html

However, when trying to start NTP it crashes on me without any obvious
reason, though it might be somehow related to the serial port opening
failing for some non-obvious reason:

Jun 18 17:33:33 pscpc ntpd[2888]: ntpd 4.2....@1.1612-o Fri Apr  9 00:28:40 UTC 
2010 (1)
Jun 18 17:33:33 pscpc ntpd[2889]: precision = 1.000 usec
Jun 18 17:33:33 pscpc ntpd[2889]: ntp_io: estimated max descriptors: 1024, 
initial socket boundary: 16
Jun 18 17:33:33 pscpc ntpd[2889]: Listening on interface #0 wildcard, 
0.0.0.0#123 Disabled
Jun 18 17:33:33 pscpc ntpd[2889]: Listening on interface #1 wildcard, ::#123 
Disabled
Jun 18 17:33:33 pscpc ntpd[2889]: Listening on interface #2 vmnet8, 
fe80::250:56ff:fec0:8#123 Enabled
Jun 18 17:33:33 pscpc ntpd[2889]: Listening on interface #3 lo, ::1#123 Enabled
Jun 18 17:33:33 pscpc ntpd[2889]: Listening on interface #4 vmnet1, 
fe80::250:56ff:fec0:1#123 Enabled
Jun 18 17:33:33 pscpc ntpd[2889]: Listening on interface #5 eth0, 
fe80::213:20ff:fecb:72d6#123 Enabled
Jun 18 17:33:33 pscpc ntpd[2889]: Listening on interface #6 lo, 127.0.0.1#123 
Enabled
Jun 18 17:33:33 pscpc ntpd[2889]: Listening on interface #7 eth0, 
134.36.22.24#123 Enabled
Jun 18 17:33:33 pscpc ntpd[2889]: Listening on interface #8 vmnet1, 
192.168.227.1#123 Enabled
Jun 18 17:33:33 pscpc ntpd[2889]: Listening on interface #9 vmnet8, 
192.168.154.1#123 Enabled
Jun 18 17:33:33 pscpc ntpd[2889]: kernel time sync status 2040
Jun 18 17:33:33 pscpc ntpd[2889]: frequency initialized -2.568 PPM from 
/var/lib/ntp/ntp.drift
Jun 18 17:33:33 pscpc ntpd[2889]: refclock_open /dev/gps0: Permission denied
Jun 18 17:33:33 pscpc kernel: [18794.490995] type=1503 
audit(1276878813.771:19):  operation="open" pid=2889 parent=1 
profile="/usr/sbin/ntpd" requested_mask="rw::" denied_mask="rw::" fsuid=0 
ouid=0 name="/dev/ttyS0"
Jun 18 17:33:33 pscpc kernel: [18794.491244] ntpd[2889]: segfault at 0 ip 
002f57bc sp bfe53cd0 error 4 in libc-2.11.1.so[2c5000+153000]

Even if there is something wrong with my serial port, it should not
crash, but should use whatever other time sources that are available!

About my system:

$ lsb_release -rd
Description:    Ubuntu 10.04 LTS
Release:        10.04

$ uname -a
Linux pscpc 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 22:02:19 UTC 2010 i686 
GNU/Linux

$ apt-cache policy ntp
ntp:
  Installed: 1:4.2.4p8+dfsg-1ubuntu2
  Candidate: 1:4.2.4p8+dfsg-1ubuntu2
  Version table:
 *** 1:4.2.4p8+dfsg-1ubuntu2 0
        500 http://gb.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

Regards,
Paul

** Affects: ntp (Ubuntu)
     Importance: Undecided
         Status: New

-- 
ntpd sementation fault using NMEA driver
https://bugs.launchpad.net/bugs/596010
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to ntp in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to