NetBSD Problem Report #60254

From www@netbsd.org  Tue May 12 20:45:50 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" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 712551A9239
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 12 May 2026 20:45:50 +0000 (UTC)
Message-Id: <20260512204549.59FCE1A923A@mollari.NetBSD.org>
Date: Tue, 12 May 2026 20:45:49 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: POSIX.1-2024: PTHREAD_NULL
X-Send-Pr-Version: www-1.0
X-From4GNATS: "campbell+netbsd@mumble.net via gnats" <gnats-admin@NetBSD.org>

>Number:         60254
>Category:       standards
>Synopsis:       POSIX.1-2024: PTHREAD_NULL
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    standards-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 12 20:50:00 +0000 2026
>Originator:     Taylor R Campbell
>Release:        current, 11, 10, 9, ...
>Organization:
The Nullpthread_t Foundation
>Environment:
>Description:
> The <pthread.h> header shall define the following compile-time
> constant expression, valid as an initializer for pthread_t,
> representing a value that shall not compare equal to the thread ID of
> any existing thread:
> 
> PTHREAD_NULL

https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/basedefs/pthread.h.html
>How-To-Repeat:
standards inspection and/or chasing silly OpenSSL bugs
>Fix:
Yes, please!

Note that pthread_equal needs to be taught to stomach this value.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.49 2026/05/14 01:52:41 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.