Package: dstat Version: 0.7.2-4 Severity: normal Tags: patch Dear Maintainer,
I recently encountered a crash on a machine with a slightly wonky terminal config. If both termios.TIOCGWINSZ and curses.tigetnum fail in initterm(), then we die in gettermsize() with NameError: global name 'termsize' is not defined. There are already fallbacks to handle this case, we just need to make sure termsize is initialized to a suitable value when no terminal info is available. Patch below does this. Paul diff -u clean/dstat dstat-0.7.2/dstat --- clean/dstat 2010-06-11 06:08:01.000000000 +0000 +++ dstat-0.7.2/dstat 2015-03-23 11:44:39.510401178 +0000 @@ -1998,6 +1998,7 @@ ### Unbuffered sys.stdout # sys.stdout = os.fdopen(1, 'w', 0) + termsize = None, 0 try: global fcntl, struct, termios import fcntl, struct, termios -- System Information: Debian Release: 8.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages dstat depends on: pn python:any <none> dstat recommends no packages. dstat suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org