<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>136983</bug_id>
          
          <creation_ts>2006-06-16 05:51 0000</creation_ts>
          <short_desc>net-analyzer/ntop hangs</short_desc>
          <delta_ts>2008-04-28 18:21:10 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>2006.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>rentorbuy@yahoo.com</reporter>
          <assigned_to>netmon@gentoo.org</assigned_to>
          <cc>cedk@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>rentorbuy@yahoo.com</who>
            <bug_when>2006-06-16 05:51:23 0000</bug_when>
            <thetext>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=&quot;-u ntop -P /var/lib/ntop --disable-schedyield --http-server 3000 --https-server 3001 --interface br0&quot; 
(or similar)
could be useful especially since --disable-schedyield may avoid hanging ntop.

This &quot;enhancement&quot; could be added to the ebuild.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cedk@gentoo.org</who>
            <bug_when>2006-10-05 03:34:58 0000</bug_when>
            <thetext>I can reproduce the bug.
Can you put the output of emerge --info</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cedk@gentoo.org</who>
            <bug_when>2006-10-05 03:36:00 0000</bug_when>
            <thetext>(In reply to comment #1)
I can&apos;t reproduce the bug (typing error)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cedk@gentoo.org</who>
            <bug_when>2006-10-05 03:37:47 0000</bug_when>
            <thetext>Created an attachment (id=98831)
ntop-3.2-r1.patch

missing use flag</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cedk@gentoo.org</who>
            <bug_when>2006-10-05 03:39:05 0000</bug_when>
            <thetext>Created an attachment (id=98832)
ntop-init.patch

use pid in init script and check for password</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rentorbuy@yahoo.com</who>
            <bug_when>2006-10-05 08:48:29 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; I can&apos;t reproduce the bug.
&gt; 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=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=i686&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/gconf /etc/terminfo&quot;
CXXFLAGS=&quot;-O2 -march=i686&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig distlocks metadata-transfer sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://ftp.du.se/pub/os/gentoo http://linuv.uv.es/mirror/gentoo/&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=&apos;/distfiles&apos; --exclude=&apos;/local&apos; --exclude=&apos;/packages&apos;&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cedk@gentoo.org</who>
            <bug_when>2006-10-05 11:05:57 0000</bug_when>
            <thetext>And can you put the output of:
equery uses sys-libs/glibc</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rentorbuy@yahoo.com</who>
            <bug_when>2006-10-06 09:41:50 0000</bug_when>
            <thetext>(In reply to comment #6)
&gt; And can you put the output of:
&gt; 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              : &lt;unknown&gt;
 - - pic              : Build Position Independent Code.  Do not utilize this flag unless you know what you&apos;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&apos;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)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jokey@gentoo.org</who>
            <bug_when>2007-03-27 20:56:59 0000</bug_when>
            <thetext>added in -r3</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kundai.midzi@gmail.com</who>
            <bug_when>2008-04-28 18:21:10 0000</bug_when>
            <thetext>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=&quot;--http-server 3000 --https-server 0 --interface eth0&quot;

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

 NTOP_OPTS=&quot;-u ntop -P /var/lib/ntop</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>98831</attachid>
            <date>2006-10-05 03:37 0000</date>
            <desc>ntop-3.2-r1.patch</desc>
            <filename>ntop-3.2-r1.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC91c3IvcG9ydGFnZS9uZXQtYW5hbHl6ZXIvbnRvcC9udG9wLTMuMi1yMS5lYnVpbGQJMjAw
Ni0wMi0xNiAwMTowNjoxOS4wMDAwMDAwMDAgKzAxMDAKKysrIG50b3AtMy4yLXIxLmVidWlsZAky
MDA2LTEwLTA1IDEyOjEwOjI0LjAwMDAwMDAwMCArMDIwMApAQCAtMTEsNyArMTEsNyBAQAogTElD
RU5TRT0iR1BMLTIiCiBTTE9UPSIwIgogS0VZV09SRFM9In5hbWQ2NCB+aHBwYSB+cHBjIH5wcGM2
NCB+c3BhcmMgfng4NiIKLUlVU0U9ImlwdjYgbmxzIHNubXAgc3NsIHRjcGQgemxpYiIKK0lVU0U9
ImlwdjYgbmxzIHNubXAgc3NsIHNzbHdhdGNoZG9nIHRjcGQgemxpYiIKIAogREVQRU5EPSJzeXMt
YXBwcy9nYXdrCiAJPj1zeXMtZGV2ZWwvbGlidG9vbC0xLjQK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>98832</attachid>
            <date>2006-10-05 03:39 0000</date>
            <desc>ntop-init.patch</desc>
            <filename>ntop-init.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC91c3IvcG9ydGFnZS9uZXQtYW5hbHl6ZXIvbnRvcC9maWxlcy9udG9wLWluaXQJMjAwMy0w
NS0wNCAxNjozMTozOS4wMDAwMDAwMDAgKzAyMDAKKysrIG50b3AtaW5pdAkyMDA2LTEwLTA1IDEy
OjMwOjEzLjAwMDAwMDAwMCArMDIwMApAQCAtNCw3ICs0LDE2IEBACiAgICAgICAgIG5lZWQgbmV0
CiB9CiAKK2NoZWNrY29uZmlnKCkgeworICAgICAgICBpZiBbICEgLWUgL3Zhci9saWIvbnRvcC9u
dG9wX3B3LmRiIF07IHRoZW4KKwkJZWVycm9yICJZb3UgbmVlZCB0byBzZXQgYSBwYXNzd29yZCBm
aXJzdCBieSBydW5uaW5nIgorCQllZXJyb3IgIm50b3AgLS1zZXQtYWRtaW4tcGFzc3dvcmQiCisJ
CXJldHVybiAxCisJZmkKK30KKwogc3RhcnQoKSB7CisJY2hlY2tjb25maWcgfHwgcmV0dXJuIDEK
IAllYmVnaW4gIlN0YXJ0aW5nIG50b3AiCiAJc3RhcnQtc3RvcC1kYWVtb24gLS1zdGFydCAtLXF1
aWV0IC0tZXhlYyAvdXNyL2Jpbi9udG9wIC0tIC1kIC1MICR7TlRPUF9PUFRTfSA+L2Rldi9udWxs
CiAJZWVuZCAkPwpAQCAtMTIsNiArMjEsNiBAQAogCiBzdG9wKCkgewogCWViZWdpbiAiU3RvcHBp
bmcgbnRvcCIKLQlzdGFydC1zdG9wLWRhZW1vbiAtLXN0b3AgLS1xdWlldCAtLXJldHJ5IDUgLS1l
eGVjIC91c3IvYmluL250b3AKKwlzdGFydC1zdG9wLWRhZW1vbiAtLXN0b3AgLS1xdWlldCAtLXJl
dHJ5IDUgLS1waWRmaWxlIC92YXIvbGliL250b3AvbnRvcC5waWQKIAllZW5kICQ/CiB9Cg==
</data>        

          </attachment>
    </bug>

</bugzilla>