From nobody Thu May 19 11:41:13 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3B3F41B316A1 for ; Thu, 19 May 2022 11:41:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L3nxN6TJxz3Pkt for ; Thu, 19 May 2022 11:41:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BF7741CF39 for ; Thu, 19 May 2022 11:41:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 24JBfCl6004786 for ; Thu, 19 May 2022 11:41:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24JBfCGf004785 for bugs@FreeBSD.org; Thu, 19 May 2022 11:41:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 262062] pgrep sshd do not get correct result Date: Thu, 19 May 2022 11:41:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: 345238174@qq.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652960472; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pvvk8GZhWuXBLQ58cQ9owg6A2KlD6uZvGK/jQBdxdyY=; b=Zt9wKYrEd22kiFvOarQYkDKvkeD261ZRnOCN5QMfuopgQIAyQotw9qaGZMHjVJVWlHfo5f OaW6B51SGctAOSGGefD+tGOM4gNQ3PFbFLi+6HiURqldzjFONZgXoOb4DOyI7mko8GhV1B /UPQj34778xmz1iAADEaNm5yovLL7uKhmFyewJF2LzVvi4HuW5BDa1UJ/PmXGDt2NwnJP7 eWkoqe7Z2ES5ipj6HR8S0H1i6296snWMITfXQC/xkvuPO1GTDlZFGOyHjRfms93PFyH4OH nbR6wg7n9YfJP/mhlERKaOF0Emm2tEeNx9SCddMt75KRBrzxGmENSsyK/WvUdQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652960472; a=rsa-sha256; cv=none; b=OsWx7YrsIg8SZm5UyapP/RH341OvNEvg83um1VbqJ7gfOD2B+fjkSdhL1nzpJ707Q+DSC6 XGAw2ao2BeLt56FhP4aO4Ks0OdvvfEvQ+D2unmxIPzUQMmN3E4yLQ+L4HLHRbltZVYjs9t gvmemn0NQrnqvBPIma/a/VuJlf078fNjxOe8Wbx/mpLi/Epma7NaDpXgEkie0lWiwkeAHd 9f87TumhjyCWULJTEU6fxoJzAuN28/dRO3ITfXP20Z2Hh/xOQo67XiVxGRWqmBY26nX5f0 iFZRLIjxNTo3xObaOhveWVP98SfHYTG1vpNneD+76lHClkwR8AeCy0BizYpioA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262062 --- Comment #2 from jimmy <345238174@qq.com> --- (In reply to Ed Maste from comment #1) I try a new bhyve setuped 13.1-beta vm and pgrep works. I find some wird and I think this problem also find on a 12.x VPS. And only a long running pross may be Omit by pgrep, after restart the service,pgrep works. also restart the OS, the pgrep works. I also test it on 13.0. This is on a 12.x VPS: root@hk:~ # pgrep sshd root@hk:~ # ps auxwww | grep sshd root 12354 0.0 0.1 19644 1372 - Is ****** 21Mar20 *******=20=20= =20=20=20=20 0:04.29 /usr/sbin/sshd // sshd running for a year!! root 59592 0.0 0.8 20352 8468 - Is 19:21 0:00.02 sshd: jo [priv] (sshd) jo 59594 0.0 0.9 20680 8704 - S 19:21 0:00.02 sshd: jo@p= ts/0 (sshd) root 59649 0.0 0.0 524 324 0 R+ 19:22 0:00.00 grep sshd root@hk:~ # service sshd restart Performing sanity check on sshd configuration. Stopping sshd. Waiting for PIDS: 12354. Performing sanity check on sshd configuration. Starting sshd. root@hk:~ # pgrep sshd 59681 root@hk:~ # freebsd-version -ku 12.2-RELEASE 12.1-RELEASE-p10 --=20 You are receiving this mail because: You are the assignee for the bug.=