Summary: | ntop-3.2 segmentation fault | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Stefan Behte (RETIRED) <craig> |
Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED UPSTREAM | ||
Severity: | major | CC: | mal, netmon |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Stefan Behte (RETIRED)
2006-01-11 23:05:29 UTC
Hello! I've installed ntop on our proxy server/router today; I configured it, but it wouldn't start with the init.d script. So I tried it by hand and get this: ntop --http-server 3000 --interface eth0,eth1,eth2,eth3 -u ntop -P /var/lib/ntop Wed Jan 11 15:23:29 2006 NOTE: Interface merge enabled by default Wed Jan 11 15:23:29 2006 Initializing gdbm databases Wed Jan 11 15:23:29 2006 ntop v.3.2 SourceForge .tgz Wed Jan 11 15:23:29 2006 Configured on Jan 10 2006 15:09:37, built on Jan 10 2006 15:10:44. Wed Jan 11 15:23:29 2006 Copyright 1998-2005 by Luca Deri <deri@ntop.org> Wed Jan 11 15:23:29 2006 Get the freshest ntop from http://www.ntop.org/ Wed Jan 11 15:23:29 2006 NOTE: ntop is running from 'ntop' Wed Jan 11 15:23:29 2006 NOTE: (but see warning on man page for the --instance parameter) Wed Jan 11 15:23:29 2006 NOTE: ntop libraries are in '/usr/lib' Wed Jan 11 15:23:29 2006 Initializing ntop Wed Jan 11 15:23:29 2006 **WARNING** Truncated network size (device eth0) to 1024 hosts (real netmask 255.255.192.0) Wed Jan 11 15:23:29 2006 Checking eth0 for additional devices Wed Jan 11 15:23:29 2006 Resetting traffic statistics for device eth0 Wed Jan 11 15:23:29 2006 DLT: Device 0 [eth0] is 1, mtu 1514, header 14 Wed Jan 11 15:23:29 2006 **WARNING** Truncated network size (device eth1) to 1024 hosts (real netmask 255.255.192.0) Wed Jan 11 15:23:29 2006 Checking eth1 for additional devices Wed Jan 11 15:23:29 2006 Resetting traffic statistics for device eth1 Wed Jan 11 15:23:29 2006 DLT: Device 1 [eth1] is 1, mtu 1514, header 14 Wed Jan 11 15:23:29 2006 **WARNING** Truncated network size (device eth2) to 1024 hosts (real netmask 255.255.192.0) Wed Jan 11 15:23:29 2006 Checking eth2 for additional devices Wed Jan 11 15:23:29 2006 Resetting traffic statistics for device eth2 Wed Jan 11 15:23:29 2006 DLT: Device 2 [eth2] is 1, mtu 1514, header 14 Wed Jan 11 15:23:29 2006 **WARNING** Truncated network size (device eth3) to 1024 hosts (real netmask 255.255.192.0) Wed Jan 11 15:23:29 2006 Checking eth3 for additional devices Wed Jan 11 15:23:29 2006 Resetting traffic statistics for device eth3 Wed Jan 11 15:23:29 2006 DLT: Device 3 [eth3] is 1, mtu 1514, header 14 Wed Jan 11 15:23:29 2006 Initializing gdbm databases Wed Jan 11 15:23:29 2006 VENDOR: Loading MAC address table. Wed Jan 11 15:23:29 2006 VENDOR: Checking for MAC address table file Wed Jan 11 15:23:29 2006 **WARNING** VENDOR: Unable to open file 'specialMAC.txt' Wed Jan 11 15:23:29 2006 VENDOR: ntop continues ok Wed Jan 11 15:23:29 2006 VENDOR: Checking for MAC address table file Wed Jan 11 15:23:29 2006 **WARNING** VENDOR: Unable to open file 'oui.txt' Wed Jan 11 15:23:29 2006 VENDOR: ntop continues ok Wed Jan 11 15:23:29 2006 Fingeprint: Loading signature file. Wed Jan 11 15:23:29 2006 ASN: Checking for Autonomous System Number table file Wed Jan 11 15:23:29 2006 ASN: Loading file '°' Segmentation fault Then I did rm -f /var/lib/ntop/* (my guess was that maybe something was wrong there). But now I get this: Wed Jan 11 15:26:52 2006 NOTE: Interface merge enabled by default Wed Jan 11 15:26:52 2006 Initializing gdbm databases Wed Jan 11 15:26:52 2006 ntop v.3.2 SourceForge .tgz Wed Jan 11 15:26:52 2006 Configured on Jan 10 2006 15:09:37, built on Jan 10 2006 15:10:44. Wed Jan 11 15:26:52 2006 Copyright 1998-2005 by Luca Deri <deri@ntop.org> Wed Jan 11 15:26:52 2006 Get the freshest ntop from http://www.ntop.org/ Wed Jan 11 15:26:52 2006 NOTE: ntop is running from 'ntop' Wed Jan 11 15:26:52 2006 NOTE: (but see warning on man page for the --instance parameter) Wed Jan 11 15:26:52 2006 NOTE: ntop libraries are in '/usr/lib' Wed Jan 11 15:26:52 2006 Initializing ntop Wed Jan 11 15:26:52 2006 **WARNING** Truncated network size (device eth0) to 1024 hosts (real netmask 255.255.192.0) Wed Jan 11 15:26:52 2006 Checking eth0 for additional devices Wed Jan 11 15:26:52 2006 Resetting traffic statistics for device eth0 Wed Jan 11 15:26:52 2006 DLT: Device 0 [eth0] is 1, mtu 1514, header 14 Wed Jan 11 15:26:52 2006 Initializing gdbm databases Wed Jan 11 15:26:52 2006 VENDOR: Loading MAC address table. Wed Jan 11 15:26:52 2006 VENDOR: Checking for MAC address table file Wed Jan 11 15:26:52 2006 **WARNING** VENDOR: Unable to open file 'specialMAC.txt' Wed Jan 11 15:26:52 2006 VENDOR: ntop continues ok Wed Jan 11 15:26:52 2006 VENDOR: Checking for MAC address table file Wed Jan 11 15:26:52 2006 **WARNING** VENDOR: Unable to open file 'oui.txt' Wed Jan 11 15:26:52 2006 VENDOR: ntop continues ok Wed Jan 11 15:26:52 2006 Fingeprint: Loading signature file. Wed Jan 11 15:26:52 2006 ASN: Checking for Autonomous System Number table file Wed Jan 11 15:26:52 2006 ASN: Loading file '' Segmentation fault Then I did an strace and got this: mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40021000 read(10, "# /etc/hosts: This file describ"..., 4096) = 1074 close(10) = 0 munmap(0x40021000, 4096) = 0 mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x41ae2000 mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x41f8a000 time(NULL) = 1136989696 time(NULL) = 1136989696 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=755, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=755, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=755, ...}) = 0 write(1, "Wed Jan 11 15:28:16 2006 ASN: C"..., 80Wed Jan 11 15:28:16 2006 ASN: Checking for Autonomous System Number table file ) = 80 time(NULL) = 1136989696 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=755, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=755, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=755, ...}) = 0 write(1, "Wed Jan 11 15:28:16 2006 ASN: L"..., 47Wed Jan 11 15:28:16 2006 ASN: Loading file '' ) = 47 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ Hmm, strange. I don't know what to do; and I'm not the only person that got this, see: http://forums.gentoo.org/viewtopic-t-421868-highlight-.html emerge --info, please... Last time I tried w/ 3.1, it *only* worked w/ -O0. Sorry, I forgot it: Portage 2.0.53 (default-linux/x86/no-nptl/2.4, gcc-3.3.6, glibc-2.3.5-r2, 2.4.28-gentoo-r5 i686) ================================================================= System uname: 2.4.28-gentoo-r5 i686 AMD Athlon(TM) XP 2200+ Gentoo Base System version 1.6.13 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.4.22-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow apache2 bitmap-fonts bzip2 crypt curl eds emboss expat gd gdbm geoip gif gmp idn ipv6 java jpeg ldap libwww maildir mhash mmx mtrr mysql ncurses nls odbc ogg pam pcre perl png readline sasl snmp sse ssl svga tcpd tiff truetype truetype-fonts type1-fonts vorbis zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY I tried: CFLAGS="-O0" emerge '=ntop-3.2' this results in: Thu Jan 12 10:59:25 2006 NOTE: Interface merge enabled by default Thu Jan 12 10:59:25 2006 Initializing gdbm databases Thu Jan 12 10:59:25 2006 ntop v.3.2 SourceForge .tgz Thu Jan 12 10:59:25 2006 Configured on Jan 12 2006 10:49:33, built on Jan 12 2006 10:50:19. Thu Jan 12 10:59:25 2006 Copyright 1998-2005 by Luca Deri <deri@ntop.org> Thu Jan 12 10:59:25 2006 Get the freshest ntop from http://www.ntop.org/ Thu Jan 12 10:59:25 2006 NOTE: ntop is running from 'ntop' Thu Jan 12 10:59:25 2006 NOTE: (but see warning on man page for the --instance parameter) Thu Jan 12 10:59:25 2006 NOTE: ntop libraries are in '/usr/lib' Thu Jan 12 10:59:25 2006 Initializing ntop Thu Jan 12 10:59:25 2006 **WARNING** Truncated network size (device eth0) to 1024 hosts (real netmask 255.255.192.0) Thu Jan 12 10:59:25 2006 Checking eth0 for additional devices Thu Jan 12 10:59:25 2006 Resetting traffic statistics for device eth0 Thu Jan 12 10:59:25 2006 DLT: Device 0 [eth0] is 1, mtu 1514, header 14 Thu Jan 12 10:59:25 2006 **WARNING** Truncated network size (device eth1) to 1024 hosts (real netmask 255.255.192.0) Thu Jan 12 10:59:25 2006 Checking eth1 for additional devices Thu Jan 12 10:59:25 2006 Resetting traffic statistics for device eth1 Thu Jan 12 10:59:25 2006 DLT: Device 1 [eth1] is 1, mtu 1514, header 14 Thu Jan 12 10:59:25 2006 **WARNING** Truncated network size (device eth2) to 1024 hosts (real netmask 255.255.192.0) Thu Jan 12 10:59:25 2006 Checking eth2 for additional devices Thu Jan 12 10:59:25 2006 Resetting traffic statistics for device eth2 Thu Jan 12 10:59:25 2006 DLT: Device 2 [eth2] is 1, mtu 1514, header 14 Thu Jan 12 10:59:25 2006 **WARNING** Truncated network size (device eth3) to 1024 hosts (real netmask 255.255.192.0) Thu Jan 12 10:59:25 2006 Checking eth3 for additional devices Thu Jan 12 10:59:25 2006 Resetting traffic statistics for device eth3 Thu Jan 12 10:59:25 2006 DLT: Device 3 [eth3] is 1, mtu 1514, header 14 Thu Jan 12 10:59:25 2006 Initializing gdbm databases Thu Jan 12 10:59:25 2006 VENDOR: Loading MAC address table. Thu Jan 12 10:59:25 2006 VENDOR: Checking for MAC address table file Thu Jan 12 10:59:25 2006 **WARNING** VENDOR: Unable to open file 'specialMAC.txt' Thu Jan 12 10:59:25 2006 VENDOR: ntop continues ok Thu Jan 12 10:59:25 2006 VENDOR: Checking for MAC address table file Thu Jan 12 10:59:25 2006 **WARNING** VENDOR: Unable to open file 'oui.txt' Thu Jan 12 10:59:25 2006 VENDOR: ntop continues ok Thu Jan 12 10:59:25 2006 Fingeprint: Loading signature file. Thu Jan 12 10:59:25 2006 ASN: Checking for Autonomous System Number table file Thu Jan 12 10:59:25 2006 ASN: Loading file ' Sorry, I forgot it: Portage 2.0.53 (default-linux/x86/no-nptl/2.4, gcc-3.3.6, glibc-2.3.5-r2, 2.4.28-gentoo-r5 i686) ================================================================= System uname: 2.4.28-gentoo-r5 i686 AMD Athlon(TM) XP 2200+ Gentoo Base System version 1.6.13 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.4.22-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow apache2 bitmap-fonts bzip2 crypt curl eds emboss expat gd gdbm geoip gif gmp idn ipv6 java jpeg ldap libwww maildir mhash mmx mtrr mysql ncurses nls odbc ogg pam pcre perl png readline sasl snmp sse ssl svga tcpd tiff truetype truetype-fonts type1-fonts vorbis zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY I tried: CFLAGS="-O0" emerge '=ntop-3.2' this results in: Thu Jan 12 10:59:25 2006 NOTE: Interface merge enabled by default Thu Jan 12 10:59:25 2006 Initializing gdbm databases Thu Jan 12 10:59:25 2006 ntop v.3.2 SourceForge .tgz Thu Jan 12 10:59:25 2006 Configured on Jan 12 2006 10:49:33, built on Jan 12 2006 10:50:19. Thu Jan 12 10:59:25 2006 Copyright 1998-2005 by Luca Deri <deri@ntop.org> Thu Jan 12 10:59:25 2006 Get the freshest ntop from http://www.ntop.org/ Thu Jan 12 10:59:25 2006 NOTE: ntop is running from 'ntop' Thu Jan 12 10:59:25 2006 NOTE: (but see warning on man page for the --instance parameter) Thu Jan 12 10:59:25 2006 NOTE: ntop libraries are in '/usr/lib' Thu Jan 12 10:59:25 2006 Initializing ntop Thu Jan 12 10:59:25 2006 **WARNING** Truncated network size (device eth0) to 1024 hosts (real netmask 255.255.192.0) Thu Jan 12 10:59:25 2006 Checking eth0 for additional devices Thu Jan 12 10:59:25 2006 Resetting traffic statistics for device eth0 Thu Jan 12 10:59:25 2006 DLT: Device 0 [eth0] is 1, mtu 1514, header 14 Thu Jan 12 10:59:25 2006 **WARNING** Truncated network size (device eth1) to 1024 hosts (real netmask 255.255.192.0) Thu Jan 12 10:59:25 2006 Checking eth1 for additional devices Thu Jan 12 10:59:25 2006 Resetting traffic statistics for device eth1 Thu Jan 12 10:59:25 2006 DLT: Device 1 [eth1] is 1, mtu 1514, header 14 Thu Jan 12 10:59:25 2006 **WARNING** Truncated network size (device eth2) to 1024 hosts (real netmask 255.255.192.0) Thu Jan 12 10:59:25 2006 Checking eth2 for additional devices Thu Jan 12 10:59:25 2006 Resetting traffic statistics for device eth2 Thu Jan 12 10:59:25 2006 DLT: Device 2 [eth2] is 1, mtu 1514, header 14 Thu Jan 12 10:59:25 2006 **WARNING** Truncated network size (device eth3) to 1024 hosts (real netmask 255.255.192.0) Thu Jan 12 10:59:25 2006 Checking eth3 for additional devices Thu Jan 12 10:59:25 2006 Resetting traffic statistics for device eth3 Thu Jan 12 10:59:25 2006 DLT: Device 3 [eth3] is 1, mtu 1514, header 14 Thu Jan 12 10:59:25 2006 Initializing gdbm databases Thu Jan 12 10:59:25 2006 VENDOR: Loading MAC address table. Thu Jan 12 10:59:25 2006 VENDOR: Checking for MAC address table file Thu Jan 12 10:59:25 2006 **WARNING** VENDOR: Unable to open file 'specialMAC.txt' Thu Jan 12 10:59:25 2006 VENDOR: ntop continues ok Thu Jan 12 10:59:25 2006 VENDOR: Checking for MAC address table file Thu Jan 12 10:59:25 2006 **WARNING** VENDOR: Unable to open file 'oui.txt' Thu Jan 12 10:59:25 2006 VENDOR: ntop continues ok Thu Jan 12 10:59:25 2006 Fingeprint: Loading signature file. Thu Jan 12 10:59:25 2006 ASN: Checking for Autonomous System Number table file Thu Jan 12 10:59:25 2006 ASN: Loading file 'ÿÿÿÿ' Segmentation fault :( Please, report this upstream (see the other bug). *** This bug has been marked as a duplicate of 84428 *** It's a different bug. Here ntop does not start at all, whereas at bug 84428, it crashes after 1 Minute. Well, that bug actually covers all sorts of segfaults, notice the comment I've made there. Please, report this at upstream dev list: http://www.ntop.org/support.html, it's been broken for ages and we can't fix this. Yea, ok. I did more testing and found out: the CVS version works for me! :) (In reply to comment #6) > Yea, ok. > I did more testing and found out: the CVS version works for me! :) Hmmm, then maybe ask them to do a new release as well. :-) I got the exact same thing, then I noticed that ntop isn't loading any of it's info files, ie. (from your log): **WARNING** VENDOR: Unable to open file 'oui.txt' Well, those files are in /etc/ntop but they're gzipped (.gz extension). So I gunzip'd them all and suddenly ntop works. It looks like ntop installs these as .gz, rather than the ebuild, so I guess it is an upstream problem. Hopefully this gives you a workaround. MAL, do you have USE="zlib" on? Something very odd had happened to my install. My USE flags are thus: [ebuild R ] net-analyzer/ntop-3.2 +ipv6 +nls -snmp +ssl +tcpd +zlib However, ntop was refusing to start when using HTTPS, quoting "unknown option: --https-server". I reemerged ntop and https worked, so I left it at that. Running ntop again manually now, I notice it uses the .gz files once again. It would appear that ntop must have somehow been rebuild without any of it's USE flags (at least -ssl and -zlib), but without renegerating the files in /etc/ntop ?! I certainly haven't modified the USE flags heavily on this system, so could a profile change have caused this? I was actually wondering if we have to gunzip files if USE="zlib" is not set, or perhaps make it non-optional. I have no idea why your USE flags were dropped in a previous install. |