View Issue Details

IDProjectCategoryView StatusLast Update
0017985CentOS-7iotoppublic2020-12-30 20:10
Reporterprotein Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
OS Version7 
Summary0017985: [abrt] iotop: ui.py:55:human_size:ValueError: negative shift count
DescriptionDescription of problem:
Hi, I have just started "iostat -y 5" and error popped out.
Description: Centos 7.7.1908 with gui installed, yum updated

Version-Release number of selected component:
iotop-0.6-4.el7

Truncated backtrace:
ui.py:55:human_size:ValueError: negative shift count

Traceback (most recent call last):
  File "/sbin/iotop", line 17, in <module>
    main()
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 620, in main
    main_loop()
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 610, in <lambda>
    main_loop = lambda: run_iotop(options)
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 508, in run_iotop
    return curses.wrapper(run_iotop_window, options)
  File "/usr/lib64/python2.7/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 501, in run_iotop_window
    ui.run()
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 155, in run
    self.process_list.duration)
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 434, in refresh_display
    lines = self.get_data()
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 415, in get_data
    return list(map(format, processes))
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 378, in format
    stats = format_stats(self.options, p, self.process_list.duration)
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 83, in format_stats
    write_bytes = display_format(written_bytes, duration)
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 77, in <lambda>
    options, size, duration)
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 63, in format_bandwidth
    return format_size(options, size and float(size) / duration) + '/s'
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 60, in format_size
    return human_size(bytes)
  File "/usr/lib/python2.7/site-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

Local variables in innermost frame:
size: 0.0016420986497199706
expo: -1
sign: ''
Additional Informationreporter: libreport-2.1.11.1
cmdline: /usr/bin/python /sbin/iotop -o
dso_list: python-libs-2.7.5-86.el7.x86_64
executable: /sbin/iotop
kernel: 3.10.0-1062.18.1.el7.x86_64
pkg_fingerprint: 24C6 A8A7 F4A8 0EB5
pkg_vendor: CentOS
reproducible: Not sure how to reproduce the problem
runlevel: N 5
type: Python
uid: 0
TagsNo tags attached.
abrt_hashc9c7ccc5a1f0f3f65662f6267f723eb0dee4f029
URLhttps://retrace.fedoraproject.org/faf/reports/bthash/2ce87eebbd8d3e86110fe54f558ac2b9cf51afbe

Activities

protein

protein

2020-12-30 20:10

reporter  

backtrace (1,949 bytes)   
ui.py:55:human_size:ValueError: negative shift count

Traceback (most recent call last):
  File "/sbin/iotop", line 17, in <module>
    main()
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 620, in main
    main_loop()
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 610, in <lambda>
    main_loop = lambda: run_iotop(options)
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 508, in run_iotop
    return curses.wrapper(run_iotop_window, options)
  File "/usr/lib64/python2.7/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 501, in run_iotop_window
    ui.run()
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 155, in run
    self.process_list.duration)
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 434, in refresh_display
    lines = self.get_data()
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 415, in get_data
    return list(map(format, processes))
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 378, in format
    stats = format_stats(self.options, p, self.process_list.duration)
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 83, in format_stats
    write_bytes = display_format(written_bytes, duration)
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 77, in <lambda>
    options, size, duration)
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 63, in format_bandwidth
    return format_size(options, size and float(size) / duration) + '/s'
  File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 60, in format_size
    return human_size(bytes)
  File "/usr/lib/python2.7/site-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

Local variables in innermost frame:
size: 0.0016420986497199706
expo: -1
sign: ''
backtrace (1,949 bytes)   
environ (2,281 bytes)   
LESSOPEN=||/usr/bin/lesspipe.sh %s
LOGNAME=anze
USER=anze
PATH=/sbin:/bin:/usr/sbin:/usr/bin
XDG_VTNR=1
HOME=/root
DISPLAY=:0
LANG=en_US.UTF-8
TERM=xterm-256color
SHELL=/bin/bash
XAUTHORITY=/root/.xauthzOikkT
SHLVL=1
HISTSIZE=1000
SUDO_USER=anze
USERNAME=anze
SUDO_UID=1000
XDG_SESSION_ID=1
_=/sbin/iotop
SUDO_COMMAND=/bin/su
SUDO_GID=1000
HOSTNAME=localhost.localdomain
XDG_DATA_DIRS=/root/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
PWD=/home/anze
COLORTERM=truecolor
MAIL=/var/spool/mail/anze
LS_COLORS=rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:
XDG_SEAT=seat0
environ (2,281 bytes)   
machineid (135 bytes)   
systemd=b2f166854c27be4a8d811fb00c5dd802
sosreport_uploader-dmidecode=6ac1c58bce8fe98c3d2b2d1a8d94f5f884348a7d47d9dfc2c6f8898c2c0d3fc0
machineid (135 bytes)   

Issue History

Date Modified Username Field Change
2020-12-30 20:10 protein New Issue
2020-12-30 20:10 protein File Added: backtrace
2020-12-30 20:10 protein File Added: environ
2020-12-30 20:10 protein File Added: machineid