Bug 29441 - pgrep: cannot allocate if stack size limit is unlimited
Summary: pgrep: cannot allocate if stack size limit is unlimited
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA8-64-OK
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2021-09-06 09:30 CEST by Chris Denice
Modified: 2021-09-14 02:47 CEST (History)
4 users (show)

See Also:
Source RPM: procps-ng-3.3.16-2.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Chris Denice 2021-09-06 09:30:37 CEST
The program pgred returns a pid from a running process. Check what is running with top for instance, and enter:

pgrep systemd

The normal output is a list of pids.

Now, in a terminal, set the stacksize to unlimited:

ulimit -s unlimited

and try the same:

pgrep systemd
pgrep: cannot allocate 4611686018427387903 bytes

Bug is known and has been fixed upstream, as well as in Cauldron.
Comment 1 Chris Denice 2021-09-06 09:38:54 CEST
Here we go, procps-ng version 3.3.17 landing in updates_testing. To test, reproduce the steps mentioned in the bug report. This version should work even if ulimit -s unlimited has been set before.





Suggested advisory:
========================

Updated procps-ng package fixing a fatal issue preventing pgrep to run on unlimited stack size.

========================

Updated packages in core/updates_testing:
========================
lib(64)procps8-3.3.17-1.mga8
lib(64)procps-devel-3.3.17-1.mga8
procps-ng-3.3.17-1.mga8

Source RPMs: 
procps-ng-3.3.17-1.mga8.src.rpm

CC: (none) => eatdirt
Assignee: bugsquad => qa-bugs

Comment 2 Herman Viaene 2021-09-13 14:55:26 CEST
MGA8-64 Plasma on Lenovo B50
No installation issues.
$ pgrep systemd
1
523
565
1221
3198
$ ulimit -s unlimited
$ pgrep systemd
1
523
565
1221
3198
16574

So update is OK.

Whiteboard: (none) => MGA8-64-OK
CC: (none) => herman.viaene

Comment 3 Thomas Andrews 2021-09-14 02:47:49 CEST
Validating. Advisory in Comment 1.

CC: (none) => andrewsfarm, sysadmin-bugs
Keywords: (none) => validated_update


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