Hi,

I've installed ntop 3.2 on a RHEL 3AS with kernel 2.4.21-37.0.1.EL. Ntop
is segfaulting with the following:
 **ERROR** Bad magic number (expected=1968/real=9543) [deviceId=0]
lookupHost()[pbuf.c/1088]
Attached is the output from the debugger.

Any ideas ?

TIA,
Marius

______________________________________
Inflex - installed on mailserver for domain @uoradea.ro
Queries to: [EMAIL PROTECTED]
Starting program: /usr/bin/ntop -K -i eth1,eth0 @/etc/ntop.conf
[Thread debugging using libthread_db enabled]
[New Thread -1218583328 (LWP 18324)]
   Processing file /etc/ntop.conf for parameters...
Sat Jan 21 06:02:43 2006  NOTE: Interface merge enabled by default
Sat Jan 21 06:02:43 2006  Initializing gdbm databases
Sat Jan 21 06:02:43 2006  NOTE: Interface merge disabled from prefs file
Sat Jan 21 06:02:43 2006  NOTE: Interface merge disabled due to command line 
switch
[New Thread -1226728528 (LWP 18331)]
[New Thread -1237218384 (LWP 18332)]
[New Thread -1247708240 (LWP 18333)]
[New Thread -1258198096 (LWP 18334)]
[New Thread -1268687952 (LWP 18335)]
[New Thread -1279177808 (LWP 18336)]
[New Thread -1289667664 (LWP 18337)]
[New Thread -1300157520 (LWP 18338)]
[New Thread -1311798352 (LWP 18347)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1289667664 (LWP 18337)]
0x00458daa in _int_malloc () from /lib/tls/libc.so.6
(gdb) bt full
#0  0x00458daa in _int_malloc () from /lib/tls/libc.so.6
No symbol table info available.
#1  0x004580fd in malloc () from /lib/tls/libc.so.6
No symbol table info available.
#2  0x00a4ca17 in ntop_safestrdup (
    ptr=0xb3210160 "Sat 21 Jan 2006 06:18:14 AM EET  **ERROR** Bad magic number 
(expected=1968/real=9543) [deviceId=0] lookupHost()[pbuf.c/1088]",
    file=0xa7d14a "util.c", line=2603) at leaks.c:205
        theOut = 0x51d5c0 "\001"
        len = 1
#3  0x00a6c997 in traceEvent (eventTraceLevel=1, file=0xa77f99 "hash.c",
    line=807,
    format=0xa783f4 "Bad magic number (expected=%d/real=%d) [deviceId=%d] 
lookupHost()[%s/%d]") at util.c:2603
        buf = "Sat 21 Jan 2006 06:18:14 AM EET  **ERROR** Bad magic number 
(expected=1968/real=9543) [deviceId=0] lookupHost()[pbuf.c/1088]", '\0' 
<repeats 3971 times>
        bufMsg = "Bad magic number (expected=1968/real=9543) [deviceId=0] 
lookupHost()[pbuf.c/1088]", '\0' <repeats 942 times>
        beginFileIdx = 0
        mFile = 0x0
        theTime = 1137817094
        t = {tm_sec = 14, tm_min = 18, tm_hour = 6, tm_mday = 21, tm_mon = 0,
---Type <return> to continue, or q <return> to quit---
  tm_year = 106, tm_wday = 6, tm_yday = 20, tm_isdst = 0, tm_gmtoff = 7200,
  tm_zone = 0x976c050 "EET"}
        bufTime = "Sat 21 Jan 2006 06:18:14 AM EET", '\0' <repeats 16 times>
        bufMsgID = '\0' <repeats 127 times>
        bufLineID = '\0' <repeats 127 times>
#4  0x00a460f9 in _lookupHost (hostIpAddress=0xb3211520,
    ether_addr=0xb32118f0 "", vlanId=-1, checkForMultihoming=1 '\001',
    forceUsingIPaddress=0 '\0', actualDeviceId=0, file=0xa7a5fb "pbuf.c",
    line=1088) at hash.c:807
        idx = 9543
        isMultihomed = 0
        el = (HostTraffic *) 0x9b360d8
        buf = '\0' <repeats 12 times>, 
