Bug 147543 - net-analyzer/net-snmp-5.3.0.1 crashes at start
Bug#: 147543 Product:  Gentoo Linux Version: 2006.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: netmon@gentoo.org Reported By: Jimmy.Jazz@gmx.net
Component: Applications
URL: 
Summary: net-analyzer/net-snmp-5.3.0.1 crashes at start
Keywords:  
Status Whiteboard: 
Opened: 2006-09-14 02:34 0000
Description:   Opened: 2006-09-14 02:34 0000
Hello,

net-snmp doesn't work on my box. See the attachments.

# equery l net-snmp
[ Searching for package 'net-snmp' in all categories among: ]
 * installed packages
[I--] [ ~] net-analyzer/net-snmp-5.3.0.1 (0)

# emerge --info
Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1/vanilla,
glibc-2.4-r3, 2.6.18-rc7 i686)
=================================================================
System uname: 2.6.18-rc7 i686 AMD Athlon(tm)
Gentoo Base System version 1.12.4
Last Sync: Wed, 13 Sep 2006 17:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r4
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17.50.0.3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/mozilla-thunderbird/components/myspell
/usr/share/X11/xkb /usr/share/applications /var/qmail/alias /var/qmail/control
/var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler
/etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo
/etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox
sfperms strict userfetch userpriv"
GENTOO_MIRRORS="..."
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="fr"
MAKEOPTS="-j2"
PKGDIR="/usr/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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/overlay /usr/portage/local/layman/sunrise
/usr/portage/local/layman/voip /usr/portage/local/layman/vps
/usr/portage/local/layman/liquidx"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 aac acl acpi alsa apache2 avahi bash-completion beagle
berkdb bitmap-fonts bzip2 cairo cdr cli crypt cups curl dbus dga dlloader dri
dts dvd dvdr dvdread eds elibc_glibc emboss encode esd exif fam firefox flac gd
gdbm gif gmp gnome gnutls gphoto2 gpm gstreamer hal howl ieee1394 imlib
input_devices_evdev input_devices_joystick input_devices_keyboard
input_devices_mouse isdnlog java jpeg kernel_linux lcms ldap libg++ linguas_fr
mad maildir mikmod mmap mmx mng mp3 mpeg ncurses nls nptl nptlonly ogg opengl
pam pcre pdf perl png posix ppds pppd python qt3 qt4 readline real reflection
rtc sdl session sox speex spell spl sse ssl svg sysvipc tcpd theora threads
tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU
userlocales v4l v4l2 video_cards_radeon video_cards_v4l vorbis win32codecs x264
xml xorg xpm xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS

Jj

------- Comment #1 From Jimmy.Jazz@gmx.net 2006-09-14 02:38:05 0000 -------
Created an attachment (id=96942) [details]
snmpd debug

snmpd -d -D -f -L -C returns a segmentation fault

------- Comment #2 From Jimmy.Jazz@gmx.net 2006-09-14 02:39:11 0000 -------
Created an attachment (id=96943) [details]
snmpd strace

strace snmpd -d -D -f -L -C

------- Comment #3 From Jimmy.Jazz@gmx.net 2006-09-18 12:45:10 0000 -------
(In reply to comment #0)

Finally, i found the reason of the crashes. We need to lower the gcc
optimization to -02. This does certainly mean a stack overflow or something in
the code. That's bad.

Jj

------- Comment #4 From Markus Ullmann 2006-09-19 08:39:23 0000 -------
+1 for you then, will correct the ebuild when I get back home

------- Comment #5 From Markus Ullmann 2006-09-21 08:33:11 0000 -------
Fixed in-CVS-tree now ;) Thanks for tracking this down

------- Comment #6 From Jimmy.Jazz@gmx.net 2006-09-24 02:29:17 0000 -------
(In reply to comment #5)
> Fixed in-CVS-tree now ;) Thanks for tracking this down
> 

Thx :)

Jj