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 2022530 - traceback if there is non-utf8 character in the /proc/PID/cmdline
Summary: traceback if there is non-utf8 character in the /proc/PID/cmdline
Keywords:
Status: CLOSED ERRATA
Alias: None
Deadline: 2021-12-27
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: python-linux-procfs
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: John Kacur
QA Contact: Qiao Zhao
URL:
Whiteboard:
Depends On: 2016204 2031717
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-11 21:44 UTC by John Kacur
Modified: 2022-05-17 16:29 UTC (History)
6 users (show)

Fixed In Version: python-linux-procfs-0.6.3-3.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2016204
Environment:
Last Closed: 2022-05-17 15:57:56 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-102561 0 None None None 2021-11-11 21:44:51 UTC
Red Hat Product Errata RHBA-2022:3980 0 None None None 2022-05-17 15:58:06 UTC

Comment 8 mhou 2021-12-13 06:58:06 UTC
I occurred another issue when updating python3-linux-procfs to 0.6.3-4.el9. Should I open a new bug to traced this issue?

# rpm -qa | grep python3-linux
python3-linux-procfs-0.6.3-4.el9.noarch

# cat /etc/tuned/realtime-virtual-host-variables.conf 
isolated_cores=1-23,25-47
isolate_managed_irq=Y
# tuned-adm profile realtime-virtual-host

# cat /var/log/tuned/tuned.log
2021-12-12 22:29:16,369 INFO     tuned.plugins.plugin_cpu: setting new cpu latency 2
2021-12-12 22:29:16,370 ERROR    tuned.plugins.plugin_sysctl: Failed to read sysctl parameter 'net.core.busy_read', the parameter does not exist
2021-12-12 22:29:16,370 ERROR    tuned.plugins.plugin_sysctl: sysctl option net.core.busy_read will not be set, failed to read the original value.
2021-12-12 22:29:16,370 ERROR    tuned.plugins.plugin_sysctl: Failed to read sysctl parameter 'net.core.busy_poll', the parameter does not exist
2021-12-12 22:29:16,370 ERROR    tuned.plugins.plugin_sysctl: sysctl option net.core.busy_poll will not be set, failed to read the original value.
2021-12-12 22:29:16,375 INFO     tuned.plugins.plugin_sysctl: reapplying system sysctl
2021-12-12 22:29:16,376 WARNING  tuned.plugins.plugin_vm: Option 'transparent_hugepages' is not supported on current hardware.
2021-12-12 22:29:16,377 INFO     tuned.plugins.plugin_bootloader: installing additional boot command line parameters to grub2
2021-12-12 22:29:16,490 WARNING  tuned.profiles.functions.function_check_net_queue_count: net-dev queue count is not correctly specified, setting it to HK CPUs 48

2021-12-12 22:29:16,509 ERROR    tuned.utils.commands: Executing ethtool error: netlink error: requested channel count exceeds maximum (offset 36)
netlink error: Invalid argument
2021-12-12 22:29:16,526 ERROR    tuned.utils.commands: Executing ethtool error: netlink error: requested channel count exceeds maximum (offset 36)
netlink error: Invalid argument
2021-12-12 22:29:16,534 ERROR    tuned.utils.commands: Executing ethtool error: netlink error: requested channel count exceeds maximum (offset 36)
netlink error: Invalid argument
2021-12-12 22:29:16,542 ERROR    tuned.utils.commands: Executing ethtool error: netlink error: requested channel count exceeds maximum (offset 36)
netlink error: Invalid argument
2021-12-12 22:29:16,621 INFO     tuned.plugins.plugin_script: calling script '/usr/lib/tuned/realtime/script.sh' with arguments '['start']'
2021-12-12 22:29:16,661 INFO     tuned.plugins.plugin_script: calling script '/usr/lib/tuned/realtime-virtual-host/script.sh' with arguments '['start']'
2021-12-12 22:29:17,117 INFO     tuned.daemon.daemon: static tuning from profile 'realtime-virtual-host' applied
2021-12-13 01:49:46,502 INFO     tuned.daemon.daemon: stopping tuning
2021-12-13 01:49:46,516 INFO     tuned.daemon.daemon: terminating TuneD, rolling back all changes
2021-12-13 01:49:46,645 ERROR    tuned.units.manager: BUG: Unhandled exception in stop_tuning: 'unicodeescape' codec can't decode bytes in position 22-23: truncated \uXXXX escape
2021-12-13 01:49:46,645 ERROR    tuned.units.manager: Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/tuned/units/manager.py", line 119, in _try_call
    return f(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/tuned/plugins/instance/instance.py", line 87, in unapply_tuning
    self._plugin.instance_unapply_tuning(self, full_rollback)
  File "/usr/lib/python3.9/site-packages/tuned/plugins/base.py", line 312, in instance_unapply_tuning
    self._instance_unapply_static(instance, full_rollback)
  File "/usr/lib/python3.9/site-packages/tuned/plugins/plugin_scheduler.py", line 722, in _instance_unapply_static
    self._restore_ps_affinity()
  File "/usr/lib/python3.9/site-packages/tuned/plugins/plugin_scheduler.py", line 678, in _restore_ps_affinity
    ps = self.get_processes()
  File "/usr/lib/python3.9/site-packages/tuned/plugins/plugin_scheduler.py", line 293, in get_processes
    cmd = self._get_cmdline(proc)
  File "/usr/lib/python3.9/site-packages/tuned/plugins/plugin_scheduler.py", line 281, in _get_cmdline
    cmdline = procfs.process_cmdline(process)
  File "/usr/lib/python3.9/site-packages/procfs/procfs.py", line 43, in process_cmdline
    if pid_info["cmdline"]:
  File "/usr/lib/python3.9/site-packages/procfs/procfs.py", line 356, in __getitem__
    self.load_cmdline()
  File "/usr/lib/python3.9/site-packages/procfs/procfs.py", line 374, in load_cmdline
    cmdline = f.readline().decode(encoding='unicode_escape')
UnicodeDecodeError: 'unicodeescape' codec can't decode bytes in position 22-23: truncated \uXXXX escape

2021-12-13 01:49:46,647 INFO     tuned.plugins.plugin_script: calling script '/usr/lib/tuned/realtime-virtual-host/script.sh' with arguments '['stop', 'full_rollback']'
2021-12-13 01:49:46,665 INFO     tuned.plugins.plugin_script: calling script '/usr/lib/tuned/realtime/script.sh' with arguments '['stop', 'full_rollback']'

Comment 14 errata-xmlrpc 2022-05-17 15:57:56 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 (new packages: python-linux-procfs), 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://access.redhat.com/errata/RHBA-2022:3980


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