Карабанов Алексей
2018-08-25 07:57:56 UTC
Hello.
After update to Slackware 14.2 i found crash iotop.
Function parse_proc_pid_status(pid) in module data.py read lines from /proc/*/status
and split them by ':\t' delimiter.
Status file can contain empty strings (EOL only).
Therefore, function can't split line.
I created very simple patch for iotop v0.6 to check exist delimiter in string.
However, in git repository http://repo.or.cz/iotop.git/shortlog
exist commits for fixed this problem.
I provide use my patch or use newer version for git repo.
Patch attached.
After update to Slackware 14.2 i found crash iotop.
Function parse_proc_pid_status(pid) in module data.py read lines from /proc/*/status
and split them by ':\t' delimiter.
Status file can contain empty strings (EOL only).
Therefore, function can't split line.
I created very simple patch for iotop v0.6 to check exist delimiter in string.
However, in git repository http://repo.or.cz/iotop.git/shortlog
exist commits for fixed this problem.
I provide use my patch or use newer version for git repo.
Patch attached.
--
С ÑважеМОеЌ, Ð.ÐаÑабаМПв
С ÑважеМОеЌ, Ð.ÐаÑабаМПв