On Sun, Apr 24, 2005 at 03:26:05PM -0500, Burton Strauss wrote:
> What command are you running ntop with?

[EMAIL PROTECTED]:~/build/debian/ntop/ntop-3.1# ntop -u ntop -k
Tue Apr 26 07:08:22 2005  Initializing gdbm databases
Tue Apr 26 07:08:22 2005  ntop v.3.1 ST (SSL)
Tue Apr 26 07:08:22 2005  Configured on Apr 24 2005  0:15:42, built on Apr 24 
2005 00:16:00.
Tue Apr 26 07:08:22 2005  Copyright 1998-2004 by Luca Deri <[EMAIL PROTECTED]>
Tue Apr 26 07:08:22 2005  Get the freshest ntop from http://www.ntop.org/
Tue Apr 26 07:08:22 2005  Initializing ntop
Tue Apr 26 07:08:22 2005  Checking eth0 for additional devices
Tue Apr 26 07:08:22 2005  Resetting traffic statistics for device eth0
Tue Apr 26 07:08:22 2005  DLT: Device 0 [eth0] is 1, mtu 1514, header 14
Segmentation fault

> Also run under gdb and show the values for myGlobals and
> myGlobals.runningPref.

The strange thing here is that they seem to point to valid places,
at least according to ddd. It is not a simple null pointer at least.
The value that it tries to access on that address have value 1
which it should. This is the reason why I think something else have
gone really bad before this.

Can it be a problem with pcap?

[EMAIL PROTECTED]:~/build/debian/ntop/ntop-3.1# dpkg -l *pcap*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: 
uppercase=bad)||/ Name           Version        Description
+++-==============-==============-============================================
ii  libpcap-dev    0.7.2-7        Development library for libpcap (transitiona
ii  libpcap0.7     0.7.2-7        System interface for user-level packet captu
ii  libpcap0.7-dev 0.7.2-7        Development library and header files for lib
ii  libpcap0.8     0.8.3-5        System interface for user-level packet captu
un  libpcap0.8-dev <none>         (no description available)
[EMAIL PROTECTED]:~/build/debian/ntop/ntop-3.1#

ii means installed.

I have not seen this reported by anyone else, is it?

Regards,

// Ola

> 
> -----Burton
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Ola Lundqvist
> Sent: Sunday, April 24, 2005 2:22 PM
> To: [EMAIL PROTECTED]
> Subject: [Ntop-dev] Ntop 3.1 segmentation fault.
> 
> Hello
> 
> I may have asked this before and I sent a mail directly to luca yesterdaym
> but I realized that it better to subscribe to this list and ask here
> instead.
> 
> My problem is that I'm the maintainer of the ntop package in Debian and want
> to upgrade to 3.1 version of ntop. The problem is that I get a segmentation
> fault at startup of ntop.
> 
> I have located the problem to globals-core.c (line 598):
> ...
> 1:  if (myGlobals.capturePackets == FLAG_NTOPSTATE_RUN) {
> 2:      initDevices(devices);
> 3:  }
> 4:    
> 5:  if(myGlobals.runningPref.enableSessionHandling) <<---- here it segv.
> 6:    initPassiveSessions();
> 
> If i comment line 2 it works much better (no segv) but it segv later (I
> assume on some later initDevices call).
> 
> If I comment line 5 and 6 the segv is on the next line instead so the
> problem seem to be in initDevices. I have tried to locate the problem there
> (using ddd) but I can not see any obvious problem.
> 
> Do any of you know what the problem may be?
> 
> I really want to update to 3.1 of ntop as 3.0 is a bit old and Luca do not
> think that it is a good idea to stick to that version.
> 
> I have heard that the cvs version work much better but I can not see any
> differences that can affect this. The code is rewritten much but on the
> other hand it seem to make the same thing.
> 
> I have some problems with compiling the cvs version as I get some error when
> compiling. I have not focused on solving that though.
> 
> Help is very much appricated.
> 
> Regards,
> 
> // Ola
> 
> --
>  --------------------- Ola Lundqvist ---------------------------
> /  [EMAIL PROTECTED]                     Annebergsslingan 37      \
> |  [EMAIL PROTECTED]                 654 65 KARLSTAD          |
> |  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
> |  http://www.opal.dhs.org             UIN/icq: 4912500         |
> \  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
>  ---------------------------------------------------------------
> _______________________________________________
> Ntop-dev mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop-dev
> 
> 

-- 
 --------------------- Ola Lundqvist ---------------------------
/  [EMAIL PROTECTED]                     Annebergsslingan 37      \
|  [EMAIL PROTECTED]                 654 65 KARLSTAD          |
|  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------
_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to