I guess it's possible that an optimization bug could have corrupted a file
you didn't think to delete - one of the RRD files, maybe... But you said you
nuked them all.  I can't see how optimization bugs would reoccur though all
those steps and then disappear with a recompile still with -O2.  Unless
there is a Gentoo only patch in portage that's the problem...

But that doesn't seem to apply here either.


The last GCC optimization bug was stomped, but only because I knew where it
was occurring.  It turned out - as a total fluke - that two sequential log
messages were reporting impossibly different things.  A local variable was
null for the 2nd message but not null for the 1st.   In general finding
these problems in a big project is close to impossible.


But, if removing -O2 'fixes' it, that's a pretty good circumstantial
indictment of gcc optimization.


-----Burton



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cody
Baker
Sent: Friday, January 13, 2006 9:02 AM
To: [email protected]
Subject: Re: [Ntop] Error starting, Loading ASN File

I had the same problem with gentoo's portage version of 3.2.  The one bit
that was interesting was that it worked for a while, and then crashed one
night, never to start again.  I tried unemerging ntop, and deleting all of
the files associated with it, and reinstalling several times, but it never
worked.  I finally tried installing manually from sources and the problem
went away.

Thank You,

Cody Baker
[EMAIL PROTECTED]
330.934.0659
http://www.wilkshire.net

Burton Strauss wrote:
> We've been bit a few times over the years with optimization bugs.  You 
> could try editing the Makefile and removing all of the instances of -O2.
>  
> -----Burton
>
> ----------------------------------------------------------------------
> --
> *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On 
> Behalf Of *Paquet Daniel
> *Sent:* Friday, January 13, 2006 8:31 AM
> *To:* [email protected]
> *Subject:* RE: [Ntop] Error starting, Loading ASN File
>
> I have the same problem with ntop 3.2. With Gentoo, and this problem 
> occurred after I upgraded to gcc from 3.3 to 3.4. I even tried to 
> recompile ntop without much improvement.
>
>  
>
>  
>
> ------
>
> Daniel Paquet
>
> Technicien Informatique
>
> Service des Résidences, Université de Montréal
>
> 514-343-6111 #1665
>
>  
>
> ----------------------------------------------------------------------
> --
>
> *De :* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *De la 
> part de* Burton Strauss *Envoyé :* 13 janvier 2006 09:14 *À :* 
> [email protected] *Objet :* RE: [Ntop] Error starting, Loading ASN File
>
>  
>
> We need the bt full data not just bt ... (this has local variable 
> values too)
>
>  
>
> It will also be really helpful to put a breakpoint after the "ASN:
> Checking for Autonomous System Number table file" message is generated 
> and single step up to the failure point.  This will show us precisely 
> how the bad filename value is being created.
>
>  
>
> Also - what version of the OS (distro, etc.)??
>
>  
>
> -----Burton
>
>  
>
>  
>
> ----------------------------------------------------------------------
> --
>
> *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On 
> Behalf Of *Graham Smithers
> *Sent:* Thursday, January 12, 2006 11:49 PM
> *To:* [email protected]
> *Subject:* [Ntop] Error starting, Loading ASN File
>
> I am unable to start ntop, I can run version 3.1 but not 3.2.  I hope 
> this is enough information to help me fix the problem.
>
> Regards
>
> Graham
>
> thor ~ # gdb ntop
> GNU gdb 6.4
> Copyright 2005 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"...(no debugging symbols
> found)
> Using host libthread_db library "/lib/libthread_db.so.1".
>
> (gdb) set args -u root -K
> (gdb) r
> Starting program: /usr/bin/ntop -u root -K (no debugging symbols 
> found) (no debugging symbols found) (no debugging symbols found) 
> [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 
> 3081)] Fri Jan 13 18:39:00 2006  NOTE: Interface merge enabled by 
> default Fri Jan 13 18:39:00 2006  Initializing gdbm databases Fri Jan 
> 13 18:39:00 2006  ntop v.3.2 SourceForge .tgz Fri Jan 13 18:39:00 2006  
> Configured on Jan 13 2006 11:47:44, built on Jan 13 2006 11:48:35.
> Fri Jan 13 18:39:00 2006  Copyright 1998-2005 by Luca Deri 
> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> Fri Jan 13 18:39:00 2006  Get 
> the freshest ntop from http://www.ntop.org/ Fri Jan 13 18:39:00 2006  
> NOTE: ntop is running from '/usr/bin'
> Fri Jan 13 18:39:00 2006  NOTE: (but see warning on man page for the 
> --instance parameter) Fri Jan 13 18:39:00 2006  NOTE: ntop libraries 
> are in '/usr/lib'
> Fri Jan 13 18:39:00 2006  Initializing ntop Fri Jan 13 18:39:00 2006  
> Checking eth0 for additional devices Fri Jan 13 18:39:00 2006  
> Resetting traffic statistics for device eth0 Fri Jan 13 18:39:00 2006  
> DLT: Device 0 [eth0] is 1, mtu 1514, header 14 Fri Jan 13 18:39:00 
> 2006  Initializing gdbm databases Fri Jan 13 18:39:00 2006  VENDOR: 
> Loading MAC address table.
> Fri Jan 13 18:39:00 2006  VENDOR: Checking for MAC address table file 
> Fri Jan 13 18:39:00 2006  **WARNING** VENDOR: Unable to open file 
> 'specialMAC.txt'
> Fri Jan 13 18:39:00 2006  VENDOR: ntop continues ok Fri Jan 13 
> 18:39:00 2006  VENDOR: Checking for MAC address table file Fri Jan 13 
> 18:39:00 2006  **WARNING** VENDOR: Unable to open file 'oui.txt'
> Fri Jan 13 18:39:00 2006  VENDOR: ntop continues ok Fri Jan 13 
> 18:39:00 2006  Fingeprint: Loading signature file.
> Fri Jan 13 18:39:00 2006  ASN: Checking for Autonomous System Number 
> table file Fri Jan 13 18:39:00 2006  ASN: Loading file '¨ßÿ¿´'
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 16384 (LWP 3081)]
> 0x41714dc6 in pthread_mutex_lock () from /lib/libpthread.so.0
> (gdb) bt
> #0  0x41714dc6 in pthread_mutex_lock () from /lib/libpthread.so.0
> #1  0x417174c0 in flockfile () from /lib/libpthread.so.0
> #2  0x4180c7fe in fgets () from /lib/libc.so.6
> #3  0x401003ec in readInputFile () from /usr/lib/libntop-3.2.so 
> <http://3.2.so>
> #4  0x00044048 in ?? ()
> #5  0x4000b170 in _dl_runtime_resolve () from /lib/ld-linux.so.2
> #6  0x400d4103 in initCounters () from /usr/lib/libntop-3.2.so 
> <http://3.2.so>
> #7  0x000000bf in ?? ()
> (gdb)
>
> ----------------------------------------------------------------------
> --
>
> _______________________________________________
> Ntop mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop
>   

_______________________________________________
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