To get anything meaningful from: (gdb) list
You may have to first switch to the appropriate thread via (gdb) thread # To get anything meaningful from (gdb) print You have to tell it what to print - based on looking at the source... It looks like it's dying on this line: if(gdbm_store(myGlobals.gdbm_file, key_data, data_data, GDBM_REPLACE) != 0) so it would be instructional to see the values of the variables (you may have to use the info thread then then thread # and info stack then frame # commands to get gdb pointing right). What version of gdbm is this using? Also, delete the .db files and let ntop recreate them (you'll need to create the password db too) - I've occasionally had problems with older versions of .db files causing problems (and you don't tell us if you're upgrading from a much older version)... -----Burton -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of patrick wong Sent: Tuesday, May 21, 2002 5:41 PM To: [EMAIL PROTECTED] Subject: RE: [Ntop] Ntop is segmentation faulting and was working for many weeks without issue Here is what I get when I run gdb: [root@cr562558-a /root]# gdb /usr/local/bin/ntop GNU gdb 5.0rh-5 Red Hat Linux 7.1 Copyright 2001 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 "i386-redhat-linux"... (gdb) -u root -i eth2 -K Undefined command: "-u". Try "help". (gdb) set args -u root -i eth2 -K (gdb) run Starting program: /usr/local/bin/ntop -u root -i eth2 -K [New Thread 1024 (LWP 14696)] list Wait please: ntop is coming up... 21/May/2002 17:38:04 Initializing IP services... SSL is present but https is disabled: use -W <https port> for enabling it 21/May/2002 17:38:04 Initializing GDBM... 21/May/2002 17:38:04 Initializing network devices... 21/May! /2002 17:38:04 ntop v.2.0.99 MT (SSL) [i586-pc-linux-gnu] (05/21/02 04:24:17 PM build) 21/May/2002 17:38:04 Listening on [eth2] 21/May/2002 17:38:04 Copyright 1998-2002 by Luca Deri <[EMAIL PROTECTED]> 21/May/2002 17:38:04 Get the freshest ntop from http://www.ntop.org/ 21/May/2002 17:38:04 Initializing... 21/May/2002 17:38:04 Loading plugins (if any)... 21/May/2002 17:38:04 Searching plugins in /usr/local/lib/ntop/plugins 21/May/2002 17:38:07 Welcome to icmpWatchPlugin. (C) 1999 by Luca Deri. 21/May/2002 17:38:10 Welcome to LastSeenWatchPlugin. (C) 1999 by Andrea Marangoni. 21/May/2002 17:38:13 Welcome to nfsWatchPlugin. (C) 1999 by Luca Deri. 21/May/2002 17:38:16 Welcome to NetFlow. (C) 2002 by Luca Deri. 21/May/2002 17:38:19 Welcome to PDAPlugin. (C) 2001-2002 by L.Deri and W.Brock 21/May/2002 17:38:23 Welcome to sFlowPlugin. (C) 2002 by Luca Deri. 21/May/2002 17! :38:26 Resetting traffic statistics... [New Thread 2049 (LWP 14697)] Delayed SIGSTOP caught for LWP 14697. [New Thread 1026 (LWP 14698)] Delayed SIGSTOP caught for LWP 14698. 21/May/2002 17:38:30 Started thread (1026) for network packet analyser. [New Thread 2051 (LWP 14699)] Delayed SIGSTOP caught for LWP 14699. 21/May/2002 17:38:31 Started thread (2051) for idle hosts detection. [New Thread 3076 (LWP 14700)] Delayed SIGSTOP caught for LWP 14700. 21/May/2002 17:38:31 Started thread (3076) for DNS address resolution. [New Thread 4101 (LWP 14701)] Delayed SIGSTOP caught for LWP 14701. 21/May/2002 17:38:31 Started thread (4101) for address purge. 21/May/2002 17:38:31 Initializing plugins (if any)... 21/May/2002 17:38:31 NetFlow export disabled 21/May/2002 17:38:31 Waiting for HTTP connections on port 3000... [New Thread 5126 (LWP 14702)] Delayed SIGSTOP caught for LWP 14702. 21/May/2002 17:38:32 Started thread (5126) ! for web server. 21/May/2002 17:38:32 Sniffying... [New Thread 6151 (LWP 14703)] Delayed SIGSTOP caught for LWP 14703. 21/May/2002 17:38:32 Started thread (6151) for network packet sniffing on eth2. 21/May/2002 17:38:33 Extending hash size [newSize=512][deviceId=0] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 3076 (LWP 14700)] 0x404d3137 in get_elem () from /usr/lib/libgdbm.so.2 (gdb) list 636 /* ************************************ */ 637 638 /* That's the meat */ 639 #ifdef WIN32 640 int ntop_main(int argc, char *argv[]) { 641 #else 642 int main(int argc, char *argv[]) { 643 #endif 644 int i, userSpecified; 645 char ifStr[196] = {0}; (gdb) info stack #0 0x404d3137 in get_elem () from /usr/lib/libgdbm.so.2 #1 0x404d2c88 in _gdbm_alloc () from /usr/lib/libgdbm.so.2 #2 0x404d18c6 in gdbm_store () from /usr/lib/libgdbm.so.2 #3 0x4027a573 in resolveAddress (hostAddr=0xbf3ffaf0, keepAddressNumeri! c=0, actualDeviceId=0) at address.c:316 #4 0x4027a8c7 in dequeueAddress (notUsed=0x0) at address.c:480 #5 0x40224078 in pthread_start_thread_event (arg=0xbf3ffc00) at manager.c:262 (gdb) print The history is empty. (gdb) list 646 time_t lastTime; 647 648 /* 649 * Initialize all global run-time parameters to reasonable values 650 */ 651 initNtopGlobals(argc, argv); 652 653 /* 654 * Parse command line options to the application via standard system calls 655 */ (gdb) >From: "Burton M. Strauss III" >To: >CC: >Subject: RE: [Ntop] Ntop is segmentation faulting and was working for many weeks without issue >Date: Fri, 17 May 2002 14:47:03 -0500 > >Read the instructions at http://snapshot.ntop.org > >Basically you need to look at the info stack and print commands > >-----Burton > > >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of patrick >wong >Sent: Friday, May 17, 2002 1:52 PM >To: [EMAIL PROTECTED] >Subject: [Ntop] Ntop is segmentation faulting and was working for many weeks >without issue > > > >Hello, my version of Ntop has been working well for many weeks. However, >starting today is has been segmentation faulting. Can someone shed a little >light on the subject? I plan to run gdb on the problem. However, I am >currently unfamiliar with using gdb and would appreciate any help in the >matter. > >Info: >NTop version: ntop v.2.0.99 MT >Compiled from source >OS: Red Hat Linux 7.1 2.96-79 Linux version 2.4.2-2 >gcc version 2.96 20000731 >glibc version 2.2.2 >133 MHz & 128Mb RAM >3 Ethernet cards >Monitoring 10Mbps for Internet (800 machines & 500 users) > > > >[root@cr562558-a libpng-1.2.1]# /usr/local/bin/ntop -u ntop -i eth2 >Wait please: ntop is coming up... >16/May/2002 15:34:45 Initializing IP services... >SSL is present but https is disabled: use -W for enabling it >16/May/2002 15:34:45 Initializing GDBM... >16/May/2002 15:34:45 Initializing network devices... >16/May/2002 15:34:45 ntop v.2.0.99 MT (SSL) [i586-pc-linux-gnu] (05/16/02 >02:17:27 PM build) >16/May/2002 15:34:45 Listening on [eth2] >16/May/2002 15:34:45 Copyright 1998-2002 by Luca Deri >16/May/2002 15:34:45 Get the freshest ntop from http://www.ntop.org/ >16/May/2002 15:34:45 Initializing... >16/May/2002 15:34:45 Loading plugins (if any)... >16/May/2002 15:34:45 Searching plugins in /usr/local/lib/ntop/plugins >16/May/2002 15:34:45 Welcome to icmpWatchPlugin. (C) 1999 by Luca Deri. >16/May/2002 15:34:45 Welcome to LastSeenWatchPlugin. (C) 1999 by Andrea >Marangoni. >16/May/2002 15:34:46 Welcome to nfsWatchPlugin. (C) 1999 by Luca Deri. >16/May/2002 15:34:46 Welcome to NetFlow. (C) 2002 by Luca Deri. >16/May/2002 15:34:46 Welcome to PDAPlugin. (C) 2001-2002 by L.Deri and >W.Brock >16/May/2002 15:34:46 Welcome to sFlowPlugin. (C) 2002 by Luca Deri. >16/May/2002 15:34:47 Resetting traffic statistics... >16/May/2002 15:34:49 Started thread (1026) for network packet analyser. >16/May/2002 15:34:49 Started thread (2051) for idle hosts detection. >16/May/2002 15:34:49 Started! thread (3076) for DNS address resolution. >16/May/2002 15:34:49 Started thread (4101) for address purge. >16/May/2002 15:34:49 Initializing plugins (if any)... >16/May/2002 15:34:49 NetFlow export disabled >16/May/2002 15:34:49 Waiting for HTTP connections on port 3000... >16/May/2002 15:34:49 Started thread (5126) for web server. >16/May/2002 15:34:49 Sniffying... >16/May/2002 15:34:49 Started thread (6151) for network packet sniffing on >eth2. >16/May/2002 15:34:50 Extending hash size [newSize=512][deviceId=0] >16/May/2002 15:35:10 Extending hash size [newSize=1024][deviceId=0] >16/May/2002 15:36:09 Extending hash size [newSize=2048][deviceId=0] >Segmentation fault > > > > > > >Get your FREE download of MSN Explorer at http://explorer.msn.com. >_______________________________________________ Ntop mailing list >[EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop > Join the world�s largest e-mail service with MSN Hotmail. Click Here _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop
