debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #05870
[Bug 2120904] Re: top/ps crashes on high process creation/deletion pressure
Based on reading, this minimally affects 24.04 Noble+ suites. There was
a major transition between 22.04 Jammy and 24.04 Noble from the 3.x to
4.x releases. We should attempt reproduction on Jammy as well to see if
it is affected. The original bug has good reproduction steps. I've
downloaded the git patch for the PR into HEAD in upstream source to
generate a patch for Questing
For immediate action, focusing on patching Noble+ while we await
verification if Jammy is affected as well.
--
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to procps in Ubuntu.
https://bugs.launchpad.net/bugs/2120904
Title:
top/ps crashes on high process creation/deletion pressure
Status in procps package in Ubuntu:
Triaged
Status in procps source package in Noble:
New
Status in procps source package in Plucky:
New
Status in procps source package in Questing:
Triaged
Bug description:
I encountered with crashes on top.
Reproduced Version: 2:4.0.4-4ubuntu3.2 (noble; Ubuntu 24.04 LTS)
Affected Versions: All currently supported versions (I guess)
It requires:
* A libproc2-0 depending program like `top` (as I encountered) and `ps` (as reported upstream).
* Printing certain columns like RUSER is enabled.
* On ps, probably non-UTF-8 locale is required (because UTF-8 string processing path workarounds crashes).
Still, (as I explain later) this is a race condition issue and for
reproduction without patching the program, some randomness is involved
(the upstream GitLab issue page provides patching method for reliable
crash reproduction).
1. The system should be under high process creation/deletion pressure (where many processed are created and destroyed in a short period of time).
2. On top, reproducibility raises if higher number of processes are printed (i.e. the terminal is large and/or zoomed out) and the delay value (default: 3 seconds) is lower.
3. On ps, set LC_ALL=C to avoid UTF-8-based locales.
On upstream, it is found to be a race condition issue on libproc2-0
(cause is discovered by me) and fixed by Jim Warner (the main commit
is https://gitlab.com/procps-
ng/procps/-/commit/a5708118a4f3184cb5a3e2faa219807e73f007d3).
As suggested by Mike Gulick, there may be a possibility synchronizing
with Debian (for backporting the fix).
cf. https://gitlab.com/procps-ng/procps/-/issues/380
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/procps/+bug/2120904/+subscriptions
References