<snip />

Burton,

Here is the full backtrace:
(gdb) bt full
#0  0x280b47bf in printTrafficStatistics (revertOrder=0) at report.c:268
<snip/>

#1  0x280b2ad2 in returnHTTPPage (pageName=0xbfa87ad1
"trafficStats.html", postLen=-1, from=0xbfa87cf0,
~    httpRequestedAt=0xbfa87688, usedFork=0xbfa87684,
~    agent=0xbfa87990 "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
rv:1.6) Gecko/20040206 Firefox/0.8",
~    referer=0xbfa87890
"http://mainframe.savuti.co.za:3000/Summary.html";) at http.c:1900
~        questionMark = 0x0
~        pageURI = 0x0
~        sortedColumn = 0
~        printTrailer = 1
~        idx = 2
~        errorCode = 0
~        pageNum = 0
~        portNr = 0
~        vsanNr = 0
~        statbuf = {st_dev = 689821364, st_ino = 689821364, st_mode =
30152, st_nlink = 49064, st_uid = 689821364,
~  st_gid = 689821364, st_rdev = 134746496, st_atimespec = {tv_sec =
- -1079478792, tv_nsec = 689784322}, st_mtimespec = {
~    tv_sec = 134746544, tv_nsec = 689812448}, st_ctimespec = {tv_sec =
851, tv_nsec = 689821364}, st_size = 672789604,
~  st_blocks = 2889597337540231168, st_blksize = 672792936, st_flags =
0, st_gen = 3215488520, st_lspare = 689782249,
~  st_birthtimespec = {tv_sec = 672789604, tv_nsec = 0}}
~        fd = (FILE *) 0x0
~        tmpStr = "/usr/local/share/ntop/html/trafficStats.html", '\0'
<repeats 108 times>,
"��\006(�c\035)�\016\024(��\035)�u���c\035)�\021\b\b��\035)�u��\204�\034)�\0
21\b\b�t���\006(\023\020\t(U�}\002\0r\b(\001\0\0\0\0\0\0\0\0r\b(\0\0\0\001
t��\0�f\bH\0\t(du���t��\0�f\bU�}\002�\b\b(8u��\001\0\0\0<u��\0p\b(\0q\b(\0r\
b(",
'\0' <repeats 56 times>...
~        domainNameParm = 0x0
~        revertOrder = 0
~        t = {tm_sec = 0, tm_min = 0, tm_hour = 0, tm_mday = 0, tm_mon
= 0, tm_year = 0, tm_wday = 0, tm_yday = 0,
~  tm_isdst = 0, tm_gmtoff = 0, tm_zone = 0x0}
~        showHostsMode = showAllHosts
~        showLocalityMode = showSentReceived
~        showFcHostsPage = 0
~        vsanId = 0
- ---Type <return> to continue, or q <return> to quit---
~        rc = 672224517
~        i = 672224517
#2  0x280b3b37 in handleHTTPrequest (from=
~              {hostFamily = 2, addr = {_hostIp4Address = {s_addr =
3290560096}, _hostIp6Address = {__u6_addr = {__u6_addr8 =
"`�!�X~���\026\035)\001\0\0", __u6_addr16 = {63072, 50209, 32344,
49064, 5834, 10525, 1, 0}, __u6_addr32 = {3290560096, 3215490648,
689772234, 1}}}}}) at http.c:3083
~        skipLeading = 672224517
~        postLen = -1
~        usedFork = 0
~        requestedURL = "/trafficStats.html", '\0' <repeats 493 times>
~        pw = "4mL2s!nTd6", '\0' <repeats 55 times>
~        agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
rv:1.6) Gecko/20040206 Firefox/0.8", '\0' <repeats 173 times>
~        referer = "http://mainframe.savuti.co.za:3000/Summary.html";,
'\0' <repeats 208 times>
~        rc = 0
~        i = 3
~        httpRequestedAt = {tv_sec = 1079478754, tv_usec = 574203}
~        gzipBytesSent = 0
~        tmpStr = '\0' <repeats 511 times>
#3  0x280f6b3d in handleSingleWebConnection (fdmask=0xbfa87d04) at
webInterface.c:8345
~        from = {sa_len = 16 '\020', sa_family = 2 '\002', sa_data =
"\f��!�`\0\0\0\0\0\0\0"}
~        remote_ipaddr = {hostFamily = 2, addr = {_hostIp4Address =
{s_addr = 1626743236}, _hostIp6Address = {__u6_addr = {
~        __u6_addr8 = "�!�`X~���\026\035)\001\0\0", __u6_addr16 =
{8644, 24822, 32344, 49064, 5834, 10525, 1, 0},
~        __u6_addr32 = {1626743236, 3215490648, 689772234, 1}}}}}
~        from_len = 16
#4  0x280f693e in handleWebConnections (notUsed=0x0) at
webInterface.c:8194
~        rc = 672224517
~        mask = {__fds_bits = {131072, 0 <repeats 31 times>}}
~        mask_copy = {__fds_bits = {131072, 0 <repeats 31 times>}}
~        topSock = 17
#5  0x291cc51e in _thread_start () from /usr/lib/libc_r.so.5
No symbol table info available.


It seems like this piece of code is trying to work with IPV6
addresses, which I choppedout of the kernel. Could this be a possibility?

<snip/>

(First off, I wonder why the important value, ifaddr, isn't shown.  Might
try

# print ifaddr

But as to your thought... Hummmmmm.

The ntop test is whether you gave --disable-ipv6 during ./configure.  If you
didn't, we build with the calls.  Whether it matters is an interesting
thought (or what happens to the program if the IPv6 functions don't exist,
rather).

Now if you don't have a IPv6 kernel, there shouldn't be anything to set in
myGlobals.device[i].v6Addrs... and so you should be skipping the failing
section totally.  But since you're feeding an IPv6 file in (right?) to a non
IPv6 host I guess that could be the issue.

I don't have a spare FreeBSD box, nor really want to build a custom kernel.
Try this little cheesey test program:

----------------------------------------------
       #include <sys/types.h>
       #include <sys/socket.h>
       #include <arpa/inet.h>

char* _intop(struct in6_addr *addr, char *buf, u_short buflen) {
  return (char *)inet_ntop(AF_INET6, addr, buf, buflen);
}

int main(int argc, char *argv[]) {

  char* r;
  struct  in6_addr a;
  char d[INET6_ADDRSTRLEN];
  int i;

  memset(&d, 0, sizeof(d));
  for(i=0;i<16;i++)
    a.in6_u.u6_addr8[i]=15-i;

  printf("call to inet_ntop...");
  r = _intop(&a, d, sizeof(d));
  printf("returned %s\n", d);
}
----------------------------------------------

$ gcc -o inetntoptest inetntoptest.c
$ ./inetntoptest
call to inet_ntop...returned f0e:d0c:b0a:908:706:504:302:100

And let me know what happens...

-----Burton


_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to