tfoerste@n22 ~ $ iotop Traceback (most recent call last): File "/usr/bin/iotop", line 16, in <module> main() File "/usr/lib/python2.5/site-packages/iotop/ui.py", line 249, in main curses.wrapper(run_iotop, options) File "/usr/lib/python2.5/curses/wrapper.py", line 44, in wrapper return func(stdscr, *args, **kwds) File "/usr/lib/python2.5/site-packages/iotop/ui.py", line 205, in run_iotop ui.run() File "/usr/lib/python2.5/site-packages/iotop/ui.py", line 95, in run self.process_list.duration) File "/usr/lib/python2.5/site-packages/iotop/ui.py", line 198, in refresh_display self.win.addstr(i + 2, 0, lines[i].encode('utf-8')) _curses.error: addstr() returned ERR Reproducible: Always tfoerste@n22 /usr/portage/sys-process/iotop $ emerge --info Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25.17 i686) ================================================================= System uname: 2.6.25.17 i686 Intel(R) Pentium(R) M processor 1700MHz Timestamp of tree: Thu, 02 Oct 2008 13:15:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r7 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.muntinternet.net/pub/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.mneisen.org/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" LDFLAGS="-Wl,-O1" LINGUAS="de en" MAKEOPTS="-j 2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa apache2 berkdb bzip2 cairo caps cddb cli cracklib crypt css cups curl dbus dri dvd dvdr dvdread dynamicplugin encode exif fam fastbuild fortran gdbm gif gpm gtk hyphenation iconv ipv6 isdnlog jai java javascript jimi joystick jpeg kde logrotate mad mbox midi mikmod mmap mmx mmxext mp2 mp3 mp4 mpeg mudflap mysql ncurses nls nntp nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python readline real reflection session spl sse sse2 ssl subversion svg sysfs tcpd tk truetype unicode userlocales visualization vorbis wav wifi win32codecs wmf x264 x86 xcomposite xml xorg xpm zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="radeon vga" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Seems, this happens only if I compile wireshark from svn sources ... ?!?
I'll be maintaining this now, looking at bugz next week.
(In reply to comment #1) > Seems, this happens only if I compile wireshark from svn sources ... ?!? > How does that relate to iotop? I'm not sure what to do about this bug here.
(In reply to comment #3) > (In reply to comment #1) > > Seems, this happens only if I compile wireshark from svn sources ... ?!? > > > > How does that relate to iotop? I'm not sure what to do about this bug here. > Presumably because compiling wireshark from svn produces a process with name/args that cause iotop to crash while trying to display. Thus reproducing the bug. My experience has been that emerging some packages will reproduce this, but I've not yet been attentive enough to catch it in the act. (emerge -e world resulted in occasionally checking back and generally finding iotop still running, but occasionally finding it crashed with the posted error output.)
I did a couple of tests: iotop > /tmp/logfile.txt seem to run endlessly, while iotop | tee /tmp/logfile.txt eventually crashes, is it of some help the logfile so created? I'm asking because it 's quite bulky and maybe only its tail is of interest.
Here are more programs which emerge output crashes iotop: kde-base/smoke-3.5.9 app-office/openoffice-3.0.0 sci-libs/fftw-3.2.1 dev-libs/DirectFB-1.2.7 There are two different workarounds, though: 1) append --color to emerge command 2) make output stop and restart with CTRL-S / CTRL-Q I don't know how the latter can be responsible for "cleaning" emerge output, but the fisrt makes sense.
Seems this does occur after running it for a while, as recorded in GNU screen: PID USER DISK READ DISK WRITE SWAPIN IO> COMMAND 16235 jeroen 509.84 K/s 0 B/s 0.00 % 7.99 % nvidia-settings --load-c 16229 jeroen 3.89 K/s 0 B/s 0.00 % 0.76 % sh /home/jeroen/.xinitrc 1 root 0 B/s 0 B/s 0.00 % 0.00 % init [3] 2 root 0 B/s 0 B/s 0.00 % 0.00 % [kthreadd] 3 root 0 B/s 0 B/s 0.00 % 0.00 % [ksoftirqd/0] 4 root 0 B/s 0 B/s 0.00 % 0.00 % [watchdog/0] 5 root 0 B/s 0 B/s 0.00 % 0.00 % [events/0] 6 root 0 B/s 0 B/s 0.00 % 0.00 % [khelper] 1035 root 0 B/s 0 B/s 0.00 % 0.00 % [kjournald] 1029 root 0 B/s 0 B/s 0.00 % 0.00 % [rpciod/0] 20828 root 0 B/s 0 B/s 0.00 % 0.00 % turbotail -f -n 78 /var/ 11885 root 0 B/s 0 B/s 0.00 % 0.00 % python /usr/bin/iotop 4206 root 0 B/s 0 B/s 0.00 % 0.00 % dhcpcd -h astrid eth0 1140 root 0 B/s 0 B/s 0.00 % 0.00 % udevd --daemon 190 root 0 B/s 0 B/s 0.00 % 0.00 % [ksuspend_usbd] 121 root 0 B/s 0 B/s 0.00 % 0.00 % [kblockd/0] 124 root 0 B/s 0 B/s 0.00 % 0.00 % [kacpid] 5757 root 0 B/s 0 B/s 0.00 % 0.00 % sshd 16149 portage 0 B/s 0 B/s 0.00 % 0.00 % sh -c set -e; /usr/bin 17346 portage 0 B/s 0 B/s 0.00 % 0.00 % sh -c set -e; \ 5262 root 0 B/s 0 B/s 0.00 % 0.00 % crond 5145 root 0 B/s 0 B/s 0.00 % 0.00 % atd Traceback (most recent call last): B/s 0.00 % 0.00 % sshd: jeroen [priv] File "/usr/bin/iotop", line 16, in <module> main() File "//usr/lib/python2.5/site-packages/iotop/ui.py", line 249, in main curses.wrapper(run_iotop, options) File "/usr/lib/python2.5/curses/wrapper.py", line 44, in wrapper return func(stdscr, *args, **kwds) File "//usr/lib/python2.5/site-packages/iotop/ui.py", line 205, in run_iotop ui.run() File "//usr/lib/python2.5/site-packages/iotop/ui.py", line 95, in run self.process_list.duration) File "//usr/lib/python2.5/site-packages/iotop/ui.py", line 198, in refresh_display self.win.addstr(i + 2, 0, lines[i].encode('utf-8')) _curses.error: addstr() returned ERR
Created attachment 190210 [details] Hex dump of the last lines recorded when iotop crashes There is a pattern. Two recurring offending lines: 3b 31 48 1b 5b 3f 32 35 68 1b 5b 72 1b 5b 3f 31 30 34 39 6c 0d 1b 3e or 3b 31 48 1b 5b 3f 31 32 6c 1b 5b 3f 32 35 68 1b 5b 3f 31 30 34 39 6c 0d 1b 5b 3f 31 6c 1b 3e BTW no program so far causes trouble to iotop but emerge.
This bug is fixed in upstream git commit 7915eb4181467e73b6bec5fa4c76bb6d4daf8979 and version 0.3.
(In reply to comment #9) > This bug is fixed in upstream git commit > 7915eb4181467e73b6bec5fa4c76bb6d4daf8979 and version 0.3. > thx. We will leave this bug open until 0.3 is in the stable tree. 0.3 was *just* added to the tree now.
I don't know if I have to open a new bug report... This is the crash with iotop-0.3 while compiling k3b in another shell: aemaeth ~ # iotop Traceback (most recent call last): File "/usr/bin/iotop", line 16, in <module> main() File "//usr/lib64/python2.5/site-packages/iotop/ui.py", line 361, in main main_loop() File "//usr/lib64/python2.5/site-packages/iotop/ui.py", line 351, in <lambda> main_loop = lambda: run_iotop(options) File "//usr/lib64/python2.5/site-packages/iotop/ui.py", line 267, in run_iotop return curses.wrapper(run_iotop_window, options) File "/usr/lib64/python2.5/curses/wrapper.py", line 44, in wrapper return func(stdscr, *args, **kwds) File "//usr/lib64/python2.5/site-packages/iotop/ui.py", line 261, in run_iotop_window ui.run() File "//usr/lib64/python2.5/site-packages/iotop/ui.py", line 112, in run self.process_list.duration) File "//usr/lib64/python2.5/site-packages/iotop/ui.py", line 248, in refresh_display self.win.addstr(i + 2, 0, lines[i].encode('utf-8')) _curses.error: addstr() returned ERR win:(79, 270) i:70 line:16954 be/5 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % sh -c failcom=\'exit 1\'; \\\nfor f in x $MAKEFLAGS; do \\\n case $f in \\\n *=* | --[!k]*);; \\\n *k*) failcom=\'fail=yes\';; \\\n esac; \\\ndone; \\\ndot_seen=no; \\\ntarget=`echo all-recursive | sed s/-recursive//`; \\\n It is just a little different but still isn't fixed.
Same here for 0.3 Traceback (most recent call last): File "/usr/bin/iotop", line 16, in <module> main() File "//usr/lib64/python2.5/site-packages/iotop/ui.py", line 361, in main main_loop() File "//usr/lib64/python2.5/site-packages/iotop/ui.py", line 351, in <lambda> main_loop = lambda: run_iotop(options) File "//usr/lib64/python2.5/site-packages/iotop/ui.py", line 267, in run_iotop return curses.wrapper(run_iotop_window, options) File "/usr/lib64/python2.5/curses/wrapper.py", line 44, in wrapper return func(stdscr, *args, **kwds) File "//usr/lib64/python2.5/site-packages/iotop/ui.py", line 261, in run_iotop_window ui.run() File "//usr/lib64/python2.5/site-packages/iotop/ui.py", line 112, in run self.process_list.duration) File "//usr/lib64/python2.5/site-packages/iotop/ui.py", line 248, in refresh_display self.win.addstr(i + 2, 0, lines[i].encode('utf-8')) _curses.error: addstr() returned ERR win:(49, 133) i:46 line:20653 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % sh -c failcom=\'exit 1\'; \\\nfor f in x $MAKEFLAGS; do \\\n case $f in \\\n
This also happened here with iotop-0.3.1 while compiling dev-libs/redland-1.0.9 $ iotop Traceback (most recent call last): File "/usr/bin/iotop", line 16, in <module> main() File "/usr/lib/python2.6/site-packages/iotop/ui.py", line 365, in main main_loop() File "/usr/lib/python2.6/site-packages/iotop/ui.py", line 355, in <lambda> main_loop = lambda: run_iotop(options) File "/usr/lib/python2.6/site-packages/iotop/ui.py", line 271, in run_iotop return curses.wrapper(run_iotop_window, options) File "/usr/lib/python2.6/curses/wrapper.py", line 44, in wrapper return func(stdscr, *args, **kwds) File "/usr/lib/python2.6/site-packages/iotop/ui.py", line 265, in run_iotop_window ui.run() File "/usr/lib/python2.6/site-packages/iotop/ui.py", line 110, in run self.process_list.duration) File "/usr/lib/python2.6/site-packages/iotop/ui.py", line 252, in refresh_display self.win.addstr(i + 2, 0, lines[i].encode('utf-8')) _curses.error: addstr() returned ERR win:(34, 117) i:30 line:25829 be/7 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % sh -c failcom=\'exit 1\'; \\\nfor f in x $MAKEFLAGS; do \\\n
I tried compiling fftw and DirectFB with iotop-0.4 and it worked without any issues.
these versions are gone from tree. current 0.4{,.1} isn't affected.