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 2022530

Summary: traceback if there is non-utf8 character in the /proc/PID/cmdline
Product: Red Hat Enterprise Linux 9 Reporter: John Kacur <jkacur>
Component: python-linux-procfsAssignee: John Kacur <jkacur>
Status: CLOSED ERRATA QA Contact: Qiao Zhao <qzhao>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: bhu, jskarvad, mhou, mstowell, qzhao, rt-maint
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-linux-procfs-0.6.3-3.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2016204 Environment:
Last Closed: 2022-05-17 15:57:56 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:
Bug Depends On: 2016204, 2031717    
Bug Blocks:    
Deadline: 2021-12-27   

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