How do I debug a Segmentation fault from ntpmon?
Hal Murray
halmurray at sonic.net
Fri Jun 19 19:50:40 UTC 2026
> $ python -d `command -v ntpmon` -u
17 19 0 . 4 4 8 0.052 0 8123 glypnod-6
Segmentation fault (core dumped) python -d `command -v ntpmon`
> I'll glance at Pythons ctype doc to check if I made an oops near there.
I don't think there is any ctype involved on our part. We are calling
socket.inet_ntop() from python.
The Segmentation fault printout always appears near the bottom of the the
mru printout. At least in the normal case, all the hosts involved have
names so inet_ntop() wouldn't get called.
I suspect you are getting garbage from ntpd.
Actually, if I understand things... There is no need to call inet_ntop().
You get a text form of an IP address and turn it into a binary form so
you can do a name lookup. If the name lookup fails, you convert the
binary form back to text. My guess is that you are getting garbage so the
convert to binary step is failing.
--
These are my opinions. I hate spam.
More information about the devel
mailing list