NetBSD Problem Report #59973
From www@netbsd.org Sat Feb 7 22:39:21 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "R13" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id DF87B1A923D
for <gnats-bugs@gnats.NetBSD.org>; Sat, 7 Feb 2026 22:39:20 +0000 (UTC)
Message-Id: <20260207223919.DD04E1A923E@mollari.NetBSD.org>
Date: Sat, 7 Feb 2026 22:39:19 +0000 (UTC)
From: jmcneill@invisible.ca
Reply-To: jmcneill@invisible.ca
To: gnats-bugs@NetBSD.org
Subject: sntp core dump on NetBSD/evbppc
X-Send-Pr-Version: www-1.0
X-From4GNATS: "jmcneill@invisible.ca via gnats" <gnats-admin@NetBSD.org>
>Number: 59973
>Category: bin
>Synopsis: sntp core dump on NetBSD/evbppc
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 07 22:40:00 +0000 2026
>Last-Modified: Wed Mar 04 20:05:01 +0000 2026
>Originator: Jared McNeill
>Release: 11.99.5
>Organization:
>Environment:
NetBSD nintendo 11.99.5 NetBSD 11.99.5 (NINTENDO.MP) #86: Sat Feb 7 14:15:29 AST 2026 jmcneill@berserk:/home/jmcneill/netbsd/obj/sys/arch/evbppc/compile/NINTENDO.MP evbppc
>Description:
nintendo# sntp time.nrc.ca
sntp 4.2.8p18-o Fri Jan 30 11:27:35 UTC 2026 (1)
kod_init_kod_db(): Cannot open KoD db file /var/db/ntp-kod: No such file or directory
[1] Segmentation fault (core dumped) sntp time.nrc.ca
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x053ba834 in queue_xmt ()
(gdb) bt
#0 0x053ba834 in queue_xmt ()
#1 0x053bab94 in sntp_name_resolved ()
#2 0x053c6270 in ?? ()
#3 0x053c5af8 in process_blocking_resp ()
#4 0x053b9538 in worker_resp_cb ()
#5 0xfc0e6300 in ?? () from /usr/lib/libevent.so.5
#6 0xfc0e6c20 in event_base_loop () from /usr/lib/libevent.so.5
#7 0xfc0e6fcc in event_base_dispatch () from /usr/lib/libevent.so.5
#8 0x053b9ee8 in sntp_main ()
#9 0x053e4ca4 in main ()
>How-To-Repeat:
See above
>Fix:
>Audit-Trail:
From: mlelstv@serpens.de (Michael van Elst)
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: bin/59973: sntp core dump on NetBSD/evbppc
Date: Sun, 8 Feb 2026 00:13:29 -0000 (UTC)
gnats-admin@NetBSD.org ("jmcneill@invisible.ca via gnats") writes:
>nintendo# sntp time.nrc.ca
>sntp 4.2.8p18-o Fri Jan 30 11:27:35 UTC 2026 (1)
>kod_init_kod_db(): Cannot open KoD db file /var/db/ntp-kod: No such file or directory
>[1] Segmentation fault (core dumped) sntp time.nrc.ca
For some reason, a NULL pointer check was dropped with the last
NTP update.
Restoring the check helps.
Index: external/bsd/ntp/dist/include/ntp_lists.h
===================================================================
RCS file: /cvsroot/src/external/bsd/ntp/dist/include/ntp_lists.h,v
retrieving revision 1.8
diff -p -u -r1.8 ntp_lists.h
--- external/bsd/ntp/dist/include/ntp_lists.h 1 Oct 2024 20:59:51 -0000 1.8
+++ external/bsd/ntp/dist/include/ntp_lists.h 8 Feb 2026 00:12:50 -0000
@@ -155,7 +155,7 @@ do { \
\
ppentry = &(listhead); \
while (TRUE) { \
- if (beforecur) { \
+ if (NULL == *ppentry || (beforecur)) { \
(pentry)->nextlink = *ppentry; \
*ppentry = (pentry); \
break; \
From: "Michael van Elst" <mlelstv@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/59973 CVS commit: src/external/bsd/ntp/dist/include
Date: Sun, 8 Feb 2026 13:51:12 +0000
Module Name: src
Committed By: mlelstv
Date: Sun Feb 8 13:51:12 UTC 2026
Modified Files:
src/external/bsd/ntp/dist/include: ntp_lists.h
Log Message:
Restore NULL pointer check from upstream. Should fix PR 59973.
Pullup-11.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/bsd/ntp/dist/include/ntp_lists.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/59973 CVS commit: [netbsd-11] src/external/bsd/ntp/dist/include
Date: Wed, 4 Mar 2026 20:02:43 +0000
Module Name: src
Committed By: martin
Date: Wed Mar 4 20:02:43 UTC 2026
Modified Files:
src/external/bsd/ntp/dist/include [netbsd-11]: ntp_lists.h
Log Message:
Pull up following revision(s) (requested by mlelstv in ticket #198):
external/bsd/ntp/dist/include/ntp_lists.h: revision 1.9
Restore NULL pointer check from upstream. Should fix PR 59973.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.8.2.1 src/external/bsd/ntp/dist/include/ntp_lists.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.