Ntop 3.2.1 on FreeBSD 6.0.  I have another instance running on the same
box, same code that will run "forever".  This instance processes WAY
more data (netflow) than the other, so must have something to do with
the number of sessions, hosts, etc.  Running in gdb again so let me know
if there's something else I need to do.

 

Here's the args

-K -t 5 -u ntop -i none --disable-instantsessionpurge --instance
Home.Office -P

/usr/local/var/ntop -o -d -L -x 32768 -X 65536 -m
10.0.0.0/8,192.168.0.0/16,12.1

54.38.0/24,12.154.39.0/24

 

Program received signal SIGSEGV, Segmentation fault.

[Switching to Thread 0x8060a00 (LWP 100214)]

0x28171d30 in scanTimedoutTCPSessions (actualDeviceId=3) at
sessions.c:493

493     sessions.c: No such file or directory.

        in sessions.c

 

bt full

#0  0x28171d30 in scanTimedoutTCPSessions (actualDeviceId=3) at
sessions.c:493

        nextSession = (IPSession *) 0x0

        prevSession = (IPSession *) 0x1cb74400

        theSession = (IPSession *) 0x1cb74400

        _idx = 29392

        freeSessionCount = 5857

        purgeLimit = 16616

        idx = 25928

#1  0x28155b53 in purgeIdleHosts (actDevice=3) at hash.c:702

        idx = 847

        numFreedBuckets = 847

        numHosts = 847

        startTime = 672859328

        noSessionPurgeTime = 1225821825

        withSessionPurgeTime = 1225820625

        lastPurgeTime = {1225822424, 1225822424, 1225822425, 1225822425,

  1225822297, 0 <repeats 27 times>}

        firstRun = 0 '\0'

        theFlaggedHosts = (HostTraffic **) 0x0

        maxHosts = 7513

        scannedHosts = 7514

        hiresDeltaTime = -0.100000001

        hiresTimeStart = {tv_sec = 1225822425, tv_usec = 359019}

---Type <return> to continue, or q <return> to quit---

        hiresTimeEnd = {tv_sec = 1225822425, tv_usec = 357034}

        el = (HostTraffic *) 0x281b04c0

        prev = (HostTraffic *) 0x0

        next = (HostTraffic *) 0x8060a00

#2  0x2815e702 in scanIdleLoop (notUsed=0x0) at ntop.c:666

        i = 3

#3  0x288daab1 in pthread_create () from /usr/lib/libpthread.so.2

No symbol table info available.

#4  0x28b3d45f in _ctx_start () from /lib/libc.so.6

No symbol table info available.

 

(gdb) list

666     ntop.c: No such file or directory.

        in ntop.c

 

(gdb) info threads

[New Thread 0x9679400 (sleeping)]

[New Thread 0x8ac9800 (sleeping)]

[New Thread 0x8ac9600 (runnable)]

[New Thread 0x8ac9400 (sleeping)]

[New Thread 0x8ac9200 (runnable)]

[New Thread 0x8ac9000 (runnable)]

[New Thread 0x8060e00 (runnable)]

[New Thread 0x8060c00 (runnable)]

[New Thread 0x8060800 (sleeping)]

[New Thread 0x8060600 (sleeping)]

  14 Thread 0x8060600 (sleeping)  0x288e7e7f in pthread_mutexattr_init
()

   from /usr/lib/libpthread.so.2

  13 Thread 0x8060800 (sleeping)  0x288e7e7f in pthread_mutexattr_init
()

   from /usr/lib/libpthread.so.2

  12 Thread 0x8060c00 (runnable)  0x28ae0e73 in kevent () from
/lib/libc.so.6

  11 Thread 0x8060e00 (runnable)  0x28ae20b3 in select () from
/lib/libc.so.6

  10 Thread 0x8ac9000 (runnable)  0x288e7e7f in pthread_mutexattr_init
()

   from /usr/lib/libpthread.so.2

  9 Thread 0x8ac9200 (runnable)  0x28ae20b3 in select () from
/lib/libc.so.6

  8 Thread 0x8ac9400 (sleeping)  0x288e7e7f in pthread_mutexattr_init ()

   from /usr/lib/libpthread.so.2

  7 Thread 0x8ac9600 (runnable)  0x288e7e7f in pthread_mutexattr_init ()

   from /usr/lib/libpthread.so.2

  6 Thread 0x8ac9800 (sleeping)  0x288e7e7f in pthread_mutexattr_init ()

   from /usr/lib/libpthread.so.2

  5 Thread 0x9679400 (sleeping)  0x288e7e7f in pthread_mutexattr_init ()

   from /usr/lib/libpthread.so.2

* 4 Thread 0x8060a00 (LWP 100214)  0x28171d30 in scanTimedoutTCPSessions
(

    actualDeviceId=3) at sessions.c:493

  3 Thread 0x8060200 (LWP 100206)  0x288ef277 in pthread_testcancel ()

   from /usr/lib/libpthread.so.2

  2 Thread 0x8060000 (sleeping)  0x288e7e7f in pthread_mutexattr_init ()

   from /usr/lib/libpthread.so.2

(gdb) info stack

#0  0x28171d30 in scanTimedoutTCPSessions (actualDeviceId=3) at
sessions.c:493

#1  0x28155b53 in purgeIdleHosts (actDevice=3) at hash.c:702

#2  0x2815e702 in scanIdleLoop (notUsed=0x0) at ntop.c:666

#3  0x288daab1 in pthread_create () from /usr/lib/libpthread.so.2

#4  0x28b3d45f in _ctx_start () from /lib/libc.so.6

(gdb)

#0  0x28171d30 in scanTimedoutTCPSessions (actualDeviceId=3) at
sessions.c:493

#1  0x28155b53 in purgeIdleHosts (actDevice=3) at hash.c:702

#2  0x2815e702 in scanIdleLoop (notUsed=0x0) at ntop.c:666

#3  0x288daab1 in pthread_create () from /usr/lib/libpthread.so.2

#4  0x28b3d45f in _ctx_start () from /lib/libc.so.6

(gdb)






<font size="1">
<div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 
1.0pt 0in'>
</div>
"This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system."
</font>

_______________________________________________
Ntop mailing list
Ntop@unipi.it
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to