RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1232394 - python-linux-procfs fails to read /proc/PID/flags correctly
Summary: python-linux-procfs fails to read /proc/PID/flags correctly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python-linux-procfs
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Arnaldo Carvalho de Melo
QA Contact: Jiri Kastner
URL:
Whiteboard:
Depends On: 1234963
Blocks: 1175461
TreeView+ depends on / blocked
 
Reported: 2015-06-16 16:06 UTC by Hai Huang
Modified: 2015-11-19 12:39 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Parsing error splitting fields in python-linux-procfs Consequence: /proc/PID/flags read incorrectly Fix: When separating fields with spaces, take into account embedded spaces already there. Result: /proc/PID/flags read correctly
Clone Of:
Environment:
Last Closed: 2015-11-19 12:39:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2390 0 normal SHIPPED_LIVE python-linux-procfs bug fix update 2015-11-19 11:03:45 UTC

Description Hai Huang 2015-06-16 16:06:14 UTC
Description of problem:

Creating this BZ for RHEL7.2 for tracking/packaging/delivery purpose.

Description captured from email thread:
  http://post-office.corp.redhat.com/archives/kvm-rt/2015-June/msg00144.html

  > I have the fix already, diff is minimal:
  > 
  > +++ b/procfs/procfs.py
  > @@ -100,8 +100,9 @@ class pidstat:
  >  
  >         def load(self, basedir = "/proc"):
  >                 f = open("%s/%d/stat" % (basedir, self.pid))
  > -               fields = f.readline().strip().split()
  > +               fields = f.readline().strip().split(') ')
  >                 f.close()
  > +               fields = fields[0].split(' (') + fields[1].split()
  > 
  > New package is at:
  > 
  > http://vger.kernel.org/~acme/python-linux-procfs/v0.4.7/RPMS/python-linux-
    procfs-0.4.7-2.fc21.noarch.rpm
  > 
  > Please test it with the pflags command that comes with it, it should
  > show that COMM just fine,

  Clark, Beth,

	After all this is tested, we will have to push new tuna and
  python-linux-procfs packages, not just for tuna.

  - Arnaldo

Comment 2 John Kacur 2015-06-25 20:35:04 UTC
The following changes were required

- procfs-Add-a-__contains__-method-to-dict-classes.patch
- pidstat-Add-PF_NO_SETAFFINITY-const.patch
- interrupts-Do-not-refrain-from-parsing-the-irq-affin.patch
- pidstat-Fix-process_flags-method.patch
- pidstat-Add-missing-PF_-flags.patch
- pflags-Add-command-line-utility-to-print-processor-f.patch
- pidstat-Support-COMM-names-with-spaces.patch

Comment 4 John Kacur 2015-06-30 13:40:12 UTC
Note, fixed in python-linux-procfs-0.4.6-3 and up

Comment 8 errata-xmlrpc 2015-11-19 12:39:04 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2390.html


Note You need to log in before you can comment on or make changes to this bug.