Public bug reported:

I am on 16.04.4 LTS.  I am seeing pstree crash intermittently, and I
tracked it down to an fclose(NULL):

https://gitlab.com/psmisc/psmisc/blob/28005b99fedef566b06286bd6ca72a7a4d673f20/src/pstree.c#L822

I am guessing it is a race condition where the procfs entry disappears
between dir listing and the fopen() call several lines above.

This is fixed in the latest release (v23.0, released 9 months ago) but
exists in the current version of psmisc for 16.04.4 (v22.21).

Would this call for a bump of the upstream version, or an Ubuntu-
specific patch to remove that fclose() call?

** Affects: psmisc (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  pstree crashes on fclose(NULL)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to