This fixes it on my machine:

--- data.py     2018-05-22 16:46:51.744204671 +0200
+++ data2.py    2018-05-22 16:48:28.694497438 +0200
@@ -193,8 +193,11 @@
     result_dict = {}
     try:
         for line in open('/proc/%d/status' % pid):
-            key, value = line.split(':\t', 1)
-            result_dict[key] = value.strip()
+            try:
+                key, value = line.split(':\t', 1)
+                result_dict[key] = value.strip()
+            except:
+                pass
     except IOError:
         pass  # No such process
     return result_dict

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1772671

Title:
  Kernel produces empty lines in /proc/PID/status

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hello,

  after running updates today to linux-
  image-4.4.0-127-generic_4.4.0-127.153 and rebooting i noticed that
  iotop is not working any more. Reason are empty lines in
  /proc/PID/status, which confuse iotop (and me)

  In new view there is an empy line between Seccomp and
  Speculation_Store_Bypass:

  ####
  Seccomp:        0

  Speculation_Store_Bypass:       vulnerable
  ####
  Speculation_Store_Bypass seems to be new in /proc/PID/status, may be a 
relation to spectre/meltdown patches.

  iotop is first application which is failing here, but iam afraid of
  more.

  Thanks

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1772671/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to