Summary: | panic: pgrp 9501 0xfffff8006654a780 pg_jobc 1 cnt 2 | ||
---|---|---|---|
Product: | Base System | Reporter: | Edward Tomasz Napierala <trasz> |
Component: | kern | Assignee: | Konstantin Belousov <kib> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | emaste, kib, markj |
Priority: | --- | Keywords: | crash |
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any |
Description
Edward Tomasz Napierala
2020-09-11 19:36:22 UTC
Correction: to reproduce, do "truss -f sh", then run id(1) in the sh(1) instance opened in the previous step. A commit references this bug: Author: kib Date: Wed Sep 16 21:46:57 UTC 2020 New revision: 365814 URL: https://svnweb.freebsd.org/changeset/base/365814 Log: Fix fixjobc+orhpanage. Orphans affect job control state, we must account for them when changing pg_jobc. Instead of p_pptr, use proc_realparent() to get parent relevant for job control. Use correct calculation of the parent for exiting process. For jobc purposes, we must use realparent, but if it is also exiting, we should fall to reaper, then recursively find non-exiting reaper. Reported by: trasz PR: 249257 Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D26416 Changes: head/sys/kern/kern_proc.c The MFC was in r366082. |