iotop stopped working after upgrade to linux-image-4.4.0-127-generic

Bug #1772856 reported by Aurimas Fišeras
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
iotop (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Running iotop 0.6-1 in Xenial ends with:
Traceback (most recent call last):
  File "/usr/sbin/iotop", line 17, in <module>
    main()
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 620, in main
    main_loop()
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 610, in <lambda>
    main_loop = lambda: run_iotop(options)
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 508, in run_iotop
    return curses.wrapper(run_iotop_window, options)
  File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 501, in run_iotop_window
    ui.run()
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 155, in run
    self.process_list.duration)
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 434, in refresh_display
    lines = self.get_data()
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 415, in get_data
    return list(map(format, processes))
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 388, in format
    cmdline = p.get_cmdline()
  File "/usr/lib/python2.7/dist-packages/iotop/data.py", line 292, in get_cmdline
    proc_status = parse_proc_pid_status(self.pid)
  File "/usr/lib/python2.7/dist-packages/iotop/data.py", line 196, in parse_proc_pid_status
    key, value = line.split(':\t', 1)
ValueError: need more than 1 value to unpack

It worked with linux-image-4.4.0-124-generic and earlier kernels.

Revision history for this message
Paul Wise (Debian) (pabs) wrote :

Could you gzip and attach the contents of one of your /proc/PID/status files when iotop is crashing?

Revision history for this message
Paul Wise (Debian) (pabs) wrote : Re: iotop - patch

I have added a workaround to the iotop git repository:

http://repo.or.cz/iotop.git/commitdiff/0392b205b5c3973a326721c2e9f97f0fa2eefa82
http://repo.or.cz/iotop.git/commitdiff/7c51ce0e29bd135c216f18e18f0c4ab769af0d6f

This should help if this sort of thing gets re-added in the future.

--
bye,
pabs

https://wiki.debian.org/PaulWise

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in iotop (Ubuntu):
status: New → Confirmed
Revision history for this message
laulau (olaulau) wrote :

fixed by new kernels.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.