Public bug reported:
1) lsb_release -rd
Description: Ubuntu 14.04.5 LTS
Release: 14.04
2) apt-cache policy iotop
iotop:
Installed: 0.6-1
Candidate: 0.6-1
Version table:
*** 0.6-1 0
500 http://ubuntu.trumpetti.atm.tut.fi/ubuntu/ trusty/universe i386
Packages
100 /var/lib/dpkg/status
3) while "iotop" or "sudo iotop" is running, when system time updates to
a value in the past, "iotop" should continue running and not crash
4) iotop crashes when system time updates to a value in the past
Steps to reproduce:
a) modify system time to be set manually and set it to a future date, for
example 1 year from now (i.e., just change the year to 2018). you can do this
with minutes as well. this is a realistic scenario in some cases when the date
is wrongly set by hand or by BIOS
b) in a terminal start iotop (e.g., "sudo iotop") and have iotop running
c) change the system to update its time from the internet/NTP and confirm the
system date was updated
d) watch the iotop crash in the terminal and the Ubuntu AppPort error reporting
popping-up
e) iotop traceback follows:
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 421, in
refresh_display
format_bandwidth(self.options, total[1], duration).rjust(14)),
File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 63, in
format_bandwidth
return format_size(options, size and float(size) / duration) + '/s'
File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 60, in format_size
return human_size(bytes)
File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 55, in human_size
return '%s%.2f %s' % (sign, (float(size) / (1 << (10 * expo))), UNITS[expo])
ValueError: negative shift count
** Affects: iotop (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1685512
Title:
iotop crashes when system time updates to a value in the past
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/iotop/+bug/1685512/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs