if i remember, there was a mail here to say sigpipe will be ignore, or did i get a special one.
(gdb) run -u ntop -w 192.168.2.1:3000 -p /etc/ntop/protocol.list -P
/var/lib/ntop -a /var/lib/ntop/access.log -i eth1,sit1,tun3,tun4,tun9 -t
4 -O /var/log/ntop/ -M -m 192.168.2.0/24
[snip]
19/Dec/2003 22:32:29 IDLE_PURGE: Device 1: no hosts deleted
19/Dec/2003 22:32:29 IDLE_PURGE: FINISHED selection, 0 [out of 8] hosts selected
19/Dec/2003 22:32:29 IDLE_PURGE: Device 2: no hosts deleted
19/Dec/2003 22:32:29 IDLE_PURGE: FINISHED selection, 1 [out of 9] hosts selected
19/Dec/2003 22:32:30 IDLE_PURGE: Device 3 [tun4]: 1 hosts deleted, elapsed time is 0.331348 seconds (0.331348 per host)
19/Dec/2003 22:32:30 IDLE_PURGE: FINISHED selection, 0 [out of 4] hosts selected
19/Dec/2003 22:32:30 IDLE_PURGE: Device 4: no hosts deleted
Program received signal SIGPIPE, Broken pipe.
[Switching to Thread 65541 (LWP 20342)]
0x49747002 in send () from /lib/libc.so.6
(gdb) bt
#0 0x49747002 in send () from /lib/libc.so.6
#1 0x4961b262 in send () from /lib/libpthread.so.0
#2 0x493d04b1 in sendStringLen (
theString=0xb23fe460 "Server: ntop/2.2.97 (i586-pc-linux-gnu (debian Linux 3.0))\r\n", len=60) at http.c:478
#3 0x493d05c9 in sendString (theString=0xb23fe460 "Server: ntop/2.2.97 (i586-pc-linux-gnu (debian Linux 3.0))\r\n")
at http.c:513
#4 0x493d19f0 in sendHTTPHeader (mimeType=1, headerFlags=4864) at http.c:850
#5 0x493d13bc in returnHTTPspecialStatusCode (statusFlag=4864) at http.c:756
#6 0x493d12c4 in returnHTTPpageNotFound () at http.c:721
#7 0x493d3653 in returnHTTPPage (pageName=0xb23ff1e9 "favicon.ico", postLen=-1, from=0xb23ff3fc,
httpRequestedAt=0xb23ff098, usedFork=0xb23ff3e8,
agent=0xb23ff0a8 "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 Firebird/0.7")
at http.c:1544
#8 0x493d704e in handleHTTPrequest (from={hostFamily = 2, addr = {_hostIp4Address = {s_addr = 3232236043}}})
at http.c:2621
#9 0x49418190 in handleSingleWebConnection (fdmask=0xb23ffa50) at webInterface.c:5629
#10 0x49417c5a in handleWebConnections (notUsed=0x0) at webInterface.c:5481
#11 0x49616d53 in pthread_start_thread () from /lib/libpthread.so.0
#12 0x49616d99 in pthread_allocate_stack () from /lib/libpthread.so.0
(gdb) bt full
#0 0x49747002 in send () from /lib/libc.so.6
No symbol table info available.
#1 0x4961b262 in send () from /lib/libpthread.so.0
No symbol table info available.
#2 0x493d04b1 in sendStringLen (
theString=0xb23fe460 "Server: ntop/2.2.97 (i586-pc-linux-gnu (debian Linux 3.0))\r\n", len=60) at http.c:478
bytesSent = 0
rc = -1304435756
retries = 0
fileSerial = 0
#3 0x493d05c9 in sendString (theString=0xb23fe460 "Server: ntop/2.2.97 (i586-pc-linux-gnu (debian Linux 3.0))\r\n")
at http.c:513
No locals.
#4 0x493d19f0 in sendHTTPHeader (mimeType=1, headerFlags=4864) at http.c:850
statusIdx = 19
tmpStr = "Server: ntop/2.2.97 (i586-pc-linux-gnu (debian Linux 3.0))\r\n\0�?�"
theDate = "Fri, 19 Dec 2003 21:33:12 GMT", '\0' <repeats 18 times>
theTime = 1071865992
t = {tm_sec = 12, tm_min = 33, tm_hour = 21, tm_mday = 19, tm_mon = 11, tm_year = 103, tm_wday = 5,
tm_yday = 352, tm_isdst = 0, tm_gmtoff = 3600, tm_zone = 0x8056dd0 "CET"}
#5 0x493d13bc in returnHTTPspecialStatusCode (statusFlag=4864) at http.c:756
statusIdx = 19
buf = "<P>Received request:<BR><BLOCKQUOTE><TT>"GET /favicon.ico HTTP/1.1"</TT></BLOCKQUOTE>\0n ?).\n", '\0' <repeats 31 times>, "[EMAIL PROTECTED] \0���\220aI12/1P�aI\214�?�B\214aI7 PM\214�?�t�?��\231jI \0\0\0\215\200nI\0\0\0\0+\0\0\0\0\0\0\0\0\0yI\001"...
#6 0x493d12c4 in returnHTTPpageNotFound () at http.c:721
No locals.
#7 0x493d3653 in returnHTTPPage (pageName=0xb23ff1e9 "favicon.ico", postLen=-1, from=0xb23ff3fc,
httpRequestedAt=0xb23ff098, usedFork=0xb23ff3e8,
agent=0xb23ff0a8 "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 Firebird/0.7")
at http.c:1544
questionMark = 0x0
sortedColumn = 0
printTrailer = 1
idx = 2
errorCode = 0
pageNum = 0
found = 0
portNr = 0
---Type <return> to continue, or q <return> to quit---
statbuf = {st_dev = 0, __pad1 = 0, st_ino = 1231136977, st_mode = 1247806656, st_nlink = 0, st_uid = 0,
st_gid = 1229435068, st_rdev = 5280383340896059392, __pad2 = 60980, st_size = 1231158096, st_blksize = 1229435052,
st_blocks = 0, st_atime = -1304433100, __unused1 = 1231125295, st_mtime = 1229435068, __unused2 = 1229038592,
st_ctime = 1116, __unused3 = 1231125170, __unused4 = 1229432792, __unused5 = 0}
fd = (FILE *) 0x0
tmpStr = "/opt/share/ntop/html/favicon.ico\0able logs. In past\n\0\0\0\0.\n\0�4�?��<nI<�?��AIt�?���?�\\�?�\0\0yIt�?�<�?�\001\200����?���?���?���?���?���?���?���?�\0\0\0\0\0\0yI\030snI\024\0\0\0\0\0aI\\\0\0\0�rnI�\004`J\0\0\0J\0\0\0\0�\\aI0�\022\bP�aI��?��[aI0�\022\b"...
domainNameParm = 0x0
revertOrder = 0
t = {tm_sec = 0, tm_min = 1734438249, tm_hour = 1852845925, tm_mday = 0, tm_mon = 0, tm_year = 0, tm_wday = 0,
tm_yday = 1247806680, tm_isdst = 1952776202, tm_gmtoff = 1092616292,
tm_zone = 0xa4c4c <Address 0xa4c4c out of bounds>}
showHostsMode = showOnlyLocalHosts
rc = 795112041
#8 0x493d704e in handleHTTPrequest (from={hostFamily = 2, addr = {_hostIp4Address = {s_addr = 3232236043}}})
at http.c:2621
skipLeading = 1
postLen = -1
usedFork = 0
requestedURL = "/favicon.ico", '\0' <repeats 499 times>
pw = '\0' <repeats 63 times>
agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 Firebird/0.7", '\0' <repeats 172 times>
rc = 0
i = 3
httpRequestedAt = {tv_sec = 1071869592, tv_usec = 869212}
gzipBytesSent = 0
tmpStr = "/�?�0�?�/�?�", '\0' <repeats 12 times>, "3\233aI��?�\0\0\0\0\0\0\0\00�?�\0\0\0�\0\0\0\00�?�/�?�\0\0\0\0\0\0\0\0\232�aI\0\0\0\0\0\0\0\0\024�?�\t�aI\0\0\0\0\0\0\0\b\0\0\0\0ѨaI\0\0\0\0\003\0\0\0��?�P�aI �xI��xI4�?�\003{aI��xIP�aI4�?��\\aIP�aIP�aIT�?��[aI �xI\0\0yIT�?�\0\0yI\0\0\0\0��xI��?�M�mI|�"...
#9 0x49418190 in handleSingleWebConnection (fdmask=0xb23ffa50) at webInterface.c:5629
req = {fd = 22, user = '\0' <repeats 127 times>, daemon = "ntop", '\0' <repeats 123 times>,
pid = "20342\0\0\0\0", client = {{name = '\0' <repeats 127 times>, addr = '\0' <repeats 127 times>,
sin = 0x49a2dda0, unit = 0x0, request = 0xb23ff42c}}, server = {{name = '\0' <repeats 127 times>,
addr = '\0' <repeats 127 times>, sin = 0x49a2ddb0, unit = 0x0, request = 0xb23ff42c}}, sink = 0,
hostname = 0x49a2b270 <sock_hostname>, hostaddr = 0x49a2b21c <sock_hostaddr>, cleanup = 0, config = 0x0}
from = {sin_family = 2, sin_port = 4106, sin_addr = {s_addr = 184723648}, sin_zero = "��&� \037S�"}
remote_ipaddr = {hostFamily = 2, addr = {_hostIp4Address = {s_addr = 184723648}}}
---Type <return> to continue, or q <return> to quit---
from_len = 16
#10 0x49417c5a in handleWebConnections (notUsed=0x0) at webInterface.c:5481
rc = 1
mask = {__fds_bits = {2097152, 0 <repeats 31 times>}}
mask_copy = {__fds_bits = {2097152, 0 <repeats 31 times>}}
topSock = 21
#11 0x49616d53 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#12 0x49616d99 in pthread_allocate_stack () from /lib/libpthread.so.0
No symbol table info available.
Regards
Julien
note: sys linux 2.4/woody with disable-ipv6 _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop
