Dnia Åroda, 16 lutego 2005 14:34, Burton Strauss napisaÅ:
> That looks like myGlobals is corrupted... don't see how it could be, but...

Hi!

I'd like to mention that I had the same problem while starting ntop stable on 
Debian Woody, kernel 2.6.7, gcc-3.3.4.

Then I compiled the cvs (version 3.1.1). It starts and forks fine. The only 
problem I have is the 'Local Network Traffic Map', but I described it in my 
previous post.

Tom

>
> 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
>
>
> Hello, thanks for your answer.
>
> 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  <mailto:[EMAIL PROTECTED]> <[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:
>
> Not a freak'n clue.  In docs/FAQ - (source or off the Help menu of the GUI)
> are instructions on running under gdb to capture the failure point
> information.  Do not forget to post the bt full output.
>
> -----Burton
>
>   _____
>
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> Didier Benza Sent: Tuesday, February 15, 2005 10:19 AM
> To: [email protected]
> Subject: [Ntop] Ntop crahses at startup
>
>
> Hello,
>
>
> I have just installed ntop this morning and it worked all fine until I
> created a netflow interface using the web interface. When I did this ntop
> crashed.
>
> Until then, it has been impossible to start ntop correctly again. Here is
> what it does at startup :
>
> [EMAIL PROTECTED] ntop -u dbenza -K -D inria.fr -m "mysubnets"
> Tue Feb 15 16:53:14 2005  Initializing gdbm databases
> Tue Feb 15 16:53:14 2005  ntop v.3.1 MT
> Tue Feb 15 16:53:14 2005  Configured on Feb 15 2005 15:42:36, built on Feb
> 15 2005 16:44:52. Tue Feb 15 16:53:14 2005  Copyright 1998-2004 by Luca
> Deri  <mailto:[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Tue Feb 15 16:53:14 2005 
>  Get
> the freshest ntop from http://www.ntop.org/ Tue Feb 15 16:53:14 2005 
> Initializing ntop
> Tue Feb 15 16:53:14 2005  Checking eth0 for additional devices
> Tue Feb 15 16:53:14 2005  Resetting traffic statistics for device eth0
> Tue Feb 15 16:53:14 2005  DLT: Device 0 [eth0] is 1, mtu 1514, header 14
> Segmentation fault
>
> I compiled ntop again, I deleted all the plugins, libraries and other stuff
> installed by the make install and did a make clean/make install again. I
> rmmod'ed af_packet and tried ntop again and finally I rebooted the host and
> tried again... nothing worked. Ntop crash again and again at startup... I
> tried to disable the multi-threading :
>
> [EMAIL PROTECTED] ntop
> Tue Feb 15 17:09:33 2005  Initializing gdbm databases
> Tue Feb 15 17:09:34 2005  ntop will be started as user nobody
> Tue Feb 15 17:09:34 2005  ntop v.3.1 ST
> Tue Feb 15 17:09:34 2005  Configured on Feb 15 2005 17:07:31, built on Feb
> 15 2005 17:08:33. Tue Feb 15 17:09:34 2005  Copyright 1998-2004 by Luca
> Deri  <mailto:[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Tue Feb 15 17:09:34 2005 
>  Get
> the freshest ntop from http://www.ntop.org/ Tue Feb 15 17:09:34 2005 
> Initializing ntop
> Tue Feb 15 17:09:34 2005  No default device configured. Using eth0
> Tue Feb 15 17:09:34 2005  Checking eth0 for additional devices
> Tue Feb 15 17:09:34 2005  Resetting traffic statistics for device eth0
> Tue Feb 15 17:09:34 2005  DLT: Device 0 [eth0] is 1, mtu 1514, header 14
> Segmentation fault
>
> Does anybody have a clue of what's happening ?
>
>
> --
>
> 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
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to