To All, I'm having a problem with ntop 2.1.2 segfaulting on a Linux machine (ntop 2.1.2 built from source, kernel 2.2.12, glibc 2.1.2, egcs 1.1.2/2.91.66, libpcap 0.7.1, 64 megs ram, single proc PII 300, 2 3com 3c59x cards, monitoring pub/private network, 1.5 Mbps T1, 40 workstations on internal network, redhat 6.1). This generally happens within a few minutes to a few hours, but in some cases I've been able to run for as long as a few days. This is a very lightly loaded system with little else running (secondary dns, pptp server). I too appear to be having the free of null pointer issue. I tried a recent ntop snapshot, but after a few days it became a runaway process and eventually pushed the load on the machine to nearly 3. I've been able to make use of numerous other apps that make use of libpcap (darkstat, iptraf, tcpdump) over extended periods without incident.
The options "./configure --disable-plugins --disable-ssl" were used The debug shows the following: Sep 9 23:17:00 grover ntop[14124]: Initializing IP services... Sep 9 23:17:00 grover ntop[14124]: Initializing GDBM... Sep 9 23:17:00 grover ntop[14125]: Bye bye: I'm becoming a daemon... Sep 9 23:17:00 grover ntop[14125]: Initializing network devices... Sep 9 23:17:00 grover ntop[14125]: ntop v.2.1.2 MT [i686-pc-linux-gnu] (09/09/02 11:11:29 PM build) Sep 9 23:17:00 grover ntop[14125]: Listening on [eth1] Sep 9 23:17:00 grover ntop[14125]: Copyright 1998-2002 by Luca Deri <[EMAIL PROTECTED]> Sep 9 23:17:00 grover ntop[14125]: Get the freshest ntop from http://www.ntop.org/ Sep 9 23:17:00 grover ntop[14125]: Initializing... Sep 9 23:17:00 grover ntop[14125]: Truncated network size to 1024 hosts (real netmask 255.255.0.0) Sep 9 23:17:00 grover ntop[14125]: Loading plugins (if any)... Sep 9 23:17:00 grover ntop[14125]: WARNING: Unable to find the plugins/ directory. Sep 9 23:17:00 grover ntop[14125]: WARNING: Discarded network 10.1.0.0/16: this is the local network. Sep 9 23:17:00 grover ntop[14125]: Resetting traffic statistics... Sep 9 23:17:01 grover ntop[14125]: Started thread (1026) for network packet analyser. Sep 9 23:17:01 grover ntop[14125]: Started thread (2051) for idle hosts detection. Sep 9 23:17:01 grover ntop[14125]: Started thread (3076) for DNS address resolution. Sep 9 23:17:01 grover ntop[14125]: Started thread (4101) for address purge. Sep 9 23:17:01 grover ntop[14125]: Initializing plugins (if any)... Sep 9 23:17:01 grover ntop[14125]: Waiting for HTTP connections on port 1865... Sep 9 23:17:01 grover ntop[14125]: Started thread (5126) for web server. Sep 9 23:17:01 grover ntop[14125]: Sniffying... Sep 9 23:17:01 grover ntop[14125]: Started thread (6151) for network packet sniffing on eth1. Sep 9 23:17:05 grover ntop[14132]: Extending hash size [newSize=512][deviceId=0] Sep 9 23:29:26 grover ntop[14132]: ntop caught signal 11 Sep 9 23:29:26 grover ntop[14132]: *****ntop error: Signal(11) Sep 9 23:29:26 grover ntop[14132]: backtrace is: Sep 9 23:29:26 grover ntop[14132]: 1. /lib/libc.so.6(sigaction+0x268) [0x403f8408] Sep 9 23:29:26 grover ntop[14132]: 2. /usr/local/lib/libntop-2.1.so.2(_checkSessionIdx+0x1d8) [0x40160598] Sep 9 23:29:26 grover ntop[14132]: 3. /usr/local/lib/libntop-2.1.so.2(scanTimedoutTCPSessions+0x26c1) [0x401631f1] Sep 9 23:29:26 grover ntop[14132]: 4. /usr/local/lib/libntop-2.1.so.2(handleTCPSession+0x48) [0x40164338] Sep 9 23:29:26 grover ntop[14132]: 5. /usr/local/lib/libntop-2.1.so.2(updateHostName+0x103e) [0x40158b0e] Sep 9 23:29:26 grover ntop[14132]: 6. /usr/local/lib/libntop-2.1.so.2(processPacket+0x1b1a) [0x4015c672] Sep 9 23:29:26 grover ntop[14132]: 7. /usr/local/lib/libntop-2.1.so.2(pcap_read+0x1ca) [0x4016c35e] Sep 9 23:29:26 grover ntop[14132]: 8. /usr/local/lib/libntop-2.1.so.2(pcap_read+0x11) [0x4016c1a5] Sep 9 23:29:26 grover ntop[14132]: 9. /usr/local/lib/libntop-2.1.so.2(pcap_dispatch+0x1f) [0x4016d0af] Sep 9 23:29:26 grover ntop[14132]: 10. /usr/local/lib/libntop-2.1.so.2(pcapDispatch+0x145) [0x40155291] Sep 9 23:29:26 grover ntop[14132]: 11. /lib/libpthread.so.0(pthread_detach+0x492) [0x403a4eca] Sep 9 23:29:26 grover ntop[14132]: 12. /lib/libc.so.6(__clone+0x3a) [0x4048a39a] Sep 9 23:29:26 grover ntop[14132]: Cleaning up... Sep 9 23:29:26 grover ntop[14132]: Waiting until threads terminate... Sep 9 23:29:29 grover ntop[14132]: Freeing hash host instances... (1 device(s) to save) Sep 9 23:29:30 grover ntop[14131]: Terminating Web connections... Sep 9 23:29:30 grover ntop[14132]: WARNING: free of NULL pointer @ hash.c:272 -Vig _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://lists.ntop.org/mailman/listinfo/ntop
