as currently tested with: sys-power/apcupsd-3.12.4 sys-power/apcupsd-3.14.0 when starting apcupsd it takes up all cpu time... strace of the apcupsd process in this state: --8<-- ... 14:44:57.730269 time(NULL) = 1179837897 14:44:57.730495 time([1179837897]) = 1179837897 ... --8<-- it may have to do something with snmp because other apcupsd processes using usb are running fine. Reproducible: Always Steps to Reproduce: 1. emerge apcupsd (with snmp useflag enabled) 2. /etc/init.d/apcupsd 3. monitor apcupsd process fry ~ # emerge -pv apcupsd These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sys-power/apcupsd-3.14.0 USE="ncurses nls snmp -cgi -doc -gnome -threads -usb -vhosts" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB fry ~ # emerge --info Portage 2.1.2.7 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r5, 2.6.18-hardened i686) ================================================================= System uname: 2.6.18-hardened i686 Intel(R) Xeon(TM) CPU 2.40GHz Gentoo Base System release 1.12.9 Timestamp of tree: Mon, 21 May 2007 12:50:01 +0000 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.15-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" DISTDIR="/local/portage/distfiles" FEATURES="distlocks maketest metadata-transfer sandbox sfperms strict userpriv" GENTOO_MIRRORS="xxx" LANG="de_DE.UTF-8" LC_ALL="de_DE.UTF-8" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/local/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/local/portage/build" PORTDIR="/local/portage/tree" PORTDIR_OVERLAY="/local/portage/overlay" SYNC="rsync://gentoo.xxx/gentoo-portage" USE="acl bash-completion bzip2 caps crypt hardened ldap logrotate nls nptl nptlonly pam pic pie readline samba sse sse2 ssl unicode utf8 x86 zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Looks like an upstream bug to me. Could you test 3.14.2?
i tried it with the following packages, but still no improvement: [ebuild R ] net-analyzer/net-snmp-5.4.1-r1 USE="ssl -X -diskio -doc -elf -ipv6 -lm_sensors -mfd-rewrites -minimal -perl -python -rpm (-selinux) -sendmail -smux -tcpd" [ebuild R ] sys-power/apcupsd-3.14.2 USE="ncurses nls snmp usb -cgi -doc -gnome -vhosts # root 2449 95.2 0.0 4316 952 ? Rs 10:56 1:31 /sbin/apcupsd -f /etc/apcupsd/apcupsd.conf -P /var/run/apcupsd.pid # strace -p 2449 --8<-- [...] time(NULL) = 1196243851 time(NULL) = 1196243851 time(NULL) = 1196243852 time(NULL) = 1196243852 stat64("/var/log/apcupsd.events", {st_mode=S_IFREG|0666, st_size=1301, ...}) = 0 [...] --8<--
Taking over. Michael you let this package rot so much, since I need it, I'm going to take it over and take care. Please don't say I didn't give you enough notice, last year I already asked you this much and now I'm simply tired.
Please reopen if still a problem with 3.14.5 (and update the summary if it's the case to help me identify the bug). Although it's probably upstream, you might want to check the backtrace, look at http://www.gentoo.org/proj/en/qa/backtraces.xml for some information on how to do that.