"(«G\000\bÒÀ\ttØÀ\t¸\022!³\201é¦\000tØÀ\tØÉÀ\tÙ\001\000\000-é¦\000ØÉÀ\t\001\000\000\000\a\000\000\000\b\f¨\000\bÒÀ\tÈÉÀ\tø\022!³A\f¥\000¤×À\tÈÉÀ\t\000\000\000\000û¥§\000`\001\000\0000\023!³\b\023!³±\v¥\000\000\000\000\000ØÌQ\000û¥§\000\b\f¨\000\006\000\000\000\bÒÀ\tx\023!³ÿÿ\001\000\bÒÀ\tÿÿÿÿ8\023!³È\004¦\000\bÒÀ\t
 ÕÀ\töߤ\000\004\000\000\000b\001\000\000 
Û\025\000\001\000\000\000\b\f¨\000XÑÀ\t\002\000\000\000x\023"...
        useIPAddressForSearching = 0
        symEthName = 0x0
        ethAddr = 0x9ca2370 "\bÖQ"
        setSpoofingFlag = 0 '\0'
        numRuns = 0
---Type <return> to continue, or q <return> to quit---
        hostFound = 0
        updateIPinfo = 0
#5  0x00a5249f in processIpPkt (bp=0xb321194e "E", h=0xb32139c0, length=66,
    ether_src=0xb32118f6 "", ether_dst=0xb32118f0 "", actualDeviceId=0,
    vlanId=-1) at pbuf.c:1088
        sport = 0
        dport = 0
        sportIdx = -1289677536
        dportIdx = 11017408
        ip = {ip_hl = 5, ip_v = 4, ip_tos = 0 '\0', ip_len = 13312,
  ip_id = 22115, ip_off = 64, ip_ttl = 106 'j', ip_p = 6 '\006',
  ip_sum = 59132, ip_src = {s_addr = 1391711492}, ip_dst = {
    s_addr = 3645484869}}
        ip6 = (struct ip6_hdr *) 0x0
        icmp6Pkt = {icmp6_type = 8 '\b', icmp6_code = 12 '\f',
  icmp6_cksum = 168, icmp6_dataun = {icmp6_un_data32 = {16852332},
    icmp6_un_data16 = {9580, 257}, icmp6_un_data8 = "l%\001\001"}}
        advance = 16852332
        cp = (u_char *) 0xa80c08 "ĺ\004"
        snapend = (u_char *) 0x37eae18b <Address 0x37eae18b out of bounds>
        icmp6len = 28
        nh = 17
        fragmented = 0
---Type <return> to continue, or q <return> to quit---
        tp = {th_sport = 69, th_dport = 37888, th_seq = 4208977,
  th_ack = 3583447355, th_x2 = 1 '\001', th_off = 0 '\0',
  th_flags = 128 '\200', th_win = 36181, th_sum = 34572, th_urp = 49639}
        up = {uh_sport = 13568, uh_dport = 384, uh_ulen = 38973, uh_sum = 166}
        icmpPkt = {icmp_type = 51 '3', icmp_code = 54 '6', icmp_cksum = 13620,
  icmp_hun = {ih_pptr = 52 '4', ih_gwaddr = {s_addr = 942946356}, ih_idseq = {
      icd_id = 14388, icd_seq = 14388}, ih_void = 942946356, ih_pmtu = {
      ipm_void = 14388, ipm_nextmtu = 14388}, ih_rtradv = {
      irt_num_addrs = 52 '4', irt_wpa = 56 '8', irt_lifetime = 14388}},
  icmp_dun = {id_ts = {its_otime = 905984310, its_rtime = 11013128,
      its_ttime = 11019256}, id_ip = {idi_ip = {ip_hl = 6, ip_v = 3,
        ip_tos = 57 '9', ip_len = 13824, ip_id = 3080, ip_off = 168,
        ip_ttl = 248 'ø', ip_p = 35 '#', ip_sum = 168, ip_src = {
          s_addr = 11017408}, ip_dst = {s_addr = 11013128}}}, id_radv = {
      ira_addr = 905984310, ira_preference = 11013128}, id_mask = 905984310,
    id_data = "6"}}
        hlen = 20
        ip_len = 148
        tcpDataLength = 159241664
        udpDataLength = 120
        off = 16384
        tcpUdpLen = 128
        idx = 3005289760
