Hi all,
I'm writing you to submit a ntop segmentation fault.
The system I used was a Slackware with kernel 2.2.21.
A gdb output follows: the ntop version I compiled is
the ntop-current of July the 2th.
The crash, on the same system, also occurred with
the stable version of ntop.
Here's the gdb otuput:
/usr/local/bin/ntop -q -c -i eth0 -W 0 -S 1 -u nobody -d
(gdb) bt full
#0 0x40575bb4 in free () from /lib/libc.so.6
No symbol table info available.
#1 0x40575a9b in free () from /lib/libc.so.6
No symbol table info available.
#2 0x40247b8e in ntop_safefree (ptr=0xbf5ffcb0, file=0x402da30f
"sessions.c", line=251) at leaks.c:511
ptr = (void **) 0xbf5ffcb0
#3 0x40254329 in freeSession (sessionToPurge=0x8f24b50,
actualDeviceId=0, allocateMemoryIfNeeded=1) at sessions.c:251
actualDeviceId = 0
#4 0x4025453a in scanTimedoutTCPSessions (actualDeviceId=0) at
sessions.c:320
nextSession = (IPSession *) 0x0
prevSession = (IPSession *) 0x8f24b50
thisSession = (IPSession *) 0x8f24b50
idx = 49127
#5 0x4024396f in purgeIdleHosts (actDevice=0) at hash.c:471
idx = 762
maxBucket = 762
theIdx = 941
hashFull = 1
hashLen = 4096
startTime = 1025627055
purgeTime = 1025626755
lastPurgeTime = {1025627055, 0 <repeats 31 times>}
firstRun = 0 '\000'
theFlaggedHosts = (HostTraffic **) 0x0
len = 763
#6 0x402499cb in scanIdleLoop (notUsed=0x0) at ntop.c:619
i = 0
#7 0x401d25d7 in pthread_start_thread (arg=0xbf5ffe40) at manager.c:241
self = 0xbf5ffe40
request = {req_thread = 0x0, req_kind = REQ_CREATE, req_args = {create
= {attr = 0x0, fn = 0, arg = 0x0, mask = {__val = {
0 <repeats 24 times>, 1075664974, 1075700444, 3210739264,
3210739492, 3210739492, 1, 0, 4294967295}}}, free = {thread_id = 0},
exit = {code = 0}, post = 0x0}}
outcome = (void *) 0x40601528
#8 0x401d2614 in pthread_start_thread_event (arg=0xbf5ffe40) at
manager.c:264
arg = (void *) 0xbf5ffe40
_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop-dev