[Pkg-xfce-devel] Bug#417903: xfce4-weather-plugin: spontaneous CPU consumption after a while

Vincent van Leeuwen debianbug at vinz.nl
Thu Apr 5 12:11:11 UTC 2007


Package: xfce4-weather-plugin
Version: 0.5.99.1-2
Severity: important

xfce4-weather-plugin seems to work perfectly. However, after some time (several
days to a week?) it starts to use all available CPU time. I've strace'd the
process, and it seems to be stuck in this loop without waiting for anything:

gettimeofday({1175770003, 410099}, NULL) = 0
poll([{fd=3, events=POLLIN}], 1, 0)     = 0
recv(6, 0xbfd41a7c, 1023, 0)            = -1 EAGAIN (Resource temporarily unavailable)
recv(7, 0xbfd41a7c, 1023, 0)            = -1 EAGAIN (Resource temporarily unavailable)
recv(9, 0xbfd41a7c, 1023, 0)            = -1 EAGAIN (Resource temporarily unavailable)
recv(11, 0xbfd41a7c, 1023, 0)           = -1 EAGAIN (Resource temporarily unavailable)
ioctl(3, FIONREAD, [0])                 = 0
gettimeofday({1175770003, 410255}, NULL) = 0
poll([{fd=3, events=POLLIN}], 1, 0)     = 0
recv(6, 0xbfd41a7c, 1023, 0)            = -1 EAGAIN (Resource temporarily unavailable)
recv(7, 0xbfd41a7c, 1023, 0)            = -1 EAGAIN (Resource temporarily unavailable)
recv(9, 0xbfd41a7c, 1023, 0)            = -1 EAGAIN (Resource temporarily unavailable)
recv(11, 0xbfd41a7c, 1023, 0)           = -1 EAGAIN (Resource temporarily unavailable)
ioctl(3, FIONREAD, [0])                 = 0

Portion of the output of lsof -n -p <pid>:
xfce4-wea 21722 vinz    0r   CHR        1,3               1061 /dev/null
xfce4-wea 21722 vinz    1w   REG        3,3 495649157  4177982 /home/vinz/.xsession-errors
xfce4-wea 21722 vinz    2w   REG        3,3 495649157  4177982 /home/vinz/.xsession-errors
xfce4-wea 21722 vinz    3u  unix 0xe0157e80             237046 socket
xfce4-wea 21722 vinz    4r  FIFO        0,5             236926 pipe
xfce4-wea 21722 vinz    5w  FIFO        0,5             236926 pipe
xfce4-wea 21722 vinz    6u  IPv4     264526                TCP 10.43.0.34:53922->63.111.69.54:www (ESTABLISHED)
xfce4-wea 21722 vinz    7u  IPv4     265263                TCP 10.43.0.34:60234->63.111.69.54:www (ESTABLISHED)
xfce4-wea 21722 vinz    8w   REG        3,3      4891  5918514 /home/vinz/.cache/xfce4/weather-plugin/weather_NLXX0013_m.xml
xfce4-wea 21722 vinz    9u  IPv4     265589                TCP 10.43.0.34:43677->63.111.69.54:www (ESTABLISHED)
xfce4-wea 21722 vinz   10w  FIFO        0,5             236919 pipe
xfce4-wea 21722 vinz   11u  IPv4     265853                TCP 10.43.0.34:52219->63.111.69.54:www (ESTABLISHED)
xfce4-wea 21722 vinz   12w   REG        3,3      4891  5918514 /home/vinz/.cache/xfce4/weather-plugin/weather_NLXX0013_m.xml

Output of top:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
21722 vinz      25   0 16248  10m 7976 R 95.7  1.1   5932:42 xfce4-weather-p
 

The only way I've found to stop this is removing the pluging and re-adding and
re-configuring it. It then works normally for another couple of days, and
starts eating CPU again. Changing options or looking at the weather forecast
doesn't seem to influence anything (everything looks normal BTW).

I only noticed this because I also use a CPU monitor plugin. The system
responds normally, so without looking at monitoring tools the problem may
remain unnoticed.

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.1
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages xfce4-weather-plugin depends on:
ii  libatk1.0-0               1.12.4-3       The ATK accessibility toolkit
ii  libc6                     2.3.6.ds1-13   GNU C Library: Shared libraries
ii  libcairo2                 1.2.4-4        The Cairo 2D vector graphics libra
ii  libfontconfig1            2.4.2-1.2      generic font configuration library
ii  libfreetype6              2.2.1-5        FreeType 2 font engine, shared lib
ii  libglib2.0-0              2.12.4-2       The GLib library of C routines
ii  libgtk2.0-0               2.8.20-7       The GTK+ graphical user interface 
ii  libpango1.0-0             1.14.8-5       Layout and rendering of internatio
ii  libpng12-0                1.2.15~beta5-1 PNG library - runtime
ii  libx11-6                  2:1.0.3-6      X11 client-side library
ii  libxcursor1               1.1.7-4        X cursor management library
ii  libxext6                  1:1.0.1-2      X11 miscellaneous extension librar
ii  libxfce4util4             4.3.99.2-1     Utility functions library for Xfce
ii  libxfcegui4-4             4.3.99.2-1     Basic GUI C functions for Xfce4
ii  libxfixes3                1:4.0.1-5      X11 miscellaneous 'fixes' extensio
ii  libxi6                    1:1.0.1-4      X11 Input extension library
ii  libxinerama1              1:1.0.1-4.1    X11 Xinerama extension library
ii  libxml2                   2.6.27.dfsg-1  GNOME XML library
ii  libxrandr2                2:1.1.0.2-5    X11 RandR extension library
ii  libxrender1               1:0.9.1-3      X Rendering Extension client libra
ii  xfce4-panel               4.3.99.2-2     The Xfce4 desktop environment pane
ii  zlib1g                    1:1.2.3-13     compression library - runtime

xfce4-weather-plugin recommends no packages.

-- no debconf information




More information about the Pkg-xfce-devel mailing list