I'm working snmpd on the gentoo router box to moniter it bandwidth, CPU and etc. however I found the simple snmpd.conf will crash for when it being query. This system is router with 6 NIC, 2 is not connected. And according to my log it was Reproducible: Always Steps to Reproduce: 1. emerge snmpd 2. configure with snmpconf -g basic_setup (Just simple configure, enable TCP router ...) 3. Start snmpd it will start and Just after you query it with snmpwalk, it will take 100% CPU on a never ending loop. Actual Results: Process will take almost 100% CPU on a never ending loop. Expected Results: Run as normal. May 6 16:03:19 ocerouter snmpd[6872]: No link... May 6 16:03:19 ocerouter snmpd[6872]: trace: May 6 16:03:19 ocerouter snmpd[6872]: Interface_Scan_Init(): mibII/interfaces.c, 1717: May 6 16:03:19 ocerouter snmpd[6872]: mibII/interfaces: May 6 16:03:19 ocerouter snmpd[6872]: * see: known interfaces: May 6 16:03:19 ocerouter snmpd[6872]: lo May 6 16:03:19 ocerouter snmpd[6872]: eth May 6 16:03:19 ocerouter snmpd[6872]: eth May 6 16:03:19 ocerouter snmpd[6872]: eth May 6 16:03:19 ocerouter snmpd[6872]: eth May 6 16:03:19 ocerouter snmpd[6872]: eth May 6 16:03:19 ocerouter snmpd[6872]: eth May 6 16:03:19 ocerouter snmpd[6872]: eth May 6 16:03:19 ocerouter snmpd[6872]: eth May 6 16:03:19 ocerouter snmpd[6872]: eth May 6 16:03:19 ocerouter snmpd[6872]: May 6 16:03:19 ocerouter snmpd[6872]: trace: May 6 16:03:19 ocerouter snmpd[6872]: Interface_Scan_Init(): mibII/interfaces.c, 1485: May 6 16:03:19 ocerouter snmpd[6872]: mibII/interfaces: May 6 16:03:19 ocerouter snmpd[6872]: using linux 2.2 kernel /proc/net/dev May 6 16:03:19 ocerouter snmpd[6872]: trace: May 6 16:03:19 ocerouter snmpd[6872]: netsnmp_arch_interface_get_if_speed(): if-mib/data_access/interface_linux.c, 434: May 6 16:03:19 ocerouter snmpd[6872]: mibII/interfaces: May 6 16:03:19 ocerouter snmpd[6872]: No link... May 6 16:03:19 ocerouter snmpd[6872]: trace: May 6 16:03:19 ocerouter snmpd[6872]: netsnmp_arch_interface_get_if_speed(): if-mib/data_access/interface_linux.c, 434: May 6 16:03:19 ocerouter snmpd[6872]: mibII/interfaces: May 6 16:03:19 ocerouter snmpd[6872]: No link... May 6 16:03:19 ocerouter snmpd[6872]: trace: May 6 16:03:19 ocerouter snmpd[6872]: Interface_Scan_Init(): mibII/interfaces.c, 1717: (Just this log to the Start part... they are filling my debug files...) Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r4 i686) ================================================================= System uname: 2.6.11-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Apr 30 2005, 20:27:08)] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe -falign-functions=64 -mmmx -msse -msse2" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe -falign-functions=64 -mmmx -msse -msse2" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg candy ccache distlocks fixpackages sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.gentoo.gr.jp/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage" SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage" USE="x86 acl acpi alsa apm avi bash-completion berkdb bitmap-fonts bzlib caps ccache crypt dio doc emboss encode foomaticdb gd gdbm gif gpm imlib jpeg ldap libg++ libwww lm_sensors mad mikmod motif mp3 mpeg mysql mysqli ncurses nls nptl oggvorbis opengl oss pam pdflib perl png posix python quicktime readline sdl snmp sockets socks5 spell ssl svga tcpd threads truetype truetype-fonts type1-fonts xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
This only happen if Query or run by client with snmpwalk.
I can't replicate this. Given that we have revved a number of times and that using kernel 2.2 is not encouraged, I'm going to close this. Please feel free to reopen if the problem is still there once all your ebuilds have been udpated.