#1054558 iotop: crashes on non-utf8 characters

Package:
iotop
Source:
iotop
Description:
simple top-like I/O monitor
Submitter:
Marc Lehmann
Date:
2023-10-26 16:18:04 UTC
Severity:
normal
#1054558#5
Date:
2023-10-25 21:23:04 UTC
From:
To:
Dear Maintainer,

independent of locale (or the fatc that locales are per-process), if
iotop finds a command line argument that is not utf-8 encoded, it simply
crashes. regardless of how it handles encodings it does not understand, it
should not simply crash:

   File "/usr/lib/python3/dist-packages/iotop/data.py", line 311, in get_cmdline
       cmdline = proc_cmdline.read(4096)
              	 ^^^^^^^^^^^^^^^^^^^^^^^
     File "<frozen codecs>", line 322, in decode
   UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 2259: invalid continuation byte

#1054558#10
Date:
2023-10-26 16:14:49 UTC
From:
To:
Please try iotop-c, since iotop is not maintained upstream and is
incompatible with Python 3.12 so will likely be removed from Debian.