[Bug 281202] [regression] /usr/sbin/ntpd is broken in 13.4-RC
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 281202] [regression] /usr/sbin/ntpd is broken in 13.4-RC"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 281202] /usr/sbin/ntpd is broken in 13.4-RC"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 281202] /usr/sbin/ntpd is broken in 13.4-RC"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 281202] /usr/sbin/ntpd is broken in 13.4-RC"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 281202] /usr/sbin/ntpd is broken in 13.4-RC"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 02 Sep 2024 05:16:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281202 Bug ID: 281202 Summary: [regression] /usr/sbin/ntpd is broken in 13.4-RC Product: Base System Version: 13.4-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: emz@norma.perm.ru Seems like ntpd is trying to bind to point-to-point interfaces and dies: Sep 2 10:08:10 gw0 ntpd[85705]: ntpd 4.2.8p18-a (1): Starting Sep 2 10:08:10 gw0 ntpd[85705]: Command line: /usr/sbin/ntpd -p /var/db/ntp/ntpd.pid -c /etc/ntp.conf Sep 2 10:08:10 gw0 ntpd[85705]: ---------------------------------------------------- Sep 2 10:08:10 gw0 ntpd[85705]: ntp-4 is maintained by Network Time Foundation, Sep 2 10:08:10 gw0 ntpd[85705]: Inc. (NTF), a non-profit 501(c)(3) public-benefit Sep 2 10:08:10 gw0 ntpd[85705]: corporation. Support and training for ntp-4 are Sep 2 10:08:10 gw0 ntpd[85705]: available at https://www.nwtime.org/support Sep 2 10:08:10 gw0 ntpd[85705]: ---------------------------------------------------- Sep 2 10:08:10 gw0 ntpd[85706]: bind(57) AF_INET 192.168.1.1:123 flags 0x13 failed: Address already in use Sep 2 10:08:10 gw0 ntpd[85706]: unable to create socket on ng4 (37) for 192.168.1.1:123 Sep 2 10:08:10 gw0 ntpd[85705]: daemon child died with signal 11 Sep 2 10:08:10 gw0 kernel: pid 85706 (ntpd), jid 0, uid 0: exited on signal 11 (core dumped) # service ntpd start Starting ntpd. daemon control: got EOF ]# lldb /usr/sbin/ntpd -c /var/core/ntpd-85706.core (lldb) target create "/usr/sbin/ntpd" --core "/var/core/ntpd-85706.core" Core file '/var/core/ntpd-85706.core' (x86_64) was loaded. (lldb) bt * thread #1, name = 'ntpd', stop reason = signal SIGSEGV * frame #0: 0x00001a7c26b07ca3 ntpd`socktoa(sock=0x0000000000000024) at socktoa.c:46:10 frame #1: 0x00001a7c26aacc10 ntpd`update_interfaces(port=123, receiver=0x0000000000000000, data=0x0000000000000000) at ntp_io.c:1928:5 frame #2: 0x00001a7c26aabb86 ntpd`io_open_sockets [inlined] create_sockets(port=123) at ntp_io.c:2038:2 frame #3: 0x00001a7c26aab77b ntpd`io_open_sockets at ntp_io.c:513:2 frame #4: 0x00001a7c26a98bb3 ntpd`config_ntpd(ptree=0x00001a844e745000, input_from_files=<unavailable>) at ntp_config.c:5036:2 frame #5: 0x00001a7c26a968bd ntpd`save_and_apply_config_tree(input_from_file=<unavailable>) at ntp_config.c:5276:2 [artificial] frame #6: 0x00001a7c26a96a4c ntpd`getconfig(argc=0, argv=0x00001a8447478a78) at ntp_config.c:5212:2 frame #7: 0x00001a7c26aca6c0 ntpd`ntpdmain(argc=0, argv=0x00001a8447478a78) at ntpd.c:1141:2 frame #8: 0x00001a7c26ac9f2b ntpd`main(argc=5, argv=0x00001a8447478a50) at ntpd.c:445:9 frame #9: 0x00001a7c26a93c5d ntpd`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1_c.c:71:7 (lldb) # uname -a FreeBSD gw0.qwerty.perm.ru 13.4-RC1 FreeBSD 13.4-RC1 releng/13.4-n258236-27777283da79 GENERIC amd64 # dmesg | tail -n 5 pid 83026 (ntpd), jid 0, uid 0: exited on signal 11 (core dumped) pid 83100 (ntpd), jid 0, uid 0: exited on signal 11 (core dumped) pid 83134 (ntpd), jid 0, uid 0: exited on signal 11 (core dumped) pid 85706 (ntpd), jid 0, uid 0: exited on signal 11 (core dumped) Was running with this config for years (at least from 6.0): # cat /etc/ntp.conf disable monitor server fartein.ifi.uio.no prefer server ntp.lth.se server ntp2b.mcc.ac.uk driftfile /var/db/ntp.drift restrict 192.168.0.0 mask 255.255.0.0 nomodify restrict 172.16.0.0 mask 255.255.0.0 nomodify restrict 91.206.242.0 mask 255.255.255.248 nomodify statistics loopstats statsdir /var/log/ntp/ filegen peerstats file peers type day link enable filegen loopstats file loops type day link enable -- You are receiving this mail because: You are the assignee for the bug.