No, I don't think you failed English - even if you Aussies are upside down...
It's dying in gdbm and they must have an exit() call. So gdb is back to the "beginning" when you get control - that's why it's listing main(). What platform are you running on? I did find this report of a bug in gdbm w/ certain compile options, under RedHat 6.2, 7.1 and 7.2 systems: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=63980 (My RedHat 7.2 system (Tigger) has gdbm-1.8.0-10). There is a -15 available through rawhide, at ftp://speakeasy.rpmfind.net/linux/rawhide/1.0/i386/RedHat/RPMS/gdbm-1.8.0-15.i38 6.rpm I had to recreate the databases, however (just delete all the .db 's and follow the instructions in docs/1STRUN.txt) -----Burton -----Original Message----- From: Stanley Hopcroft [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 2:34 AM To: Burton M. Strauss III Subject: Re: [Ntop] Problem with 2.0.99 (3rd of May snapshot). Attrocious PR. Will send more .. Dear Sir, The gdb ntop died the first time within 10 minutes of starting. However, I must have failed English comprehension because while I attempted to follow the very clear instructions at http://snapshot.ntop.org/faq.php#80, this is all that turned up This GDB was configured as "i386-unknown-freebsd"... (gdb) set args -K -c -u nobody -P /var/log/ntop -S 0 -i fxp0 net 192.168.102.0 mask 255.255.255.0 (gdb) r Starting program: /usr/local/ntop/bin/ntop -K -c -u nobody -P /var/log/ntop -S 0 -i fxp0 net 192.168.102.0 mask 255.255.255.0 Wait please: ntop is coming up... 07/May/2002 16:39:45 Initializing IP services... SSL is present but https is disabled: use -W <https port> for enabling it 07/May/2002 16:39:45 Initializing GDBM... 07/May/2002 16:39:45 Initializing network devices... 07/May/2002 16:39:45 ntop v.2.0.99 MT (SSL) [i386-unknown-freebsd4.5] (05/03/02 05:34:02 PM build) 07/May/2002 16:39:45 Listening on [fxp0] 07/May/2002 16:39:45 Copyright 1998-2002 by Luca Deri <[EMAIL PROTECTED]> 07/May/2002 16:39:45 Get the freshest ntop from http://www.ntop.org/ 07/May/2002 16:39:45 Initializing... 07/May/2002 16:39:45 Loading plugins (if any)... 07/May/2002 16:39:45 Searching plugins in /usr/local/ntop-03-05-2002/lib/ntop/plugins 07/May/2002 16:39:45 Welcome to icmpWatchPlugin. (C) 1999 by Luca Deri. 07/May/2002 16:39:45 Welcome to LastSeenWatchPlugin. (C) 1999 by Andrea Marangoni. 07/May/2002 16:39:45 Welcome to NetFlow. (C) 2002 by Luca Deri. 07/May/2002 16:39:45 Welcome to nfsWatchPlugin. (C) 1999 by Luca Deri. 07/May/2002 16:39:45 Welcome to PDAPlugin. (C) 2001-2002 by L.Deri and W.Brock 07/May/2002 16:39:45 Welcome to sFlowPlugin. (C) 2002 by Luca Deri. 07/May/2002 16:39:45 Resetting traffic statistics... 07/May/2002 16:39:46 Started thread (137016320) for network packet analyser. 07/May/2002 16:39:46 Started thread (137018368) for idle hosts detection. 07/May/2002 16:39:46 Started thread (138129408) for DNS address resolution. 07/May/2002 16:39:46 Started thread (138130432) for address purge. 07/May/2002 16:39:46 Initializing plugins (if any)... 07/May/2002 16:39:46 NetFlow export disabled 07/May/2002 16:39:46 Waiting for HTTP connections on port 3000... 07/May/2002 16:39:46 Sniffying... 07/May/2002 16:39:46 Started thread (138132480) for network packet sniffing on fxp0. 07/May/2002 16:39:46 Started thread (138131456) for web server. 07/May/2002 16:39:59 Extending hash size [newSize=512][deviceId=0] gdbm fatal: read error Program exited with code 0377. (gdb) list 629 } 630 } 631 632 return(userSpecified); 633 } 634 635 /* ************************************ */ 636 637 /* That's the meat */ 638 int main(int argc, char *argv[]) { (gdb) info stack No stack. (gdb) bt No stack. (gdb) The CFLAGS are -g -O2 -pipe. Could it be that the -O2 is taking away the symbols ? I am repeating the gdb run. I am running under user nobody (yes a dumb idea) and the Ntop database files in /var/log/ntop (in this case) are world readable but __not__ world writable. tssyd# ll ../ntop/ total 2285 -rw-rw-r-- 1 root wheel 24576 May 6 23:59 LsWatch.db -rw-r--r-- 1 root wheel 24576 May 7 17:01 addressCache.db -rw-rw-r-- 1 root wheel 1564939 May 7 17:25 dnsCache.db -rw-r--r-- 1 root wheel 24576 May 6 23:59 hostsInfo.db -rw-rw-rw- 1 root wheel 602953 Mar 4 23:50 ntop.access.log -rw-rw-r-- 1 root wheel 24748 Mar 9 21:39 ntop_pw.db -rw-r--r-- 1 root wheel 24838 May 3 19:08 prefsCache.db -rw-r--r-- 1 root wheel 26936 May 7 17:26 serialCache.db tssyd# ll .. | grep ntop drwxr-xr-x 2 root wheel 512 May 7 17:01 ntop tssyd# This sounds a pretty stupid idea of mine. Your further advice is welcome. Thank you very much for your assistance. Yours sincerely. -- Other required stuff _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop
