ntpd sementation fault using NMEA driver
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ntp (Ubuntu) |
Incomplete
|
Low
|
Unassigned |
Bug Description
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://
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.4p8@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:
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:
Jun 18 17:33:33 pscpc ntpd[2889]: Listening on interface #5 eth0, fe80::213:
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/
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(127687881
Jun 18 17:33:33 pscpc kernel: [18794.491244] ntpd[2889]: segfault at 0 ip 002f57bc sp bfe53cd0 error 4 in libc-2.
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+
Candidate: 1:4.2.4p8+
Version table:
*** 1:4.2.4p8+
500 http://
100 /var/lib/
Regards,
Paul
Just to add, if I try gtkterm I can open and see the NMEA messages just fine, so I don't know why it should report "refclock_open /dev/gps0: Permission denied" in the first place.