The sigsegv problem returns after a brief hiatus
ntop ran just fine until I stopped and started it, now it crashes reliably
again :-)
Not sure how to read this gdb output - can someone give me a clue as to
what I'm meant to look for here? Happy to poke around, but its the first
time I've used gdb etc...
Program received signal SIGSEGV, Segmentation fault.
[Switching to LWP 7]
0xcbdb179f in t_splay () from /usr/lib/libc.so.1
(gdb) bt full
#0 0xcbdb179f in t_splay () from /usr/lib/libc.so.1
No symbol table info available.
#1 0xcbdb1561 in t_delete () from /usr/lib/libc.so.1
No symbol table info available.
#2 0xcbdb0db7 in _malloc_unlocked () from /usr/lib/libc.so.1
No symbol table info available.
#3 0xcbdb0c57 in malloc () from /usr/lib/libc.so.1
No symbol table info available.
#4 0xcc0166ce in ntop_safemalloc (sz=1912, file=0xcc04176a "hash.c",
line=954) at leaks.c:75
thePtr = (void *) 0xcc05b320
#5 0xcc01001a in _lookupHost (hostIpAddress=0xcac8c084, ether_addr=0x0,
vlanId=0, checkForMultihoming=0 '\0', forceUsingIPaddress=1 '\001',
actualDeviceId=2, file=0xcada986f "netflowPlugin.c", line=528) at
hash.c:954
messageShown = 0 '\0'
idx = 20522
isMultihomed = 0
el = (HostTraffic *) 0x0
buf =
"[EMAIL PROTECTED]"ôØËèÃ\024\vÅ\177\004\b#\
[EMAIL PROTECTED]
<]\017̾^Ì\000\000\00
0\000°n\000\022ÿÿÿÿü½ÈÊ\b¨\002̰
n\000\022Èq\000\022\214#\000\000\004\004\003ÌX\001\000\000\000\000\000\000\000\000\214#ª\n\000\000\ná\223\230ª\n\000\000
"...
useIPAddressForSearching = 1
symEthName = 0x0
ethAddr = 0x1 <Address 0x1 out of bounds>
setSpoofingFlag = 0 '\0'
numRuns = 0
hostFound = 0
updateIPinfo = 0
#6 0xcada2ce6 in handleGenericFlow (recordActTime=1156850751,
recordSysUpTime=-2126818248, record=0xcac8d064, deviceId=2) at
netflowPlugin.c:528
ratio = 1
len = 4014
theFlags = '\0' <repeats 48 times>,
"[EMAIL PROTECTED]@", '\0' <repeats
73 times>, "Tue Aug 29 12:31:09 20
06", '\0' <repeats 12 times>,
"Ó\223ÛËØ¯\b\000\000\f:Ë\000`>Ë\fÁÈÊÌÜ$\b\000\000\000\000\000Ý$\b
\223\005ÌÜÁÈÊAN\003ÌÀÜ$\b\000\000\000\000ÜÁÈʤN\003ÌD×ÈÊ
\000\b\000\000\000\000\000\000ÀÜ$\b"
srcPseudoLocal = 1 '\001'
dstPseudoLocal = 1 '\001'
srcAS = 0
dstAS = 0
a = {S_un = {S_un_b = {s_b1 = 13 '\r', s_b2 = 225 'á', s_b3 = 147
'\223', s_b4 = 152 '\230'}, S_un_w = {s_w1 = 57613, s_w2 = 39059},
S_addr = 2559828237}}
b = {S_un = {S_un_b = {s_b1 = 255 'ÿ', s_b2 = 225 'á', s_b3 = 147
'\223', s_b4 = 152 '\230'}, S_un_w = {s_w1 = 57855, s_w2 = 39059},
S_addr = 2559828479}}
addr1 = {hostFamily = 2, addr = {_hostIp4Address = {S_un = {S_un_b
= {s_b1 = 255 'ÿ', s_b2 = 225 'á', s_b3 = 147 '\223', s_b4 = 152 '\230'},
S_un_w = {s_w1 = 57855, s_w2 = 39059}, S_addr = 2559828479}},
_hostIp6Address = {_S6_un = {_S6_u8 = "ÿá\223\230", '\0' <repeats 11
times>,
_S6_u32 = {2559828479, 0, 0, 0}, __S6_align = 2559828479}}}}
---Type <return> to continue, or q <return> to quit---
addr2 = {hostFamily = 2, addr = {_hostIp4Address = {S_un = {S_un_b
= {s_b1 = 13 '\r', s_b2 = 225 'á', s_b3 = 147 '\223', s_b4 = 152 '\230'},
S_un_w = {s_w1 = 57613, s_w2 = 39059}, S_addr = 2559828237}},
_hostIp6Address = {_S6_un = {_S6_u8 = "\rá\223\230", '\0' <repeats 11
times>,
_S6_u32 = {2559828237, 0, 0, 0}, __S6_align = 2559828237}}}}
numPkts = 18
srcHost = (HostTraffic *) 0xcac8c0a4
dstHost = (HostTraffic *) 0x11ded7a8
sport = 138
dport = 138
proto = 17
newSession = 0
ctr = {value = 144, modified = 0 '\0'}
skipSRC = 0
skipDST = 0
h = {ts = {tv_sec = 1156850751, tv_usec = 0}, caplen = 0, len = 0}
tp = {th_sport = 43530, th_dport = 35875, th_seq = 0, th_ack = 0,
th_x2 = 0, th_off = 0, th_flags = 2 '\002', th_win = 0, th_sum = 0,
th_urp = 0}
session = (IPSession *) 0x0
firstSeen = 1156850760
lastSeen = 1156850760
initTime = 2
#7 0xcada46e3 in netflowMainLoop (_deviceId=0x2) at netflowPlugin.c:1310
i = 12
numFlows = 30
netflowMask = {fds_bits = {16384, 0 <repeats 31 times>}}
rc = 1464
len = 16
buffer =
"\000\005\000\036\201;T8Dô$?6â\232L\000a\031ß\000\000\000\000\230\223à.\230\223à\001\000\000\000\000\000\221\000\000\000\000\000\001\000\000\000L\201;\026T\201;\026T\000{\000{\000\020\021\000\000\000\000\000\031\031\000\000\230\223âz\230\223âÿ\000\000\000\000\000\211\000\000\000\000\000\001\000\000\000å\201;\030\210\201;\030\210\000\212\000\212\000\020\021\000\000\000\000\000\000\000\000\000\n.\n]\n.\nÿ\000\000\000\000\000\213\000\000\000\000\000\001\000\000\000å\201;\032P\201;\032P\000\212\000\212\000\020\021\000\000\000\000\000\000\000\000\000\230\223é$ÿÿÿÿ\000\000\000\000\000\216\000\000\000\000\000\001\000\000\000L\201;\032\214\201;\032\214"...
fromHost = {sin_family = 2, sin_port = 640, sin_addr = {S_un =
{S_un_b = {s_b1 = 1 '\001', s_b2 = 0 '\0', s_b3 = 0 '\0', s_b4 = 127
'\177'},
S_un_w = {s_w1 = 1, s_w2 = 32512}, S_addr = 2130706433}}, sin_zero =
"\000\000\000\000\000\000\000"}
#8 0xcb3d4583 in _thr_setup () from /usr/lib/libthread.so.1
No symbol table info available.
#9 0xcb3d4800 in __csigsetjmp () from /usr/lib/libthread.so.1
No symbol table info available.
#10 0x00000000 in ?? ()
No symbol table info available.
(gdb) list
305 int ntop_main(int argc, char *argv[]) {
306 #else
307 int main(int argc, char *argv[]) {
308 #endif
309 int i, rc, userSpecified;
310 char ifStr[196] = {0};
311 time_t lastTime, endTime;
312 char *cmdLineBuffer, *readBuffer, *readBufferWork;
313 FILE *fd;
314 struct stat fileStat;
**********************************************************************
Any personal or sensitive information contained in this email and
attachments must be handled in accordance with the Victorian Information
Privacy Act 2000, the Health Records Act 2001 or the Privacy Act 1988
(Commonwealth), as applicable.
This email, including all attachments, is confidential. If you are not the
intended recipient, you must not disclose, distribute, copy or use the
information contained in this email or attachments. Any confidentiality or
privilege is not waived or lost because this email has been sent to you in
error. If you have received it in error, please let us know by reply
email, delete it from your system and destroy any copies.
**********************************************************************
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop