Bug#1054558: iotop: crashes on non-utf8 characters

2023-10-26 Thread Paul Wise
On Wed, 2023-10-25 at 23:23 +0200, Marc Lehmann wrote:

> 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:

Please try iotop-c, since iotop is not maintained upstream and is
incompatible with Python 3.12 so will likely be removed from Debian.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part


Bug#1054558: iotop: crashes on non-utf8 characters

2023-10-25 Thread Marc Lehmann
Package: iotop
Version: 0.6-42-ga14256a-0.1+b2
Severity: normal

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 "", line 322, in decode
   UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 2259: 
invalid continuation byte

-- System Information:
Debian Release: 12.2
  APT prefers stable-updates
  APT policy: (990, 'stable-updates'), (990, 'stable-security'), (990, 
'stable'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
'oldstable-debug'), (500, 'unstable'), (500, 'testing'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, x32

Kernel: Linux 6.1.55-schmorp (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_USER, TAINT_WARN, 
TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages iotop depends on:
ii  python3  3.11.2-1+b1

iotop recommends no packages.

iotop suggests no packages.

-- no debconf information