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]>
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
#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
#7  0x000000bf in ?? ()
(gdb)

_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to