Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136983 - net-analyzer/ntop hangs
Summary: net-analyzer/ntop hangs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-16 05:51 UTC by Vieri
Modified: 2008-04-28 18:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ntop-3.2-r1.patch (ntop-3.2-r1.patch,378 bytes, patch)
2006-10-05 03:37 UTC, Cédric Krier
Details | Diff
ntop-init.patch (ntop-init.patch,736 bytes, patch)
2006-10-05 03:39 UTC, Cédric Krier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vieri 2006-06-16 05:51:23 UTC
As suggested by a forum post:
http://forums.gentoo.org/viewtopic-t-402101-highlight-ntop+hangs.html
it seems that adding the following example to
/etc/conf.d/ntop: 
NTOP_OPTS="-u ntop -P /var/lib/ntop --disable-schedyield --http-server 3000 --https-server 3001 --interface br0" 
(or similar)
could be useful especially since --disable-schedyield may avoid hanging ntop.

This "enhancement" could be added to the ebuild.
Comment 1 Cédric Krier gentoo-dev 2006-10-05 03:34:58 UTC
I can reproduce the bug.
Can you put the output of emerge --info
Comment 2 Cédric Krier gentoo-dev 2006-10-05 03:36:00 UTC
(In reply to comment #1)
I can't reproduce the bug (typing error)
Comment 3 Cédric Krier gentoo-dev 2006-10-05 03:37:47 UTC
Created attachment 98831 [details, diff]
ntop-3.2-r1.patch

missing use flag
Comment 4 Cédric Krier gentoo-dev 2006-10-05 03:39:05 UTC
Created attachment 98832 [details, diff]
ntop-init.patch

use pid in init script and check for password
Comment 5 Vieri 2006-10-05 08:48:29 UTC
(In reply to comment #1)
> I can't reproduce the bug.
> Can you put the output of emerge --info

sure.

gw1 ~ # emerge --info
Portage 2.1-r1 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.16-gentoo-r7 i686)
=================================================================
System uname: 2.6.16-gentoo-r7 i686 Pentium II (Deschutes)
Gentoo Base System version 1.6.14
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
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.15.92.0.2-r10
sys-devel/gcc-config: 1.3.12-r3
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/lib/X11/xkb /usr/lib/fax /usr/share/config /var/qmail/alias /var/qmail/control /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -march=i686"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo http://linuv.uv.es/mirror/gentoo/"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 acl acpi aim alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts bzip2 calendar cdb cgi cli crypt ctype cups curl curlwrappers dba dbase dbm dlloader dri eds emboss encode exif expat extensions fam fbcon flash flatfile foomaticdb fortran ftp gd gdbm geoip gif ginac gmp gpm gstreamer gtk gtk2 hal howl iconv imap imlib ipv6 isdnlog jabber java javascript jikes jpeg kerberos ldap libg++ libwww mad maildir mailwrapper mbox mcal mikmod milter mime ming mng motif mp3 mpeg mpi msnt mssql mysql mysqli ncurses nls ntlm odbc ogg oggvorbis opengl oracle oss pam pcntl pcre pda pdflib perl php png posix postgres pppd python qt qt3 qt4 quicktime radius readline reflection ruby samba sasl sdl session sharedext simplexml slang smb soap sockets source speex spell spl ssl symlink szip tcpd threads tiff tokenizer truetype truetype-fonts type1-fonts unicode vhosts vorbis winbind xml xml2 xmlrpc xmms xorg xpm xv zip zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Cédric Krier gentoo-dev 2006-10-05 11:05:57 UTC
And can you put the output of:
equery uses sys-libs/glibc
Comment 7 Vieri 2006-10-06 09:41:50 UTC
(In reply to comment #6)
> And can you put the output of:
> equery uses sys-libs/glibc

gw1 ~ # equery uses sys-libs/glibc
[ Searching for packages matching sys-libs/glibc... ]
[ Colour Code : set unset ]
[ Legend    : Left column  (U) - USE flags from make.conf              ]
[           : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for sys-libs/glibc-2.3.5-r2 ]
 U I
 + + nls              : <unknown>
 - - pic              : Build Position Independent Code.  Do not utilize this flag unless you know what you're doing.
 - - build            : !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used for creating build images and the first half of bootstrapping.
 - - nptl             : Enable support for Native POSIX Threads Library, the new threading module (requires linux-2.6 or better usually)
 - - nptlonly         : Disables building the linuxthreads fallback in glibc ebuilds that support building both linuxthreads and nptl.
 - - erandom          : Enable erandom/frandom support in glibc for ssp
 - - hardened         : activate default security enhancements for toolchain (gcc, glibc, binutils)
 - - userlocales      : build only the locales specified in /etc/locales.build
 - - multilib         : On 64bit systems, if you want to be able to compile 32bit and 64bit binaries
 - - selinux          : !!internal use only!! Security Enhanced Linux support, this must be set by the selinux profile or breakage will occur
 - - glibc-compat20   : Enable the glibc-compat addon.
 - - glibc-omitfp     : Configure glibc with --enable-omitfp which lets the build system determine when it is safe to use -fomit-frame-pointer
 - - linuxthreads-tls : Configure the linuxthreads glibc with --with-__thread if supported by your system.  --with-tls is always enabled if supported and is NOT controlled by this switch.  So the glibc built will always support TLS binaries.  This toggle chooses whether or not glibc itself uses TLS.  If you're concerned about backwards compatibility with old binaries, leave this off.
 - - profile          : Adds profile support to builds of packages (will likely vary from ebuild to ebuild in support)
Comment 8 Markus Ullmann (RETIRED) gentoo-dev 2007-03-27 20:56:59 UTC
added in -r3
Comment 9 Kundai Midzi 2008-04-28 18:21:10 UTC
Small typo in ntop-confd with user argument passing in suggestion.

--- ntop-confd  2008-04-28 11:18:29.498108477 -0700
+++ ntop-confd.orig     2008-04-28 11:18:16.425251097 -0700
@@ -4,6 +4,6 @@
 #NTOP_OPTS="--http-server 3000 --https-server 0 --interface eth0"

 # suggestions from bug #136983 (use it in case you experience ntop hangs)
-#NTOP_OPTS="-u ntop -P /var/lib/ntop --disable-schedyield --http-server 3000 --https-server 3001"
+#NTOP_OPTS="u ntop -P /var/lib/ntop --disable-schedyield --http-server 3000 --https-server 3001"

 NTOP_OPTS="-u ntop -P /var/lib/ntop