ï
Nothing looks wrong.  Try removing prefs.db and rerunning... otherwise I don't have a clue.
 
-----Burton
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Didier Benza
Sent: Thursday, February 17, 2005 2:04 AM
To: [email protected]
Subject: Re: [Ntop] Ntop crahses at startup

Hello,

Here is the result :

(gdb) R
Starting program: /0/local/ntop/bin/ntop
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 2359)]
Thu Feb 17 09:00:11 2005  Initializing gdbm databases
Thu Feb 17 09:00:11 2005  ntop will be started as user nobody
Thu Feb 17 09:00:11 2005  ntop v.3.1 ST
Thu Feb 17 09:00:11 2005  Configured on Feb 15 2005 19:23:20, built on Feb 15 2005 19:24:22.
Thu Feb 17 09:00:11 2005  Copyright 1998-2004 by Luca Deri <[EMAIL PROTECTED]>
Thu Feb 17 09:00:11 2005  Get the freshest ntop from http://www.ntop.org/
Thu Feb 17 09:00:11 2005  Initializing ntop
Thu Feb 17 09:00:11 2005  Checking eth0 for additional devices
Thu Feb 17 09:00:11 2005  Resetting traffic statistics for device eth0
Thu Feb 17 09:00:11 2005  DLT: Device 0 [eth0] is 1, mtu 1514, header 14

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 2359)]
initNtop (devices=0x8059cc8 "eth0") at globals-core.c:602
602       if(myGlobals.runningPref.enableSessionHandling)
(gdb) print myGlobals
$1 = {program_name = 0x8059fda "ntop", basentoppid = 0, childntoppid = 0, startedAs = 0x8059108 "/0/local/ntop/bin/ntop ",
  ntop_argc = 1, ntop_argv = 0x8058ad8, dataFileDirs = 0x4015e540, pluginDirs = 0x4015e54c, configFileDirs = 0x4015e558,
  savedPref = {accessLogFile = 0x0, enablePacketDecoding = 1 '\001', stickyHosts = 0 '\0', daemonMode = 0 '\0', maxNumLines = 0,
    rFileName = 0x0, trackOnlyLocalHosts = 0 '\0', devices = 0x8059cc8 "eth0", enableOtherPacketDump = 0 '\0',
    filterExpressionInExtraFrame = 0 '\0', pcapLog = 0x0, localAddresses = 0x0, numericFlag = 0 '\0', dontTrustMACaddr = 0 '\0',
    protoSpecs = 0x0, enableSuspiciousPacketDump = 0 '\0', refreshRate = 0, disablePromiscuousMode = 0 '\0', traceLevel = 3,
    maxNumHashEntries = 4294967295, maxNumSessions = 4294967295, defaultVsan = 1, webAddr = 0x0, webPort = 3000, ipv4or6 = 0,
    enableSessionHandling = 1 '\001', currentFilterExpression = 0x0, samplingRate = 0, domainName = '\0' <repeats 63 times>,
    flowSpecs = 0x0, debugMode = 0 '\0', useSyslog = -1, mergeInterfaces = 1 '\001',
    pcapLogBasePath = 0x8058fc0 "/0/local/ntop/var/ntop", fcNSCacheFile = 0x0, printFcOnly = 0 '\0', mapperURL = 0x0, w3c = 0 '\0',
    P3Pcp = 0x0, P3Puri = 0x0, setNonBlocking = 0 '\0', disableStopcap = 0 '\0', disableInstantSessionPurge = 0 '\0',
    printIpOnly = 0 '\0', noInvalidLunDisplay = 0 '\0', disableMutexExtraInfo = 0 '\0', skipVersionCheck = 0 '\0'}, runningPref = {
    accessLogFile = 0x0, enablePacketDecoding = 1 '\001', stickyHosts = 0 '\0', daemonMode = 0 '\0', maxNumLines = 128,
    rFileName = 0x0, trackOnlyLocalHosts = 0 '\0', devices = 0x8059cc8 "eth0", enableOtherPacketDump = 0 '\0',
    filterExpressionInExtraFrame = 0 '\0', pcapLog = 0x0, localAddresses = 0x0, numericFlag = 0 '\0', dontTrustMACaddr = 0 '\0',
    protoSpecs = 0x0, enableSuspiciousPacketDump = 0 '\0', refreshRate = 120, disablePromiscuousMode = 0 '\0', traceLevel = 3,
    maxNumHashEntries = 4294967295, maxNumSessions = 4294967295, defaultVsan = 1, webAddr = 0x0, webPort = 3000, ipv4or6 = 0,
    enableSessionHandling = 1 '\001', currentFilterExpression = 0x0, samplingRate = 0, domainName = '\0' <repeats 63 times>,
    flowSpecs = 0x0, debugMode = 0 '\0', useSyslog = -1, mergeInterfaces = 1 '\001',
    pcapLogBasePath = 0x8058fc0 "/0/local/ntop/var/ntop", fcNSCacheFile = 0x0, printFcOnly = 0 '\0', mapperURL = 0x0, w3c = 0 '\0',
    P3Pcp = 0x0, P3Puri = 0x0, setNonBlocking = 0 '\0', disableStopcap = 0 '\0', disableInstantSessionPurge = 0 '\0',
    printIpOnly = 0 '\0', noInvalidLunDisplay = 0 '\0', disableMutexExtraInfo = 0 '\0', skipVersionCheck = 0 '\0'},
  effectiveUserName = 0x8059cb0 "nobody", userId = 32700, groupId = 32700, dbPath = 0x8058fe0 "/0/local/ntop/var/ntop",
  spoolPath = 0x8059cd8 "/0/local/ntop/var/ntop", enableFragmentHandling = 1 '\001', hostsDisplayPolicy = showAllHosts,
  localityDisplayPolicy = showSentReceived, securityItemsLoaded = 0, securityItems = {0x0 <repeats 32 times>}, numDevices = 1,
  device = 0x407ad008, dnsCacheFile = 0x0, pwFile = 0x8059c40, addressQueueFile = 0x0, prefsFile = 0x8059bc8, macPrefixFile = 0x0,
  fingerprintFile = 0x0, broadcastEntry = 0x8059450, otherHostEntry = 0x8059fe8, shortDomainName = 0x0, weDontWantToTalkWithYou = {{
      addr = {hostFamily = 0, addr = {_hostIp4Address = {s_addr = 0}, _hostIp6Address = {in6_u = {
              u6_addr8 = '\0' <repeats 15 times>, u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, u6_addr32 = {0, 0, 0, 0}}}}},
      lastBadAccess = 0, count = 0}, {addr = {hostFamily = 0, addr = {_hostIp4Address = {s_addr = 0}, _hostIp6Address = {in6_u = {
              u6_addr8 = '\0' <repeats 15 times>, u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, u6_addr32 = {0, 0, 0, 0}}}}},
      lastBadAccess = 0, count = 0}, {addr = {hostFamily = 0, addr = {_hostIp4Address = {s_addr = 0}, _hostIp6Address = {in6_u = {
              u6_addr8 = '\0' <repeats 15 times>, u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, u6_addr32 = {0, 0, 0, 0}}}}},
      lastBadAccess = 0, count = 0}}, capturePackets = 0, endNtop = 0, resetHashNow = 0 '\0', flowsList = 0x0, dnsSniffCount = 0,
  dnsSniffRequestCount = 0, dnsSniffFailedCount = 0, dnsSniffARPACount = 0, dnsSniffStoredInCache = 0, numipaddr2strCalls = 0,
  numFetchAddressFromCacheCalls = 0, numFetchAddressFromCacheCallsOK = 0, numFetchAddressFromCacheCallsFAIL = 0,
  numFetchAddressFromCacheCallsSTALE = 0, numResolveAddressCalls = 0, numResolveNoCacheDB = 0, numResolveCacheDBLookups = 0,
  numResolvedFromCache = 0, dnsCacheStoredLookup = 0, numAttemptingResolutionWithDNS = 0, numResolvedWithDNSAddresses = 0,
  numDNSErrorHostNotFound = 0, numDNSErrorNoData = 0, numDNSErrorNoRecovery = 0, numDNSErrorTryAgain = 0, numDNSErrorOther = 0,
  numKeptNumericAddresses = 0, separator = 0x40147cce "&nbsp;", numHandledSIGPIPEerrors = 0, checkVersionStatus = 0,
  checkVersionStatusAgain = 0, gdVersionGuessValue = 0x0, numPurgedHosts = 0, numTerminatedSessions = 0, thisZone = 3600,
  actTime = 1108627211, initialSniffTime = 0, lastRefreshTime = 0, lastPktTime = {tv_sec = 0, tv_usec = 0}, numActServices = 508,
  udpSvc = 0x80d3b38, tcpSvc = 0x80d4330, numIpProtosToMonitor = 19, protoIPTrafficInfos = 0x80d6cf0, numIpProtosList = 0,
  ipProtosList = 0x0, numFcProtosToMonitor = 0, ipPortMapper = {numElements = 176, numSlots = 0, theMapper = 0x0}, transTimeHash = {{
      transactionId = 0, theTime = {tv_sec = 0, tv_usec = 0}} <repeats 256 times>}, dummyEthAddress = "\000\000\000\000\000",
  mtuSize = 0x4015fb40, headerSize = 0x4015fc40, localNetworks = {{0, 0, 0} <repeats 32 times>}, numLocalNetworks = 0,
  baseMemoryUsage = 0, ipTrafficMatrixMemoryUsage = 1468944, fcTrafficMatrixMemoryUsage = 0, webInterfaceDisabled = 0 '\0',
  enableIdleHosts = 0, actualReportDeviceId = 0, columnSort = 0, reportKind = 0, sortFilter = 0, sock = 0, newSock = 0,
  numChildren = 0, rrdPath = 0x0, rrdDirectoryPermissions = 0, rrdUmask = 0, accessLogFd = 0x0, numHandledRequests = {0, 0},
  numHandledBadrequests = {0, 0}, numSuccessfulRequests = {0, 0}, numUnsuccessfulInvalidrequests = {0, 0},
  numUnsuccessfulInvalidmethod = {0, 0}, numUnsuccessfulInvalidversion = {0, 0}, numUnsuccessfulTimeout = {0, 0},
  numUnsuccessfulNotfound = {0, 0}, numUnsuccessfulDenied = {0, 0}, numUnsuccessfulForbidden = {0, 0},
  webServerRequestQueueLength = 0, hostsCache = {0x0 <repeats 512 times>}, hostsCacheLen = 0, hostsCacheLenMax = 0,
  hostsCacheReused = 0, GnutellaIdx = 12, KazaaIdx = 13, WinMXIdx = 14, DirectConnectIdx = 15, FTPIdx = 0, EdonkeyIdx = 16,
  BitTorrentIdx = 17, ipxsapHashLoadCollisions = 0, ipxsapHashLoadSize = 0, hashCollisionsLookup = 0, numVendorLookupRead = 0,
  numVendorLookupAdded = 0, numVendorLookupAddedSpecial = 0, numVendorLookupCalls = 0, numVendorLookupSpecialCalls = 0,
  numVendorLookupFound48bit = 0, numVendorLookupFound24bit = 0, numVendorLookupFoundMulticast = 0, numVendorLookupFoundLAA = 0,
  defaultLanguage = 0x0, maxSupportedLanguages = 0, supportedLanguages = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, strftimeFormat = {
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, countryFlagHead = 0x0, ipCountryMem = 0, ipCountryCount = 0, asHead = 0x0, asMem = 0,
  asCount = 0, logView = 0x8059038, logViewNext = 10, scsiDefaultDevType = -1 '', displayOption = 2 '\002',
  fcnsCacheHash = 0x805a760, fcMatrixHashCollisions = 0, fcMatrixHashUnresCollisions = 0, warnedAboutPathologicalVLANS = 0}
(gdb) print myGlobals.runningPref
$2 = {accessLogFile = 0x0, enablePacketDecoding = 1 '\001', stickyHosts = 0 '\0', daemonMode = 0 '\0', maxNumLines = 128,
  rFileName = 0x0, trackOnlyLocalHosts = 0 '\0', devices = 0x8059cc8 "eth0", enableOtherPacketDump = 0 '\0',
  filterExpressionInExtraFrame = 0 '\0', pcapLog = 0x0, localAddresses = 0x0, numericFlag = 0 '\0', dontTrustMACaddr = 0 '\0',
  protoSpecs = 0x0, enableSuspiciousPacketDump = 0 '\0', refreshRate = 120, disablePromiscuousMode = 0 '\0', traceLevel = 3,
  maxNumHashEntries = 4294967295, maxNumSessions = 4294967295, defaultVsan = 1, webAddr = 0x0, webPort = 3000, ipv4or6 = 0,
  enableSessionHandling = 1 '\001', currentFilterExpression = 0x0, samplingRate = 0, domainName = '\0' <repeats 63 times>,
  flowSpecs = 0x0, debugMode = 0 '\0', useSyslog = -1, mergeInterfaces = 1 '\001',
  pcapLogBasePath = 0x8058fc0 "/0/local/ntop/var/ntop", fcNSCacheFile = 0x0, printFcOnly = 0 '\0', mapperURL = 0x0, w3c = 0 '\0',
  P3Pcp = 0x0, P3Puri = 0x0, setNonBlocking = 0 '\0', disableStopcap = 0 '\0', disableInstantSessionPurge = 0 '\0',
  printIpOnly = 0 '\0', noInvalidLunDisplay = 0 '\0', disableMutexExtraInfo = 0 '\0', skipVersionCheck = 0 '\0'}
(gdb) print *(myGlobals.runningPref)
Structure has no component named operator*.
(gdb)

Thanks.

Burton Strauss wrote:
That looks like myGlobals is corrupted... don't see how it could be, but...
 
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 <[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 <[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 <[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

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

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

Reply via email to