Discussion:
[Slackbuilds-users] Fix for iotop issue with 4.4.144 kernel
Jason Graham
2018-08-19 04:34:07 UTC
Permalink
Hi,

iotop is broken with the latest Slackware kernel. I've included the
maintainer here, but also posting the note and a patch for the iotop
SlackBuild to the list for further review.

A few comments regarding the issue and patch: Recent kernels, including
Slackware's 4.4.144 kernel, have introduced at least one blank line in
/proc/<pid>/status which breaks the parse_proc_pid_status() function in
iotop/data.py. The added patch fix-proc-status-read.patch updates this
function to skip empty lines.

Additional reports of this issue can be found here: 

    [1] https://bugzilla.redhat.com/show_bug.cgi?id=1584612 
    [2]
https://unix.stackexchange.com/questions/446624/error-with-command-iotop-on-centos 

    [3] https://bugs.launchpad.net/pkg-website/+bug/1773383

The fix is based on the report in [2].

Best,
Jason

--
Audrius Kažukauskas
2018-08-20 20:30:46 UTC
Permalink
Hi, Jason,
Post by Jason Graham
Hi,
iotop is broken with the latest Slackware kernel. I've included the
maintainer here, but also posting the note and a patch for the iotop
SlackBuild to the list for further review.
Recent kernels, including Slackware's 4.4.144 kernel, have introduced at
least one blank line in /proc/<pid>/status which breaks the
parse_proc_pid_status() function in iotop/data.py. The patch
fix-proc-status-read.patch updates this
function to skip empty lines.
 [1] https://bugzilla.redhat.com/show_bug.cgi?id=1584612
 [2]
https://unix.stackexchange.com/questions/446624/error-with-command-iotop-on-centos
 [3] https://bugs.launchpad.net/pkg-website/+bug/1773383
The fix is based on the report in [2].
Thanks for the heads up. I was on holiday for the last couple of weeks
and just now getting back to computer stuff (including SlackBuilds).
I'll submit the fix as soon as I can.
--
Audrius KaÅŸukauskas
Willy Sudiarto Raharjo
2018-08-25 10:23:07 UTC
Permalink
Post by Jason Graham
iotop is broken with the latest Slackware kernel. I've included the
maintainer here, but also posting the note and a patch for the iotop
SlackBuild to the list for further review.
A few comments regarding the issue and patch: Recent kernels, including
Slackware's 4.4.144 kernel, have introduced at least one blank line in
/proc/<pid>/status which breaks the parse_proc_pid_status() function in
iotop/data.py. The added patch fix-proc-status-read.patch updates this
function to skip empty lines.
Additional reports of this issue can be found here: 
    [1] https://bugzilla.redhat.com/show_bug.cgi?id=1584612 
    [2]
https://unix.stackexchange.com/questions/446624/error-with-command-iotop-on-centos 
    [3] https://bugs.launchpad.net/pkg-website/+bug/1773383
The fix is based on the report in [2].
Thanks for the information
i have tested and pushed the patch to my branch which will be included
in the next public update.
--
Willy Sudiarto Raharjo
Loading...