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)
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
