What command are you running ntop with?

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


-----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

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

Reply via email to