** Description changed:

  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, some randomness is involved (the upstream GitLab issue
- page provides patching method for reliable crash reproduction).
+ 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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2120904

Title:
  top/ps crashes on high process creation/deletion pressure

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/procps/+bug/2120904/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to