---Type <return> to continue, or q <return> to quit---
        srcHost = (HostTraffic *) 0x9c0c9c8
        dstHost = (HostTraffic *) 0x9c0d208
        srcAddr = {hostFamily = 2, addr = {_hostIp4Address = {
      s_addr = 1391711492}, _hostIp6Address = {in6_u = {
        u6_addr8 = "\004ÕóRÈ\025!³2\030¥\000\220º¹\t", u6_addr16 = {54532,
          21235, 5576, 45857, 6194, 165, 47760, 2489}, u6_addr32 = {
          1391711492, 3005289928, 10819634, 163166864}}}}}
        dstAddr = {hostFamily = 2, addr = {_hostIp4Address = {
      s_addr = 3645484869}, _hostIp6Address = {in6_u = {
        u6_addr8 = "E¯IÙN\031!³±\v¥\000\000\000\000", u6_addr16 = {44869,
          55625, 6478, 45857, 2993, 165, 0, 0}, u6_addr32 = {3645484869,
          3005290830, 10816433, 0}}}}}
        forceUsingIPaddress = 0 '\0'
        tvstrct = {tv_sec = 0, tv_usec = 0}
        theData = (u_char *) 0x1a3df3 "ÆGB"
        found = 0 '\0'
        ctr = {value = 162, modified = 0 '\0'}
        protoList = (ProtocolsList *) 0x0
        newSession = 0
        theSession = (IPSession *) 0x0
        isPassiveSess = 0
        nonFullyRemoteSession = 1
        isVoipSess = 0
---Type <return> to continue, or q <return> to quit---
#6  0x00a598ce in processPacket (_deviceId=0x0, h=0xb32139c0, p=0xb3211940 "")
    at pbuf.c:3542
        pppoe_hdr = (struct pppoe_hdr *) 0x0
        protocol = 164242288
        ehdr = {ether_dhost = "\000\003G¥q\214",
  ether_shost = "\000\a\205f\230À", ether_type = 8}
        trp = (struct tokenRing_header *) 0x9ca2370
        fddip = (struct fddi_header *) 0x0
        hlen = 14
        caplen = 66
        headerDisplacement = 0
        length = 66
        orig_p = (const u_char *) 0xb3211940 ""
        p1 = (const u_char *) 0x0
        ether_src = (u_char *) 0xb32118f6 ""
        ether_dst = (u_char *) 0xb32118f0 ""
        eth_type = 2048
        trllc = (struct tokenRing_llc *) 0x0
        ipxBuffer = "¤\030!³\234À>\000h'^·", '\0' <repeats 12 times>, 
"\024\035ò\017ð\030!³80^·", '\0' <repeats 16 times>, 
"\\v£\00080^·\030%\034\000í\020\000\00080^·\001\000\000\0008\"¨\000ó-§\000\036\000\000\000\b\f¨\000x\"¨\000Ø\030!³
 Û\025\000\030\031!³\032¶¦\0008\"¨\000\000\000\000\000\004\000\000\000«µ¦"
        actualDeviceId = 0
---Type <return> to continue, or q <return> to quit---
        vlanId = -1
        lastUpdateThptTime = 0
        pktStartOfProcessing = {tv_sec = 1137817094, tv_usec = 56027}
        pktEndOfProcessing = {tv_sec = 1137817094, tv_usec = 44886}
#7  0x00a5616a in queuePacket (_deviceId=0x0, h=0xb32139c0, p=0x97dd8c2 "")
    at pbuf.c:2317
        p1 = "[EMAIL 
PROTECTED]:\005è\222Ä\000\000\016\020\000\000\a\b\000\t:\200\000\000\016\020\000\000)\020\000\000\000\000\000\000\000y±!0p=äMN÷ßßÉJ\\ªzAÀ©ªÑ\033÷Á²Óñ±¢)\213A´\001Nþ¼"...
        len = 66
        actDeviceId = -1289676480
#8  0x0017fa91 in pcap_open_live () from /usr/lib/libpcap.so.0.8.3
No symbol table info available.
#9  0x0018132b in pcap_loop () from /usr/lib/libpcap.so.0.8.3
No symbol table info available.
#10 0x00a4d0ee in pcapDispatch (_i=0x0) at ntop.c:97
        rc = 164242288
        pcapStats = {ps_recv = 84, ps_drop = 48, ps_ifdrop = 0}
#11 0x0015bdd8 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#12 0x004c3d1a in clone () from /lib/tls/libc.so.6
No symbol table info available.
(gdb)
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to