dstat -afv crashes

Bug #249013 reported by tpetrov
4
Affects Status Importance Assigned to Milestone
dstat (Ubuntu)
Fix Released
Undecided
dag

Bug Description

Binary package hint: dstat

Here is the error:

root@dbMaster:~/packs# dstat -afv
Terminal width too small, trimming output.
--dsk/sda-----dsk/sdb-----dsk/sdc-- --net/eth0----net/eth1- ---paging-- ---system-- ---procs--- ------memory-usage----- ---paging-- ---system-->
 read writ: read writ: read writ| recv send: recv send| in out | int csw |run blk new| used buff cach free| in out | int csw >
  74k 42k: 74k 42k: 64k 1405k| 0 0 : 0 0 |9843B 8186B| 195 267 | 0 0 0|3331M 19M 552M 40M|9843B 8186B| 195 267 >
   0 0 : 0 0 : 0 0 |2067B 3355B: 0 0 | 0 0 | 8 24 | 0 0 0|3332M 19M 552M 40M| 0 0 | 8 24 >
Traceback (most recent call last):
  File "/usr/bin/dstat", line 2041, in <module>
    main()
  File "/usr/bin/dstat", line 1986, in main
    o.extract()
  File "/usr/bin/dstat", line 516, in extract
    self.val[name][i] = 100.0 * (self.cn2[name][i] - self.cn1[name][i]) / (sum(self.cn2[name]) - sum(self.cn1[name]))
ZeroDivisionError: float division

package version:
root@dbMaster:~/packs# apt-cache policy dstat
dstat:
  Installed: 0.6.6-5
  Candidate: 0.6.6-5
  Version table:
 *** 0.6.6-5 0
        500 http://bg.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status

release version:
root@dbMaster:~/packs# lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04

Revision history for this message
Noel J. Bergman (noeljb) wrote :

I cannot reproduce this with dstat 0.6.9svn:

$ dstat -afv
Terminal width too small, trimming output.
-------cpu0-usage--------------cpu1-usage------ dsk/mmcblk0---dsk/sda-- --net/eth0---net/vmnet1--net/vmnet8--net/wlan0- ---paging-- ---system-- ---procs--->
usr sys idl wai hiq siq:usr sys idl wai hiq siq| read writ: read writ| recv send: recv send: recv send: recv send| in out | int csw |run blk new>
  6 9 83 2 0 0: 6 8 83 2 0 0| 9.8B 0 : 96k 159k| 0 0 : 0 0 : 0 0 : 0 0 | 80B 368B|1456 2148 | 0 0 1>
 15 16 67 0 1 0: 5 12 82 0 1 0| 0 0 : 0 0 | 0 0 : 0 0 : 0 0 : 0 0 | 0 0 |2130 5871 | 2 0 0>
  9 4 86 0 0 1: 9 17 73 0 1 0| 0 0 : 0 0 | 0 0 : 0 0 : 0 0 : 0 0 | 0 0 |2323 6611 | 1 0 0>
 12 8 79 0 1 0: 29 15 57 0 0 0| 0 0 : 0 0 | 742B 1102B: 0 0 : 0 0 : 0 0 | 0 0 |2613 6827 | 4 0 1>
 12 9 79 0 0 0: 15 10 70 3 1 0| 0 0 : 0 96k|4750B 4295B: 0 0 : 0 0 : 0 0 | 0 0 |2691 7088 | 4 0 0>
 21 14 65 0 0 0: 15 8 75 0 1 1| 0 0 : 0 44k| 66B 66B: 0 0 : 0 0 : 0 0 | 0 0 |2438 7617 | 3 0 0>
 13 13 74 0 0 0: 29 6 65 0 0 0| 0 0 : 0 0 | 0 0 : 0 0 : 0 0 : 0 0 | 0 0 |2432 6166 | 2 0 0>
 12 22 66 0 0 0: 11 16 72 0 1 0| 0 0 : 0 0 | 0 0 : 0 0 : 0 0 : 0 0 | 0 0 |2687 7413 | 3 0 0>
 11 14 74 0 1 0: 12 14 74 0 0 0| 0 0 : 0 0 | 0 0 : 0 0 : 0 0 : 0 0 | 0 0 |2820 7720 | 5 0 0>
  6 13 76 4 1 0: 12 13 75 0 1 0| 0 0 : 0 56k| 0 0 : 0 0 : 0 0 : 0 0 | 0 0 |2401 6312 | 1 0 0>
 16 13 71 0 0 1: 14 6 80 0 0 0| 0 0 : 0 0 | 0 0 : 0 0 : 0 0 : 0 0 | 0 0 |2331 5969 | 2 0 0>^C

Revision history for this message
Noel J. Bergman (noeljb) wrote :

Already fixed in Intrepid and Jaunty. Could be backported to Hardy.

dag (dag-wieers)
Changed in dstat (Ubuntu):
status: New → Fix Released
assignee: nobody → dag (dag-wieers)
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.