Chris Picton has the same problem - when I was tracing it before Luca's patch, I found two distinct paths into getHostInfo(), which would come from different devices - I think that's the problem, but haven't had time to dig in to it.
-----Burton -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Switenky, Shawn Sent: Thursday, January 31, 2002 12:36 PM To: [EMAIL PROTECTED] Subject: [Ntop] Newly installed ntop not working... Thanks for your help, Burton. I grabbed the latest build and installed it. I have a very similar problem: [root@dhcp1 bin]# ./ntop -P /var/ntop Wait please: ntop is coming up... 31/Jan/2002 16:57:19 Initializing IP services... 31/Jan/2002 16:57:19 Initializing GDBM... 31/Jan/2002 16:57:19 Initializing network devices... 31/Jan/2002 16:57:19 ntop v.2.0.1 MT [i586-pc-linux-gnu] (01/31/02 03:52:49 PM build) 31/Jan/2002 16:57:19 Listening on [eth0] 31/Jan/2002 16:57:19 Copyright 1998-2002 by Luca Deri <[EMAIL PROTECTED]> 31/Jan/2002 16:57:19 Get the freshest ntop from http://www.ntop.org/ 31/Jan/2002 16:57:19 Initializing... 31/Jan/2002 16:57:19 Loading plugins (if any)... 31/Jan/2002 16:57:19 WARNING: Unable to find the plugins/ directory. 31/Jan/2002 16:57:19 WARNING: For security reasons it is STRONGLY recommended to 31/Jan/2002 16:57:19 WARNING: run ntop as unprivileged user by using the -u option! 31/Jan/2002 16:57:19 Resetting traffic statistics... 31/Jan/2002 16:57:21 Started thread (1026) for network packet analyser. 31/Jan/2002 16:57:21 Started thread (2051) for host traffic statistics. 31/Jan/2002 16:57:21 Started thread (3076) for throughput update. 31/Jan/2002 16:57:21 Started thread (4101) for DNS address resolution. 31/Jan/2002 16:57:21 Started thread (5126) for address purge. 31/Jan/2002 16:57:21 Initializing plugins (if any)... 31/Jan/2002 16:57:21 Waiting for HTTP connections on port 3000... 31/Jan/2002 16:57:21 Sniffying... 31/Jan/2002 16:57:21 Started thread (7176) for network packet sniffing on eth0. 31/Jan/2002 16:57:21 Extending hash: [old=32, new=48][devId=0] 31/Jan/2002 16:57:21 Extending hash: [old=48, new=72][devId=0] 31/Jan/2002 16:57:21 Extending hash: [old=72, new=108][devId=0] 31/Jan/2002 16:57:21 Extending hash: [old=108, new=162][devId=0] 31/Jan/2002 16:57:24 Extending hash: [old=162, new=242][devId=0] 31/Jan/2002 16:57:29 Extending hash: [old=242, new=362][devId=0] 31/Jan/2002 16:57:42 Extending hash: [old=362, new=542][devId=0] Segmentation fault Now I'm going to include the results of make install. I had some problems, and perhaps I have not built something that I need to make this work. [root@dhcp1 ntop]# make install Making install in . make[1]: Entering directory `/root/ntop/ntop-current/ntop' make[2]: Entering directory `/root/ntop/ntop-current/ntop' /bin/sh ./mkinstalldirs /usr/local/lib /bin/sh ./libtool --mode=install /usr/bin/install -c libntop.la /usr/local/lib/libntop.la /usr/bin/install -c .libs/libntop.lai /usr/local/lib/libntop.la /usr/bin/install -c .libs/libntop.a /usr/local/lib/libntop.a ranlib /usr/local/lib/libntop.a chmod 644 /usr/local/lib/libntop.a PATH="$PATH:/sbin" ldconfig -n /usr/local/lib ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- /bin/sh ./libtool --mode=install /usr/bin/install -c libntopreport.la /usr/local/lib/libntopreport.la /usr/bin/install -c .libs/libntopreport.lai /usr/local/lib/libntopreport.la /usr/bin/install -c .libs/libntopreport.a /usr/local/lib/libntopreport.a ranlib /usr/local/lib/libntopreport.a chmod 644 /usr/local/lib/libntopreport.a PATH="$PATH:/sbin" ldconfig -n /usr/local/lib ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- /bin/sh ./mkinstalldirs /usr/local/bin /bin/sh ./libtool --mode=install /usr/bin/install -c ntop /usr/local/bin/ntop /usr/bin/install -c ntop /usr/local/bin/ntop /bin/sh ./mkinstalldirs /usr/local/bin /usr/bin/install -c ntop-config /usr/local/bin/ntop-config make install-man1 install-man8 make[3]: Entering directory `/root/ntop/ntop-current/ntop' /bin/sh ./mkinstalldirs /usr/local/man/man1 /usr/bin/install -c -m 644 ./intop/intop.1 /usr/local/man/man1/intop/intop.1 /bin/sh ./mkinstalldirs /usr/local/man/man8 /usr/bin/install -c -m 644 ./ntop.8 /usr/local/man/man8/ntop.8 make[3]: Leaving directory `/root/ntop/ntop-current/ntop' make[2]: Leaving directory `/root/ntop/ntop-current/ntop' make[1]: Leaving directory `/root/ntop/ntop-current/ntop' Making install in plugins make[1]: Entering directory `/root/ntop/ntop-current/ntop/plugins' Making install in . make[2]: Entering directory `/root/ntop/ntop-current/ntop/plugins' cc -bundle -flat_namespace -undefined suppress -o .libs/libicmpPlugin.so icmpPlugin.o cc: suppress: No such file or directory make[2]: *** [.libs/libicmpPlugin.so] Error 1 make[2]: Leaving directory `/root/ntop/ntop-current/ntop/plugins' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/root/ntop/ntop-current/ntop/plugins' make: *** [install-recursive] Error 1 The .libs directory is in the plugins directory. But there is no file libicmpPlugin.so I'm running a Linux Mandrake release 7.1 (helium) Kernel 2.2.15-4mdk on an i586 P166. It's a simple little Dell Dimension desktop with one ethernet. Shawn Switenky Telesat -----Original Message----- Download and build the latest source. (Check the archives for the history of the "-M" bug) -----Burton -----Original Message----- From: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> [mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>]On Behalf Of Switenky, Shawn Sent: Wednesday, January 30, 2002 3:11 PM To: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Subject: [Ntop] Newly installed ntop not working... I'm having some grief getting ntop to work. I've installed it ok, I think. When I run it, I get the following... [root@dhcp1 <mailto:root@dhcp1> bin]# ./ntop Wait please: ntop is coming up... 30/Jan/2002 20:33:28 Initializing IP services... 30/Jan/2002 20:33:28 Initializing GDBM... 30/Jan/2002 20:33:28 Database '/usr/local/var/ntop/dnsCache.db' open failed: File open error 30/Jan/2002 20:33:28 Possible solution: please use '-P <directory>' So, so I point it to a directory that I think makes sense, and I get farther: [root@dhcp1 <mailto:root@dhcp1> bin]# ./ntop -P /usr/local/share Wait please: ntop is coming up... 30/Jan/2002 20:33:41 Initializing IP services... 30/Jan/2002 20:33:41 Initializing GDBM... 30/Jan/2002 20:33:42 Initializing network devices... 30/Jan/2002 20:33:42 ntop v.2.0.0 MT [i586-pc-linux-gnu] (01/30/02 07:30:43 PM build) 30/Jan/2002 20:33:42 Listening on [eth0] 30/Jan/2002 20:33:42 Copyright 1998-2001 by Luca Deri <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> 30/Jan/2002 20:33:42 Get the freshest ntop from <http://www.ntop.org/> 30/Jan/2002 20:33:42 Initializing... 30/Jan/2002 20:33:42 Loading plugins (if any)... 30/Jan/2002 20:33:42 WARNING: Unable to find the plugins/ directory. 30/Jan/2002 20:33:42 WARNING: For security reasons it is STRONGLY recommended to 30/Jan/2002 20:33:42 WARNING: run ntop as unprivileged user by using the -u option! 30/Jan/2002 20:33:42 Resetting traffic statistics... 30/Jan/2002 20:33:43 Started thread (1026) for network packet analyser. 30/Jan/2002 20:33:43 Started thread (2051) for host traffic statistics. 30/Jan/2002 20:33:43 Started thread (3076) for throughput update. 30/Jan/2002 20:33:43 Started thread (4101) for idle hosts detection. 30/Jan/2002 20:33:43 Started thread (5126) for idle TCP sessions detection. 30/Jan/2002 20:33:43 Started thread (6151) for DNS address resolution. 30/Jan/2002 20:33:43 Started thread (7176) for address purge. 30/Jan/2002 20:33:43 Initializing plugins (if any)... 30/Jan/2002 20:33:43 Waiting for HTTP connections on port 3000... 30/Jan/2002 20:33:43 Sniffying... 30/Jan/2002 20:33:43 Started thread (9226) for network packet sniffing on eth0. 30/Jan/2002 20:33:44 Extending hash: [old=32, new=48] 30/Jan/2002 20:33:44 Extending hash: [old=48, new=72] 30/Jan/2002 20:33:44 Extending hash: [old=72, new=108] 30/Jan/2002 20:33:44 Extending hash: [old=108, new=162] 30/Jan/2002 20:33:45 Extending hash: [old=162, new=242] 30/Jan/2002 20:33:50 Extending hash: [old=242, new=362] 30/Jan/2002 20:33:51 Extending TCP hash [new size: 64] 30/Jan/2002 20:34:01 Extending TCP hash [new size: 128] 30/Jan/2002 20:34:04 Extending hash: [old=362, new=542] 30/Jan/2002 20:34:32 Extending TCP hash [new size: 256] Segmentation fault [root@dhcp1 <mailto:root@dhcp1> bin]# In the time before the seg fault, I can browse the web page and see that it is gathering traffic. None of the graphic objects in the page display properly, but all the text and tables seem to present meaningful data. Does anyone know what I can do to resolve my seg fault problem or my graphic object problem? Shawn Switenky Telesat _______________________________________________ Ntop mailing list [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> <http://listmanager.unipi.it/mailman/listinfo/ntop> _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listmanager.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listmanager.unipi.it/mailman/listinfo/ntop
