GNU bug report logs - #76401
ntpd segfaults when started too early

Previous Next

Package: guix;

Reported by: Ludovic Courtès <ludovic.courtes <at> inria.fr>

Date: Tue, 18 Feb 2025 18:25:02 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

To reply to this bug, email your comments to 76401 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#76401; Package guix. (Tue, 18 Feb 2025 18:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ludovic Courtès <ludovic.courtes <at> inria.fr>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 18 Feb 2025 18:25:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludovic.courtes <at> inria.fr>
To: bug-guix <at> gnu.org
Subject: ntpd segfaults when started too early
Date: Tue, 18 Feb 2025 19:23:38 +0100
Hi,

I noticed that ntpd segfaults when started “too early”, presumably
before networking is up:

--8<---------------cut here---------------start------------->8---
ludo <at> bayfront ~$ sudo herd status ntpd
● Status of ntpd:
  It is stopped since 07:19:58 PM (110 seconds ago).
  Process terminated with signal 11.
  It is disabled.
  Provides: ntpd
  Requires: user-processes networking
  Custom action: configuration
  Will be respawned.
  Last respawned on 07:19:58 PM (110 seconds ago).
  Latest exits:
    - 2025-02-18 19:19:58  Process terminated with signal 11.
    - 2025-02-18 19:19:58  Process terminated with signal 11.
    - 2025-02-18 19:19:58  Process terminated with signal 11.
    - 2025-02-18 19:19:57  Process terminated with signal 11.
    - 2025-02-18 19:19:57  Process terminated with signal 11.
ludo <at> bayfront ~$ guix system describe
Generation 1210 Feb 18 2025 15:26:24    (current)
  file name: /var/guix/profiles/system-1210-link
  canonical file name: /gnu/store/yqw5xzxl4d3da10dim33p5nxn1gy17i9-system
  label: GNU with Linux-Libre 5.10.234
  bootloader: grub
  root device: /dev/md0
  kernel: /gnu/store/04g6ij7nqmk4mqxrqd9zq31bm8fysslf-linux-libre-5.10.234/bzImage
  channels:
    guix:
      repository URL: https://git.savannah.gnu.org/git/guix.git
      branch: master
      commit: 96fe9adf54772e0824e098a6a089306a75101218
  configuration file: /gnu/store/12d2fsn80fwwsmapp3m3pxbfd3q4pra8-configuration.scm
--8<---------------cut here---------------end--------------->8---

(Seen on several different machines.)

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#76401; Package guix. (Tue, 18 Feb 2025 22:19:02 GMT) Full text and rfc822 format available.

Message #8 received at 76401 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: 76401 <at> debbugs.gnu.org
Subject: Re: bug#76401: ntpd segfaults when started too early
Date: Tue, 18 Feb 2025 23:18:21 +0100
Ludovic Courtès <ludovic.courtes <at> inria.fr> skribis:

>   Latest exits:
>     - 2025-02-18 19:19:58  Process terminated with signal 11.
>     - 2025-02-18 19:19:58  Process terminated with signal 11.
>     - 2025-02-18 19:19:58  Process terminated with signal 11.
>     - 2025-02-18 19:19:57  Process terminated with signal 11.
>     - 2025-02-18 19:19:57  Process terminated with signal 11.

The /var/log/ntpd.log excerpt corresponding to one of these:

--8<---------------cut here---------------start------------->8---
2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: ntpd 4.2.8p18 <at> 1.4062-o Thu Jan  1 00:00:01 UTC 1970 (1): Starting
2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: Command line: /gnu/store/hzsra0k8jcz4473c6clh5m5xfq29s0a0-ntp-4.2.8p18/bin/ntpd -n -c /gnu/store/7ac2i2c6dp2f9006llg3m5vkrna7pjbf-ntpd.conf -u ntpd -g
2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: ----------------------------------------------------
2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: ntp-4 is maintained by Network Time Foundation,
2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: Inc. (NTF), a non-profit 501(c)(3) public-benefit
2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: corporation.  Support and training for ntp-4 are
2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: available at https://www.nwtime.org/support
2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: ----------------------------------------------------
2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: DEBUG behavior is enabled - a violation of any diagnostic assertion will cause ntpd to abort
2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: proto: precision = 0.285 usec (-22)
2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: baseday_set_day: invalid day (25556), UNIX epoch substituted
2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: basedate set to 1970-01-01
2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: gps base set to 1980-01-06 (week 0)
2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: Listen and drop on 0 v6wildcard [::]:123
2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: Listen and drop on 1 v4wildcard 0.0.0.0:123
2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: Listen normally on 2 lo 127.0.0.1:123
2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: Listen normally on 3 ens9 185.233.100.57:123
2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: Listen normally on 4 ens10 185.233.100.56:123
2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: Listen normally on 5 lo [::1]:123
2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: bind(22) AF_INET6 [fe80::22cf:30ff:fe50:29fe%2]:123 flags 0x811 failed: Cannot assign requested address
2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: unable to create socket on ens9 (6) for [fe80::22cf:30ff:fe50:29fe%2]:123
--8<---------------cut here---------------end--------------->8---

Ludo’.




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Wed, 19 Mar 2025 10:25:03 GMT) Full text and rfc822 format available.

Notification sent to Ludovic Courtès <ludovic.courtes <at> inria.fr>:
bug acknowledged by developer. (Wed, 19 Mar 2025 10:25:03 GMT) Full text and rfc822 format available.

Message #13 received at 76401-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Ian Eure <ian <at> retrospec.tv>
Cc: Jakob Kirsch <jakob.kirsch <at> web.de>, 76401-done <at> debbugs.gnu.org,
 76892-done <at> debbugs.gnu.org, Leo Famulari <leo <at> famulari.name>
Subject: Re: bug#76892: [PATCH v1] gnu: ntp: Fix crash.
Date: Wed, 19 Mar 2025 11:24:33 +0100
Ian Eure <ian <at> retrospec.tv> skribis:

> Here’s the upstream bug(s): https://bugs.ntp.org/show_bug.cgi?id=3928
> https://bugs.ntp.org/show_bug.cgi?id=3968
>
> I think this patch is fine, we might also consider rolling back to
> 4.2.8p17.

Applied, with a reference to <https://issues.guix.gnu.org/76401> too.

Thanks,
Ludo'.




This bug report was last modified 16 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.