← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2120904] Re: top/ps crashes on high process creation/deletion pressure

 

taking the patch from the git commit (https://gitlab.com/procps-
ng/procps/-/commit/a5708118a4f3184cb5a3e2faa219807e73f007d3) and
applying fails. I figured it would considering we are an entire release
+ a bunch of commits into `next`.

I believe I can include this commit and make it workable:
https://gitlab.com/procps-
ng/procps/-/commit/5e4886ae9231d332edd591334c210e8ba5ed9e84

The `use openat for files under /proc/<PID>` doesn't have a Debian or
Gitlab bug number, but reading the git commit seems like it's also an
important fix.

I feel I can safely get `openat` commit patched in, removing the Docker
feature statements, and then have a patch for empty string under
pressure bug (this bug)

-- 
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
Status in procps package in Debian:
  New

Bug description:
  I encountered with crashes on top.

  Reproduced Version: 2:4.0.4-4ubuntu3.2 (noble; Ubuntu 24.04 LTS)
  Affected Versions (guessed by the reporter): Noble (Ubuntu 24.04 LTS) or later

  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