← Back to team overview

debcrafters-packages team mailing list archive

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

 

** Bug watch added: Debian Bug tracker #1111830
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1111830

** Also affects: procps-ng via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1111830
   Importance: Unknown
       Status: Unknown

** No longer affects: procps-ng

** Also affects: procps (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1111830
   Importance: Unknown
       Status: Unknown

-- 
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:
  Unknown

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