From unknown Sun Aug 10 16:48:05 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#76401 <76401@debbugs.gnu.org> To: bug#76401 <76401@debbugs.gnu.org> Subject: Status: ntpd segfaults when started too early Reply-To: bug#76401 <76401@debbugs.gnu.org> Date: Sun, 10 Aug 2025 23:48:05 +0000 retitle 76401 ntpd segfaults when started too early reassign 76401 guix submitter 76401 Ludovic Court=C3=A8s severity 76401 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 13:24:11 2025 Received: (at submit) by debbugs.gnu.org; 18 Feb 2025 18:24:11 +0000 Received: from localhost ([127.0.0.1]:32831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tkSGQ-0005Mo-A4 for submit@debbugs.gnu.org; Tue, 18 Feb 2025 13:24:11 -0500 Received: from lists.gnu.org ([2001:470:142::17]:60190) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tkSGN-0005Le-Uj for submit@debbugs.gnu.org; Tue, 18 Feb 2025 13:24:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tkSG3-0002G3-ID for bug-guix@gnu.org; Tue, 18 Feb 2025 13:23:52 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tkSFz-0007jp-Tz for bug-guix@gnu.org; Tue, 18 Feb 2025 13:23:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=YzXNA2AjjcYz4o3gb5tP5oxHDyuA/86S0HKiY43a7gw=; b=GFHG8FYnaCq2OpnU/uOf0+YcTwhR8vge8crfPlbFP1AIYVPAJIzSJOnN m0KE1O7NzdvNzKkSaqv655fELBJjWZiyxhwE5wHQujP7W36GivC/Lt5RY WBQ3iGKyifvftPUVkovslwh8BCaLX5NKBL/c4LyeJCxqkdkVHWqj8d5A4 4=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludovic.courtes@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.13,296,1732575600"; d="scan'208";a="208886781" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Feb 2025 19:23:39 +0100 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: bug-guix@gnu.org Subject: ntpd segfaults when started too early X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: =?utf-8?Q?D=C3=A9cadi?= 30 =?utf-8?Q?Pluvi=C3=B4se?= an 233 de la =?utf-8?Q?R=C3=A9volution=2C?= jour du =?utf-8?Q?Tra=C3=AEneau?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 18 Feb 2025 19:23:38 +0100 Message-ID: <87ldu3i02d.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=192.134.164.83; envelope-from=ludovic.courtes@inria.fr; helo=mail2-relais-roc.national.inria.fr X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, I noticed that ntpd segfaults when started =E2=80=9Ctoo early=E2=80=9D, pre= sumably before networking is up: --8<---------------cut here---------------start------------->8--- ludo@bayfront ~$ sudo herd status ntpd =E2=97=8F 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@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-configura= tion.scm --8<---------------cut here---------------end--------------->8--- (Seen on several different machines.) Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 17:18:34 2025 Received: (at 76401) by debbugs.gnu.org; 18 Feb 2025 22:18:34 +0000 Received: from localhost ([127.0.0.1]:35224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tkVvF-00075x-H0 for submit@debbugs.gnu.org; Tue, 18 Feb 2025 17:18:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54424) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tkVvB-000756-SW for 76401@debbugs.gnu.org; Tue, 18 Feb 2025 17:18:31 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tkVv6-0001DK-Eq for 76401@debbugs.gnu.org; Tue, 18 Feb 2025 17:18:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=YUYYJHhHLd7H30fOc9IIx4i4qhWIuv4Q4ceOgk1fqTQ=; b=KPZNzKBsOeBaR4ndUXxZ X8S71nmnDDXclwpG4o25Nl500jWSuHC6ypqfYMQ9FvRnQLcWeEy6Oi7hL51nZC2WrARvhC5FzMiYF wuZGlJJML2arqxy00yVbf+frazGZDOGHT9Lb1A+aFf+fP3L7trRXraKyTho3MPRChEmt8PYzH/o+L CXKFWSVw8DQsIaVYkgCFaPA2phckd1ODi5sMLNQ1AAWw6ndFDdRGj2OvMDI1SO6/OMe07lFsWhdeY lJTyYw9gwFXaa3RvyWle4RzdvWVp39QxkIPLviaQ2DMokosDFyoZ1ZHHOgcAtq3L6w3QcQwdIDsTK T3R+1pgUfLWieQ==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 76401@debbugs.gnu.org Subject: Re: bug#76401: ntpd segfaults when started too early In-Reply-To: <87ldu3i02d.fsf@inria.fr> ("Ludovic =?utf-8?Q?Court=C3=A8s=22?= =?utf-8?Q?'s?= message of "Tue, 18 Feb 2025 19:23:38 +0100") References: <87ldu3i02d.fsf@inria.fr> Date: Tue, 18 Feb 2025 23:18:21 +0100 Message-ID: <878qq2j3rm.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76401 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ludovic Court=C3=A8s 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@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/hz= sra0k8jcz4473c6clh5m5xfq29s0a0-ntp-4.2.8p18/bin/ntpd -n -c /gnu/store/7ac2i= 2c6dp2f9006llg3m5vkrna7pjbf-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 Netw= ork Time Foundation, 2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: Inc. (NTF), a non-profit 50= 1(c)(3) public-benefit 2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: corporation. Support and t= raining for ntp-4 are 2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: available at https://www.nw= time.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 =3D 0.285 = usec (-22) 2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: baseday_set_day: invalid da= y (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 v6wild= card [::]:123 2025-02-18 19:19:58 18 Feb 19:19:58 ntpd[1074]: Listen and drop on 1 v4wild= card 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 1= 85.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::22= cf: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=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 19 06:24:47 2025 Received: (at 76401-done) by debbugs.gnu.org; 19 Mar 2025 10:24:47 +0000 Received: from localhost ([127.0.0.1]:48537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tuqbP-00019f-3Q for submit@debbugs.gnu.org; Wed, 19 Mar 2025 06:24:47 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:59752) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tuqbK-00019I-UG; Wed, 19 Mar 2025 06:24:44 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id D8D4050E; Wed, 19 Mar 2025 11:24:34 +0100 (CET) Authentication-Results: hera.aquilenet.fr; none X-Virus-Scanned: Debian amavis at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavis, port 10024) with ESMTP id UZB0R1rkUUsr; Wed, 19 Mar 2025 11:24:34 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id E37EA42C; Wed, 19 Mar 2025 11:24:33 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ian Eure Subject: Re: bug#76892: [PATCH v1] gnu: ntp: Fix crash. In-Reply-To: <871pv5cwz9.fsf@retrospec.tv> (Ian Eure's message of "Sun, 09 Mar 2025 21:48:10 -0700") References: <871pv5cwz9.fsf@retrospec.tv> Date: Wed, 19 Mar 2025 11:24:33 +0100 Message-ID: <874izpgvxa.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: D8D4050E X-Spamd-Result: default: False [-6.01 / 15.00]; BAYES_HAM(-2.97)[99.86%]; NEURAL_HAM(-2.94)[-0.979]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; FREEMAIL_ENVRCPT(0.00)[web.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; URIBL_BLOCKED(0.00)[gnu.org:url,localhost:rdns,localhost:helo,retrospec.tv:email,ntp.org:url]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[famulari.name,debbugs.gnu.org,web.de] X-Rspamd-Action: no action X-Spamd-Bar: ------ X-Rspamd-Server: hera X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 76401-done Cc: Jakob Kirsch , 76401-done@debbugs.gnu.org, 76892-done@debbugs.gnu.org, Leo Famulari X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Ian Eure skribis: > Here=E2=80=99s the upstream bug(s): https://bugs.ntp.org/show_bug.cgi?id= =3D3928 > https://bugs.ntp.org/show_bug.cgi?id=3D3968 > > I think this patch is fine, we might also consider rolling back to > 4.2.8p17. Applied, with a reference to too. Thanks, Ludo'. From unknown Sun Aug 10 16:48:05 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 16 Apr 2025 11:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator