(1) Use the real source, not the port - we simply don't know what changes were made in there.
(2) Under the 4.x series (although not necessarily 4.11) you probably want the pcap non-blocking option (./configure --help should show the syntax, or read the entry in docs/FAQ). -----Burton -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Janos Dohanics Sent: Tuesday, March 21, 2006 7:48 PM To: [email protected] Subject: [Ntop] crash FreeBSD 4.11-STABLE Hi Everyone, Ntop keeps crashing on my FreeBSD 4.11-STABLE box. I have built it from the port (ntop-3.2_1). I'd appreciate any suggestions. This is the gdb output: (gdb) bt full #0 0x297826a6 in get_elem () from /usr/local/lib/libgdbm.so.3 No symbol table info available. #1 0x297820c1 in _gdbm_alloc () from /usr/local/lib/libgdbm.so.3 No symbol table info available. #2 0x29780b40 in gdbm_store () from /usr/local/lib/libgdbm.so.3 No symbol table info available. #3 0x2812f03f in ntop_gdbm_store (g=0x8069900, d={dptr = 0xbfa7c43c "1062032413", dsize = 11}, v={dptr = 0xbfa7c3f4 "icem5.worldatamail.com", dsize = 72}, r=1, theFile=0x2815dce0 "protocols.c", theLine=659) at leaks.c:830 rc = 672550208 #4 0x281417ec in processDNSPacket (srcHost=0x92ec000, sport=53, packetData=0xbfa85eee "ót\201\200", length=56, isRequest=0xbfa85a24, positiveReply=0xbfa85a26) at protocols.c:659 addrStore = {symAddress = "icem5.worldatamail.com", '\000' <repeats 41 times>, recordCreationTime = 1142979951, symAddressType = 29, pad = 0 times>'\000'} len = 672550208 sport = 8196 hostPtr = {queryName = "icem5.worldatamail.com", '\000' <repeats 1002 times>, queryType = 1, name = "icem5.worldatamail.com", '\000' <repeats 1002 times>, aliases = {'\000' <repeats 1024 times> <repeats 35 times>}, addrList = {492064063, 0 <repeats 34 times>}, addrType = 2, addrLen = 4} key_data = {dptr = 0xbfa7c43c "1062032413", dsize = 11} data_data = {dptr = 0xbfa7c3f4 "icem5.worldatamail.com", dsize = 72} tmpBuf = "1062032413", '\000' <repeats 85 times> transactionId = 62324 i = 0 queryNameLength = 672550208 #5 0x28135bfd in processIpPkt (bp=0xbfa85ed2 "E", h=0x8699778, length=98, ether_src=0xbfa85e72 "", ether_dst=0xbfa85e6c "", actualDeviceId=0, vlanId=-1) at pbuf.c:1564 isRequest = 0 positiveReply = 1 transactionId = 49152 sport = 53 dport = 3490 sportIdx = 20 dportIdx = 154058752 ip = {ip_hl = 5, ip_v = 4, ip_tos = 0 '\000', ip_len = 21504, ip_id = 58473, ip_off = 0, ip_ttl = 64 '@', ip_p = 17 '\021', ip_sum = 22421, ip_src = {s_addr = 1118305036}, ip_dst = {s_addr = 1118305026}} nh = 17 fragmented = 0 tp = {th_sport = 15620, th_dport = 10262, th_seq = 3215482564, th_ack = 3215481612, th_x2 = 4, th_off = 12, th_flags = 128 '\200', th_win = 10259, th_sum = 45848, th_urp = 2157} up = {uh_sport = 13568, uh_dport = 41485, uh_ulen = 16384, uh_sum = 21050} icmpPkt = {icmp_type = 0 '\000', icmp_code = 0 '\000', icmp_cksum = 0, icmp_hun = {ih_pptr = 205 'Í', ih_gwaddr = {s_addr = 1166541}, ih_idseq = { icd_id = 52429, icd_seq = 17}, ih_void = 1166541, ih_pmtu = {ipm_void = 52429, ipm_nextmtu = 17}, ih_rtradv = {irt_num_addrs = 205 'Í', irt_wpa = 204 'Ì', irt_lifetime = 17}}, icmp_dun = {id_ts = {its_otime = 672450770, its_rtime = 672546052, its_ttime = 0}, id_ip = {idi_ip = { ip_hl = 2, ip_v = 13, ip_tos = 200 'È', ip_len = 10260, ip_id = 15620, ip_off = 10262, ip_ttl = 0 '\000', ip_p = 0 '\000', ip_sum = 0, ip_src = { s_addr = 138891264}, ip_dst = {s_addr = 672481070}}}, id_radv = {ira_addr = 672450770, ira_preference = 672546052}, id_mask = 672450770, id_data = "Ò"}} hlen = 20 ip_len = 84 tcpDataLength = 1460 udpDataLength = 56 off = 0 tcpUdpLen = 64 idx = 154058752 srcHost = (HostTraffic *) 0x92ec000 dstHost = (HostTraffic *) 0x9143800 srcAddr = {hostFamily = 2, addr = {_hostIp4Address = {s_addr = 1118305036}}} dstAddr = {hostFamily = 2, addr = {_hostIp4Address = {s_addr = 1118305026}}} forceUsingIPaddress = 0 '\000' tvstrct = {tv_sec = 1142979951, tv_usec = 748945} theData = (u_char *) 0xbfa85efa "\005icem5\fworldatamail\003com" found = 0 '\000' ctr = {value = 98, modified = 108 'l'} protoList = (ProtocolsList *) 0x8fa2004 newSession = 0 theSession = (IPSession *) 0x0 isPassiveSess = 0 nonFullyRemoteSession = 1 isVoipSess = 0 #6 0x2813af23 in processPacket (_deviceId=0x0, h=0x8699778, p=0xbfa85ec4 "") at pbuf.c:3542 protocol = 0 srcHost = (HostTraffic *) 0x0 dstHost = (HostTraffic *) 0x0 ehdr = {ether_dhost = "\000\002ã\002\\\f", ether_shost = "[EMAIL PROTECTED]", ether_type = 8} trp = (struct tokenRing_header *) 0x0 fddip = (struct fddi_header *) 0x0 ---Type <return> to continue, or q <return> to quit--- hlen = 14 caplen = 98 headerDisplacement = 0 length = 98 orig_p = (u_char *) 0xbfa85ec4 "" p1 = (u_char *) 0x0 ether_src = (u_char *) 0xbfa85e72 "" ether_dst = (u_char *) 0xbfa85e6c "" eth_type = 2048 trllc = (struct tokenRing_llc *) 0x0 ipxBuffer = "\f^¨¿\201\204\206)\fÑ\212)XS\026 (,^¨¿äe\206)\200¥\006\b`I\212),^¨¿.m\206)\fÑ\212)XS\026(\216¿\025 (\201\204\206)\fÑ\212)\000\000\000\000\\^¨¿L`\206)XS\026 (\000\000\000\000\\^¨¿8`\206)\004=\026(XS\026(\216¿\025(", '\000' <repeats 12 times>, "\214^¨¿¹È\024(XS\026(\000\000\000" deviceId = 0 actualDeviceId = 0 vlanId = -1 lastUpdateThptTime = 0 pktStartOfProcessing = {tv_sec = 1142979951, tv_usec = 859577} pktEndOfProcessing = {tv_sec = 1142979951, tv_usec = 859570} #7 0x2813782c in queuePacket (_deviceId=0x0, h=0x8699778, p=0x869978a "") at pbuf.c:2317 p1 = "[EMAIL PROTECTED]@\021\225WB§û\fB §û\002\0005\r¢\000@:Rót\201\200\000\001\000\001\000\000\000\000\005icem5\fwo rldatamail\003com\000\000\001\000\001À\f\000\001\000\001\000\000T`\000\004?M T\035\rY\013ΩÒ`¼\034\230`·\212Ö¾\226ô½\002mx\032Ds; [EMAIL PROTECTED]| \203\034`\003n\210\035\"Åê¹Ç\024»\220ç\232ÜÔÓÙÇ\236\b\021\201\221ôÄ\030| g\000+ü¨\035L\027\003\001\000`\220\022qq\n]ôJË~â÷0\013:6"... len = 141137784 deviceId = 0 actDeviceId = 141137784 #8 0x29772e89 in pcap_read () from /usr/lib/libpcap.so.2 No symbol table info available. #9 0x2977297f in pcap_dispatch () from /usr/lib/libpcap.so.2 No symbol table info available. #10 0x2812f53c in pcapDispatch (_i=0x0) at ntop.c:95 _i = (void *) 0x0 rc = 0 i = 0 pcapStats = {ps_recv = 85, ps_drop = 0, ps_ifdrop = 0} #11 0x2982a334 in _thread_start () from /usr/lib/libc_r.so.4 No symbol table info available. #12 0x0 in ?? () No symbol table info available. (gdb) print deviceId No symbol "deviceId" in current context. (gdb) list 1 address.c: No such file or directory. (gdb) info stack #0 0x297826a6 in get_elem () from /usr/local/lib/libgdbm.so.3 #1 0x297820c1 in _gdbm_alloc () from /usr/local/lib/libgdbm.so.3 #2 0x29780b40 in gdbm_store () from /usr/local/lib/libgdbm.so.3 #3 0x2812f03f in ntop_gdbm_store (g=0x8069900, d={dptr = 0xbfa7c43c "1062032413", dsize = 11}, v={dptr = 0xbfa7c3f4 "icem5.worldatamail.com", dsize = 72}, r=1, theFile=0x2815dce0 "protocols.c", theLine=659) at leaks.c:830 #4 0x281417ec in processDNSPacket (srcHost=0x92ec000, sport=53, packetData=0xbfa85eee "ót\201\200", length=56, isRequest=0xbfa85a24, positiveReply=0xbfa85a26) at protocols.c:659 #5 0x28135bfd in processIpPkt (bp=0xbfa85ed2 "E", h=0x8699778, length=98, ether_src=0xbfa85e72 "", ether_dst=0xbfa85e6c "", actualDeviceId=0, vlanId=-1) at pbuf.c:1564 #6 0x2813af23 in processPacket (_deviceId=0x0, h=0x8699778, p=0xbfa85ec4 "") at pbuf.c:3542 #7 0x2813782c in queuePacket (_deviceId=0x0, h=0x8699778, p=0x869978a "") at pbuf.c:2317 #8 0x29772e89 in pcap_read () from /usr/lib/libpcap.so.2 #9 0x2977297f in pcap_dispatch () from /usr/lib/libpcap.so.2 #10 0x2812f53c in pcapDispatch (_i=0x0) at ntop.c:95 #11 0x2982a334 in _thread_start () from /usr/lib/libc_r.so.4 #12 0x0 in ?? () (gdb) info threads 2 process 53837, thread 2 0xbfa76c4c in ?? () Segmentation fault (core dumped) -- Janos Dohanics 3D RESEARCH 20120 Rt. 19, Ste. 105-274 Cranberry Twp., PA 16066 (724)-776-7384 http://www.3dresearch.com/ _______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop
