Bug 1768993 - killall returns "No such process" even if process exists
Summary: killall returns "No such process" even if process exists
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: psmisc
Version: 31
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jan Görig
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-05 17:57 UTC by Quentin Armitage
Modified: 2023-09-14 05:45 UTC (History)
5 users (show)

Fixed In Version: psmisc-23.2-1.fc31 psmisc-23.2-1.fc30 psmisc-23.3-2.fc31 psmisc-23.3-1.fc30
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-18 01:36:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
psmisc.spec 23.3-1 (15.36 KB, text/plain)
2019-11-26 18:58 UTC, Abrahm Scully
no flags Details

Description Quentin Armitage 2019-11-05 17:57:11 UTC
Description of problem:
When haproxy is running,
    sudo -u haproxy killall -0 haproxy
outputs (incorrectly):
    haproxy: no process found
and exists with exit code 1

On Rawhide (Fedora 32), it returns (correctly):
    haproxy(15849): Operation not permitted
and exists with exit code 0.

Version-Release number of selected component (if applicable):
psmisc-23.1-7 (on Fedora 31)
psmisc-23.2-3 (on Rawhide)

How reproducible:
Always

Steps to Reproduce:
1.See description
2.
3.

Actual results:
See desciption

Expected results:
See description

Additional info:
Upstream commit 38829585 resolved the problem. Please could either that patch be included in Fedora, or else could psmisc be upgraded to version 23.2 (or even 23.3).

The functionality was broken by upstream commit 6a2d61173 and the first version of psmisc that was in was v23.0

Comment 1 Fedora Update System 2019-11-07 18:16:22 UTC
FEDORA-2019-71bf085842 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-71bf085842

Comment 2 Fedora Update System 2019-11-08 15:34:00 UTC
FEDORA-2019-9de0094801 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-9de0094801

Comment 3 Fedora Update System 2019-11-09 23:20:39 UTC
psmisc-23.2-1.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-71bf085842

Comment 4 Fedora Update System 2019-11-10 00:40:04 UTC
psmisc-23.2-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-9de0094801

Comment 5 Fedora Update System 2019-11-18 01:36:53 UTC
psmisc-23.2-1.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2019-11-18 22:47:21 UTC
psmisc-23.2-1.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2019-11-25 01:04:06 UTC
psmisc-23.2-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Abrahm Scully 2019-11-26 18:24:51 UTC
This update broke killall for me in a similar way. psmisc-23.1-7.fc31.x86_64 successfully kills some processes where psmisc-23.2-1.fc31.x86_64 gives "XXXXXXXXXXXXXXXX: no process found". The new killall works if I use the short/truncated process name (second column of /proc/PID/stat), but not the long process name. The older psmisc works with the long process name but does not work with the short process name found in /proc/PID/stat.

Comment 9 Abrahm Scully 2019-11-26 18:58:47 UTC
Created attachment 1639934 [details]
psmisc.spec 23.3-1

Built psmisc version 23.3 with attached spec file and updated source tarball (sha256sum 41750e1a5abf7ed2647b094f58127c73dbce6876f77ba4e0a7e0995ae5c7279a). The resulting killall binary works for me with both the short and long process names.

Comment 10 Fedora Update System 2019-11-28 16:10:45 UTC
FEDORA-2019-01d54af2ee has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-01d54af2ee

Comment 11 Fedora Update System 2019-11-28 16:55:13 UTC
FEDORA-2019-9487833604 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-9487833604

Comment 12 Fedora Update System 2019-11-29 01:20:49 UTC
psmisc-23.3-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-9487833604

Comment 13 Fedora Update System 2019-11-29 01:31:02 UTC
psmisc-23.3-2.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-01d54af2ee

Comment 14 Fedora Update System 2019-12-04 01:15:23 UTC
psmisc-23.3-2.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2019-12-14 01:39:21 UTC
psmisc-23.3-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.

Comment 16 customercare 2020-08-17 22:18:11 UTC
not fixed.. bug got introduced by the update itself. Was working correctly before.

Comment 17 customercare 2020-08-17 22:19:32 UTC
new bug filed BZ#1869413

Comment 18 Red Hat Bugzilla 2023-09-14 05:45:33 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


Note You need to log in before you can comment on or make changes to this bug.