| ï
That looks like myGlobals is corrupted... don't see how it
could be, but...
can you do this too
(gdb) print myGlobals
(gdb) print myGlobals.runningPref
(gdb) print *(myGlobals.runningPref)
-----Burton From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Didier Benza Sent: Wednesday, February 16, 2005 1:41 AM To: [email protected] Subject: Re: [Ntop] Ntop crahses at startup Here is what I obtained with gdb : [EMAIL PROTECTED] gdb /0/local/ntop/bin/ntop GNU gdb 6.2 Copyright 2004 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"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) R Starting program: /0/local/ntop/bin/ntop [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 22203)] Wed Feb 16 08:28:44 2005 Initializing gdbm databases Wed Feb 16 08:28:44 2005 ntop will be started as user nobody Wed Feb 16 08:28:44 2005 ntop v.3.1 ST Wed Feb 16 08:28:44 2005 Configured on Feb 15 2005 19:23:20, built on Feb 15 2005 19:24:22. Wed Feb 16 08:28:44 2005 Copyright 1998-2004 by Luca Deri <[EMAIL PROTECTED]> Wed Feb 16 08:28:44 2005 Get the freshest ntop from http://www.ntop.org/ Wed Feb 16 08:28:44 2005 Initializing ntop Wed Feb 16 08:28:44 2005 Checking eth0 for additional devices Wed Feb 16 08:28:44 2005 Resetting traffic statistics for device eth0 Wed Feb 16 08:28:44 2005 DLT: Device 0 [eth0] is 1, mtu 1514, header 14 Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 22203)] initNtop (devices=0x8059cc8 "eth0") at globals-core.c:602 602 if(myGlobals.runningPref.enableSessionHandling) (gdb) list 597 */ 598 if (myGlobals.capturePackets == FLAG_NTOPSTATE_RUN) { 599 initDevices(devices); 600 } 601 602 if(myGlobals.runningPref.enableSessionHandling) 603 initPassiveSessions(); 604 605 /* ********************************** */ 606 (gdb) info stack #0 initNtop (devices=0x8059cc8 "eth0") at globals-core.c:602 #1 0x0804b170 in main (argc=1, argv=0xbffffc64) at main.c:471 (gdb) bt full #0 initNtop (devices=0x8059cc8 "eth0") at globals-core.c:602 value = "[EMAIL PROTECTED] [EMAIL PROTECTED]@,ï022B\000\000\000" #1 0x0804b170 in main (argc=1, argv=0xbffffc64) at main.c:471 i = 1 rc = -1073742840 userSpecified = 0 ifStr = '\0' <repeats 195 times> lastTime = 1108538924 cmdLineBuffer = 0x0 readBuffer = 0x0 readBufferWork = 0x4075b6f0 "\221\004\b\020ii\r" fd = (FILE *) 0xd fileStat = {st_dev = 4612070762671544683, __pad1 = 58592, st_ino = 0, st_mode = 3221224176, st_nlink = 1073780477, st_uid = 1078345697, st_gid = 134517170, st_rdev = 4294967296, __pad2 = 32, st_size = 1078345880, st_blksize = 1078324804, st_blocks = 1078289364, st_atim = {tv_sec = 1077929808, tv_nsec = 24}, st_mtim = {tv_sec = 1081456236, tv_nsec = 1073831404}, st_ctim = {tv_sec = 1073832340, tv_nsec = 134516929}, __unused4 = 3221224400, __unused5 = 1073776358} effective_argc = 1 effective_argv = (char **) 0x8058ad8 (gdb) Thanks. Burton Strauss wrote:
-- Didier Benza [EMAIL PROTECTED] Tel : +33 492 38 7167 / Fax : +33 492 38 7602 INRIA 2004, Route des Lucioles, BP 93, 06902 Sophia Antipolis Cedex |
_______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop
