After a cvs checkout with the new napster extensions my ntop crashed after 4
hours..
> remoteHost = strtok(NULL, " ");
> remotePort = strtok(NULL, " ");
>
*> napsterSvr[napsterSvrInsertIdx].serverPort = atoi(remotePort);
>
Someone with a quick fix ?
---
Nicolai Petri
Callstack is here :
----------------------
#0 0x28492904 in strtol () from /usr/lib/libc.so.4
#1 0x284928de in atoi () from /usr/lib/libc.so.4
#2 0x281ef09f in handleSession (h=0x82cc1c4, sessions=0x2835ce80,
numSessions=0x28361b60,
fragmentedData=0, tcpWin=8772, srcHostIdx=356, sport=6699,
dstHostIdx=371, dport=1801, length=642,
tp=0xbfbfee64, tcpDataLength=588, packetData=0x82cc20c "8") at
pbuf.c:1258
#3 0x281efae3 in handleTCPSession (h=0x82cc1c4, fragmentedData=0,
tcpWin=8772, srcHostIdx=356,
sport=6699, dstHostIdx=371, dport=1801, length=642, tp=0xbfbfee64,
tcpDataLength=588,
packetData=0x82cc20c "8") at pbuf.c:1566
#4 0x281f1763 in processIpPkt (bp=0x82cc1e4 "E", h=0x82cc1c4, length=642,
ether_src=0xbfbff102 "",
ether_dst=0xbfbff0fc "") at pbuf.c:2364
#5 0x281f3483 in processPacket () at pbuf.c:2846
#6 0x28432781 in pcap_read () from /usr/lib/libpcap.so.2
#7 0x28432413 in pcap_dispatch () from /usr/lib/libpcap.so.2
#8 0x281ec5ec in packetCaptureLoop () at ntop.c:297
#9 0x804c171 in main (argc=2, argv=0xbfbffbe0) at main.c:479
#10 0x804b3dd in _start ()
(gdb)
----------Extra stuff--------------
(gdb) info locals
No symbol table info available.
(gdb) up
#1 0x284928de in atoi () from /usr/lib/libc.so.4
(gdb) info locals
No symbol table info available.
(gdb) up
#2 0x281ef09f in handleSession (h=0x82cc1c4, sessions=0x2835ce80,
numSessions=0x28361b60,
fragmentedData=0, tcpWin=8772, srcHostIdx=356, sport=6699,
dstHostIdx=371, dport=1801, length=642,
tp=0xbfbfee64, tcpDataLength=588, packetData=0x82cc20c "8") at
pbuf.c:1258
1258 napsterSvr[napsterSvrInsertIdx].serverPort =
atoi(remotePort);
(gdb) info locals
tmpBuf = "\013�N\026d \230\a<M�l\226\0164\177�������cr�\200�\036�
\020p�\000\000\000\000@\000\021\021\037X\233\201\f>�R
=\020�\237A\224L\214'�L("
remoteHost = 0x0
remotePort = 0x0
fragmentedData = 0
sport = 6699
dport = 1801
idx = 673197852
initialIdx = 1691
theSession = (IPSession *) 0x85aec00
flowDirection = 3
sessionType = 6
check = 0
napsterDownload = 0
srcHost = (HostTraffic *) 0x82f1000
dstHost = (HostTraffic *) 0x85ff000
tvstrct = {tv_sec = 673107097, tv_usec = 673324860}
(gdb)