Luca,
Thanks for the fixes and sorry it's taken so long to report back on them.
I updated to 2001-08-30, but am still having problems. I've done less
debugging this time, but here is the output from gdb:
# gdb /usr/local/bin/ntop
GNU gdb 19990928
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) run -S1 -i eth0,eth1 -q -P /var/log/ntop -t5 -u ntop
Starting program: /usr/local/bin/ntop -S1 -i eth0,eth1 -q -P /var/log/ntop
-t5 -u ntop
Wait please: ntop is coming up...
02/Sep/2001:20:36:56 Initializing IP services...
02/Sep/2001:20:36:56 [main.c:410] SSL is present but https is disabled: use
-W <https port> for enab
ling it
02/Sep/2001:20:36:56 [initialize.c:397] Initializing SSL...
02/Sep/2001:20:36:56 [initialize.c:430] Initializing GDBM...
02/Sep/2001:20:36:56 [initialize.c:628] Initializing network devices...
02/Sep/2001:20:36:56 [main.c:423] ntop v.2.0.0 MT (SSL) [i686-pc-linux]
(08/30/01 12:39:41 PM build)
02/Sep/2001:20:36:56 [main.c:443] Listening on [eth0,eth1]
02/Sep/2001:20:36:56 [main.c:444] Copyright 1998-2001 by Luca Deri
<[EMAIL PROTECTED]>
02/Sep/2001:20:36:56 [main.c:445] Get the freshest ntop from
http://www.ntop.org/
02/Sep/2001:20:36:56 [main.c:446] Initialising...
02/Sep/2001:20:36:56 [initialize.c:988] Truncated network size to 1024 hosts
(real netmask 255.255.0
.0)
02/Sep/2001:20:36:56 [initialize.c:988] Truncated network size to 1024 hosts
(real netmask 255.255.0
.0)
02/Sep/2001:20:36:56 [plugin.c:317] Loading plugins (if any)...
02/Sep/2001:20:36:56 [plugin.c:335] Searching plugins in
/usr/local/lib/ntop/plugins
02/Sep/2001:20:36:56 [icmpPlugin.c:584] Welcome to icmpWatchPlugin. (C) 1999
by Luca Deri.
02/Sep/2001:20:36:56 [lastSeenPlugin.c:414] Welcome to LastSeenWatchPlugin.
(C) 1999 by Andrea Maran
goni.
02/Sep/2001:20:36:56 [nfsPlugin.c:342] Welcome to nfsWatchPlugin. (C) 1999
by Luca Deri.
02/Sep/2001:20:36:56 [rmonPlugin.c:169] Welcome to ntopRmon. (C) 2000 by
Luca Deri.
02/Sep/2001:20:36:56 [rmonPlugin.c:171] WARNING: plugin disabled [missing
NET-SNMP]
02/Sep/2001:20:36:56 [wapPlugin.c:304] Welcome to WAPPlugin. (C) 2000 by
Luca Deri.
02/Sep/2001:20:36:56 [plugin.c:189] WARNING: unable to load plugin
'/usr/local/lib/ntop/plugins/libp
ep.so'
[/usr/local/lib/ntop/plugins/libpep.so: undefined symbol: Perl_hv_undef]
02/Sep/2001:20:36:56 [initialize.c:345] Resetting traffic statistics...
[New Thread 32166 (manager thread)]
[New Thread 32165 (initial thread)]
[New Thread 32167]
02/Sep/2001:20:36:57 [initialize.c:537] Started thread (1026) for network
packet analyser.
[New Thread 32168]
02/Sep/2001:20:36:57 [initialize.c:544] Started thread (2051) for host
traffic statistics.
[New Thread 32169]
02/Sep/2001:20:36:57 [initialize.c:552] Started thread (3076) for throughput
update.
[New Thread 32170]
02/Sep/2001:20:36:57 [initialize.c:560] Started thread (4101) for idle hosts
detection.
[New Thread 32171]
02/Sep/2001:20:36:57 [initialize.c:564] Started thread (5126) for idle TCP
sessions detection.
[New Thread 32172]
02/Sep/2001:20:36:57 [initialize.c:587] Started thread (6151) for DNS
address resolution.
02/Sep/2001:20:36:57 [plugin.c:404] Initialising plugins (if any)...
02/Sep/2001:20:36:57 [webInterface.c:949] Waiting for HTTP connections on
port 3000...
02/Sep/2001:20:36:57 [hash.c:1106] Purging Idle Hosts... (ignoreIdleTime=0,
actDevice=0)
02/Sep/2001:20:36:57 [hash.c:1156] Purging completed (0 sec/0 hosts
deleted).
[New Thread 32173]
02/Sep/2001:20:36:57 [main.c:505] Sniffying...
[New Thread 32174]
02/Sep/2001:20:36:57 [initialize.c:1141] Started thread (8201) for network
packet sniffing on eth0.
[New Thread 32175]
02/Sep/2001:20:36:57 [initialize.c:1141] Started thread (9226) for network
packet sniffing on eth1.
*02/Sep/2001:20:36:57 [hash.c:183] Extending hash: [old=32, new=48]
02/Sep/2001:20:36:57 [pbuf.c:3317] Host 00:00:3C:04:23:72 has a wrong
netmask
02/Sep/2001:20:36:57 [hash.c:183] Extending hash: [old=48, new=72]
*02/Sep/2001:20:36:58 [hash.c:183] Extending hash: [old=72, new=108]
02/Sep/2001:20:36:58 [hash.c:186] Shrinking hash: [old=108, new=108]
02/Sep/2001:20:36:58 [pbuf.c:188] Two MAC addresses found for the same IP
address x.y.2.251: [00:
30:19:D8:B2:44/00:00:0C:07:AC:13] (spoofing detected?)
02/Sep/2001:20:36:58 [hash.c:183] Extending hash: [old=108, new=162]
02/Sep/2001:20:36:58 [hash.c:186] Shrinking hash: [old=162, new=162]
02/Sep/2001:20:36:58 [address.c:1383] Two MAC addresses found for the same
IP address x.y.16.127:
[00:00:3C:04:23:72/00:00:3C:04:23:72] (spoofing detected?)
02/Sep/2001:20:36:58 [pbuf.c:3317] Host 00:00:3C:04:23:72 has a wrong
netmask
02/Sep/2001:20:36:58 [pbuf.c:3317] Host 00:00:3C:04:58:91 has a wrong
netmask
**02/Sep/2001:20:37:00 [hash.c:183] Extending hash: [old=162, new=242]
02/Sep/2001:20:37:00 [hash.c:186] Shrinking hash: [old=242, new=242]
*[Switching to Thread 32172]
Cannot access memory at address 0x6e616373.
(gdb) bt
#0 0x4000a65c in _dl_debug_state () from /lib/ld-linux.so.2
#1 0x4000a365 in _dl_catch_error () from /lib/ld-linux.so.2
#2 0x404ec7a0 in _dl_open () from /lib/libc.so.6
#3 0x404d0c49 in __nss_configure_lookup () from /lib/libc.so.6
#4 0x4000a365 in _dl_catch_error () from /lib/ld-linux.so.2
#5 0x404d0c01 in __nss_configure_lookup () from /lib/libc.so.6
#6 0x404d0fe8 in __nss_configure_lookup () from /lib/libc.so.6
#7 0x404d0af1 in __nss_next () from /lib/libc.so.6
#8 0x404d2ad3 in gethostbyaddr_r () from /lib/libc.so.6
#9 0x404d2888 in gethostbyaddr () from /lib/libc.so.6
#10 0x401cf632 in resolveAddress (symAddr=0x832f488 "*172.19.84.15*",
hostAddr=0x825147c,
keepAddressNumeric=0) at address.c:228
#11 0x401cfba1 in dequeueAddress (notUsed=0x0) at address.c:471
#12 0x40189c9f in pthread_start_thread () from /lib/libpthread.so.0
(gdb) l
67
68 /* That's the meat */
69 int main(int argc, char *argv[]) {
70 int pflag, i;
71 #ifdef WIN32
72 int optind=0;
73 #else
74 int userId=0, groupId=0;
75 #endif
76 int op, mergeInterfaces=1;
It ran for only two seconds before the crash. I set my ulimit -c to
unlimited, but I'm still not getting cores. If I leave off the "-S1", it
runs well past the 2 seconds.
Here are the current sizes of the .db files:
-rw-r--r-- 1 root root 12288 Aug 30 20:19 LsWatch.db
-rw-r--r-- 1 root root 185485 Sep 2 22:09 dnsCache.db
-rw-r--r-- 1 root root 3394845 Aug 31 20:18 hostsInfo.db
-rw-r--r-- 1 root root 12288 Sep 2 22:08 logger.db
-rw-r--r-- 1 ntop ntop 460189 Sep 2 22:08 ntop.access.log
-rw-r--r-- 1 root root 12421 Aug 30 20:19 ntop_pw.db
It looks like A. Pfaller's updates have really shrunk the hostsInfo.db file
as that used to be about 20MB.
Thanks again!
Owen
-----Original Message-----
From: Luca Deri [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 10:13 AM
To: [EMAIL PROTECTED]
Subject: Re: [Ntop] ntop -S1 crash problem
Hi Owen,
please resync ntop: I added a few fixes and I hope the problem is solved
by now.
You have no core because since a while Linux does not make cores
anymore. For instance (under tcsh):
deri@tar 201> limit
cputime unlimited
filesize unlimited
datasize unlimited
stacksize 8192 kbytes
coredumpsize 0 kbytes
memoryuse unlimited
descriptors 1024
memorylocked unlimited
maxproc 256
openfiles 1024
deri@tar 202> limit coredumpsize unlimited
deri@tar 203> limit
cputime unlimited
filesize unlimited
datasize unlimited
stacksize 8192 kbytes
coredumpsize unlimited
memoryuse unlimited
descriptors 1024
memorylocked unlimited
maxproc 256
openfiles 1024
Now if your start ntop from this shell ntop will generate a core.
All the .db files need to be optimised. A. Pfaller did a great job with
hostsInfo.db recently.
Cheers, Luca
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop