NetBSD Problem Report #55510

From www@netbsd.org  Tue Jul 21 20:37:23 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E0AE71A9213
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 21 Jul 2020 20:37:23 +0000 (UTC)
Message-Id: <20200721203723.0445B1A9217@mollari.NetBSD.org>
Date: Tue, 21 Jul 2020 20:37:23 +0000 (UTC)
From: n54@gmx.com
Reply-To: n54@gmx.com
To: gnats-bugs@NetBSD.org
Subject: pg_jobc going negative and crashing the kernel
X-Send-Pr-Version: www-1.0

>Number:         55510
>Category:       kern
>Synopsis:       pg_jobc going negative and crashing the kernel
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 21 20:40:00 +0000 2020
>Originator:     Kamil Rytarowski
>Release:        NetBSD 9.99.69 amd64
>Organization:
The NetBSD Foundation, Inc.
>Environment:
NetBSD chieftec 9.99.69 NetBSD 9.99.69 (GENERIC) #0: Tue Jul 21 21:32:24 CEST 2020  root@chieftec:/public/netbsd-root/sys/arch/amd64/compile/GENERIC amd64
>Description:
pg_jobc counts the number of processes with parent controlling terminal.

Under certain circumstances it can go negative.
>How-To-Repeat:
https://www.netbsd.org/~kamil/ptrace/pg_jobc-crash.c
>Fix:
N/A

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.