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 1000025 - tuna - listing threads using -CP ends with traceback
Summary: tuna - listing threads using -CP ends with traceback
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: tuna
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: John Kacur
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On: 997536
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-22 14:04 UTC by John Kacur
Modified: 2014-07-31 15:08 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 997536
Environment:
Last Closed: 2014-07-31 15:08:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description John Kacur 2013-08-22 14:04:55 UTC
+++ This bug was initially created as a clone of Bug #997536 +++

Description of problem:
when listing threads using -CP tuna ends with traceback.

Version-Release number of selected component (if applicable):
tuna-0.11+

How reproducible:
always

Steps to Reproduce:
1. sudo tuna -CP
2. check output

Actual results:
# tuna -CP
...
Traceback (most recent call last):
  File "/bin/tuna", line 647, in <module>
    main()
  File "/bin/tuna", line 542, in main
    kthreads, affect_children, show_sockets, cgroups)
  File "/bin/tuna", line 310, in do_ps
    has_ctxt_switch_info, sock_inodes, sock_inode_re, cgroups)
  File "/bin/tuna", line 275, in ps_show
    sock_inode_re, cgroups)
  File "/bin/tuna", line 230, in ps_show_thread
    sock_inodes, sock_inode_re)
TypeError: ps_show_thread() takes exactly 7 arguments (6 given)

Expected results:
no traceback

Additional info:

Comment 2 Guy Streeter 2014-02-27 16:23:36 UTC
Upstream commit

commit a97f70eb407f3ec2972740ca5ab976f5f06ce0bb
Author: Petr Oros <poros>
Date:   Thu Aug 15 11:15:45 2013 +0200

    CLI: fix ps_show_thread call with bad args count
    
    Signed-off-by: Petr Oros <poros>

diff --git a/tuna-cmd.py b/tuna-cmd.py
index 64e3ad1..5dcc181 100755
--- a/tuna-cmd.py
+++ b/tuna-cmd.py
@@ -227,7 +227,7 @@ def ps_show_thread(pid, affect_children, ps,
                for tid in ps[pid]["threads"].keys():
                        ps_show_thread(tid, False, ps[pid]["threads"],
                                       has_ctxt_switch_info,
-                                      sock_inodes, sock_inode_re)
+                                      sock_inodes, sock_inode_re, cgroups)
                        
 
 def ps_show(ps, affect_children, thread_list, cpu_list,

Comment 3 John Kacur 2014-03-11 11:56:40 UTC
This was fixed in 0.11-3, currently at 0.11.1-5


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