Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1195429

Summary: pmatop: AttributeError: '_ProcPrint' object has no attribute 'command_line'
Product: Red Hat Enterprise Linux 6 Reporter: Chris Henderson <chenders>
Component: pcpAssignee: Nathan Scott <nathans>
Status: CLOSED ERRATA QA Contact: Miloš Prchlík <mprchlik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.6CC: brolley, lberk, mbenitez, mcermak, mprchlik
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: pcp-3.10.9-2.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-10 21:12:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
abrtd output none

Description Chris Henderson 2015-02-23 20:39:05 UTC
Description of problem:
pmatop errors out with with a traceback.

Version-Release number of selected component (if applicable):
# rpm -qa|grep pcp
pcp-conf-3.9.4-5.el6.x86_64
pcp-3.9.4-5.el6.x86_64
pcp-libs-3.9.4-5.el6.x86_64
python-pcp-3.9.4-5.el6.x86_64


How reproducible: 100%


Steps to Reproduce:
1. Install pcp and pcp-conf on a fully updated RHEL 6.6
2. start pmcd via service pmcd start
3. try to run pmatop

Actual results:
# pmatop
Traceback (most recent call last):
  File "/usr/bin/pmatop", line 776, in <module>
    status = curses.wrapper(main)   # pylint: disable-msg=C0103
  File "/usr/lib64/python2.6/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/bin/pmatop", line 714, in main
    stdscr.move (proc.command_line, 0)
AttributeError: '_ProcPrint' object has no attribute 'command_line'

Expected results:
pmatop would give information about the system utilization.

Additional info:
Have seen this on multiple systems.

Comment 1 Chris Henderson 2015-02-23 20:44:53 UTC
Created attachment 994494 [details]
abrtd output

Comment 2 Nathan Scott 2015-02-23 23:37:55 UTC
This one sounds very familiar, Stan - is this one of the bugs you resolved a little while ago?  Perhaps we simply need a fix backported here.

thanks.

Comment 4 Nathan Scott 2015-03-26 00:59:21 UTC
Stan, as per comment #2, is this a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1018575 ?

thanks.

Comment 5 Nathan Scott 2015-03-26 22:23:15 UTC
In case we don't hear from Stan on this one, I'm updating the flags to indicate a definite fix for 6.8 (it is possibly fixed in 6.7 though, via BZ 1018575 - I'd confirm myself, but have never reproduced the problem locally).

For 6.8, it's looking very likely we'll have a different pmatop implementation, which cannot exhibit this python stack trace since we'd be switching to an alternate implementation (written in C).

http://www.pcp.io/pipermail/pcp/2015-March/006867.html
http://www.pcp.io/pipermail/pcp/2015-March/006870.html

cheers.

Comment 6 Chris Henderson 2015-03-27 21:32:44 UTC
I'm not sure that it is the same as  BZ 1018575. I have tried various window sizes and not had any luck. If I were supplied a test package for 6.7, I can easily test it.

Comment 7 Chris Henderson 2015-03-27 21:36:02 UTC
Also, it works correctly via the console, but not when I ssh into the virtual machine.

Comment 10 Nathan Scott 2015-08-24 05:00:35 UTC
This is fixed in upstream PCP (via pmatop no longer being a python program, it is now based on atoptool.nl code).  We're expecting the fix to arrive in 6.8 via a rebase - https://bugzilla.redhat.com/show_bug.cgi?id=1248272

In the meantime, pcp-3.10.6 contains the new code, and RHEL6 builds are available on https://bintray.com/pcp for interested parties.

Comment 12 Miloš Prchlík 2016-02-08 09:55:14 UTC
Verified for build pcp-3.10.9-5.el6.

Comment 14 errata-xmlrpc 2016-05-10 21:12:40 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-2016-0825.html