not uncommon ... read the info in the code - using the debugger unmasks SIGPIPE. IIRC you can set the debugger via the 'signal' command - try help signal.
As for ntop's handling, in 2.2/2.2c, there's an option --ignore-sigpipe. W/ 2.2.5x+ it should be automatic. Check the log for SIGPIPE messages, with the latest cvs you should now see it set: Note: SIGPIPE handler set (ignore) -----Burton -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Julien TOUCHE Sent: Saturday, November 08, 2003 7:52 AM To: Ntop Subject: [Ntop] Broken pipe in 2.2.96 have a broken pipe in 2.2.96 (cvs 8/11/2003) on debian linux. 08/Nov/2003 14:35:09 [hash:564] IDLE_PURGE: FINISHED selection, 218 [out of 278] hosts selected Program received signal SIGPIPE, Broken pipe. [Switching to Thread 65541 (LWP 18830)] 0x4fab5002 in send () from /lib/libc.so.6 (gdb) (gdb) (gdb) where #0 0x4fab5002 in send () from /lib/libc.so.6 #1 0x4f989262 in send () from /lib/libpthread.so.0 #2 0x4f742a01 in sendStringLen ( theString=0xb97fe9d0 "Server: ntop/2.2.96 (i586-pc-linux-gnu (debian Linux 3.0))\r\n", len=60) at http.c:476 #3 0x4f742b19 in sendString (theString=0xb97fe9d0 "Server: ntop/2.2.96 (i586-pc-linux-gnu (debian Linux 3.0))\r\n") at http.c:513 #4 0x4f743f10 in sendHTTPHeader (mimeType=1, headerFlags=4864) at http.c:851 #5 0x4f7438de in returnHTTPspecialStatusCode (statusFlag=4864) at http.c:757 #6 0x4f7437e8 in returnHTTPpageNotFound () at http.c:722 #7 0x4f74942e in handleHTTPrequest (from={s_addr = 3232236043}) at http.c:2586 #8 0x4f787c3c in handleSingleWebConnection (fdmask=0xb97ffa50) at webInterface.c:5558 #9 0x4f78771f in handleWebConnections (notUsed=0x0) at webInterface.c:5426 #10 0x4f984d53 in pthread_start_thread () from /lib/libpthread.so.0 #11 0x4f984d99 in pthread_allocate_stack () from /lib/libpthread.so.0 (gdb) info threads 7 Thread 81926 (LWP 18831) 0x4fab4f82 in recvfrom () from /lib/libc.so.6 * 6 Thread 65541 (LWP 18830) 0x4fab5002 in send () from /lib/libc.so.6 5 Thread 49156 (LWP 18542) 0x4fa17ae2 in sigsuspend () from /lib/libc.so.6 4 Thread 32771 (LWP 18541) 0x4fa5dd7d in strcpy () from /lib/libc.so.6 3 Thread 16386 (LWP 18540) 0x4fa17ae2 in sigsuspend () from /lib/libc.so.6 2 Thread 32769 (LWP 18538) 0x4faad2c0 in poll () from /lib/libc.so.6 1 Thread 16384 (LWP 18512) 0x4fa8af11 in nanosleep () from /lib/libc.so.6 (gdb) bt full #0 0x4fab5002 in send () from /lib/libc.so.6 No symbol table info available. #1 0x4f989262 in send () from /lib/libpthread.so.0 No symbol table info available. #2 0x4f742a01 in sendStringLen ( theString=0xb97fe9d0 "Server: ntop/2.2.96 (i586-pc-linux-gnu (debian Linux 3.0))\r\n", len=60) at http.c:476 bytesSent = 0 rc = -1182799548 retries = 0 #3 0x4f742b19 in sendString (theString=0xb97fe9d0 "Server: ntop/2.2.96 (i586-pc-linux-gnu (debian Linux 3.0))\r\n") at http.c:513 No locals. #4 0x4f743f10 in sendHTTPHeader (mimeType=1, headerFlags=4864) at http.c:851 statusIdx = 19 tmpStr = "Server: ntop/2.2.96 (i586-pc-linux-gnu (debian Linux 3.0))\r\n\0�O" theDate = "Sat, 08 Nov 2003 13:35:40 GMT\0zO\0\0\0\0B\"\210?\0\0\0m\0\0\0" theTime = 1068294940 t = {tm_sec = 40, tm_min = 35, tm_hour = 13, tm_mday = 8, tm_mon = 10, tm_year = 103, tm_wday = 6, tm_yday = 311, tm_isdst = 0, tm_gmtoff = 3600, tm_zone = 0x8055be0 "CET"} #5 0x4f7438de in returnHTTPspecialStatusCode (statusFlag=4864) at http.c:757 statusIdx = 19 buf = "\0\0\0\0\0\0\0\0�\234wO�\024zO\023\0\0\00�\177�\0\0\0\0�\024zO\023\0\0\0T�\ 177�z tO\023\0\0\0H�\177�\001\0\0\0\0\0\0\0�\024zO\0\0\0\0\0\0\0\0\t\205\230O\0�O \0\0\0\0��\177�0�\177�", '\0' <repeats 12 times>, "\n\0\0\0\0\0\0\0\0\0\b", '\0' <repeats 125 times>, "\023\0\0\0\0\0\0\0����\0\0\0\0\0\0\0\0\200\201M\b^��O��\177���\177�\204�\17 7�\0\0\0\03{\230O\200\201M\b\0\0\0\0\0\0\0\0\004��O��\177���\177�\004��O�".. . #6 0x4f7437e8 in returnHTTPpageNotFound () at http.c:722 No locals. #7 0x4f74942e in handleHTTPrequest (from={s_addr = 3232236043}) at http.c:2586 skipLeading = 0 postLen = -1 usedFork = 0 requestedURL = '\0' <repeats 511 times> pw = '\0' <repeats 63 times> agent = '\0' <repeats 255 times> rc = 0 i = 3 httpRequestedAt = {tv_sec = 1068298540, tv_usec = 914337} gzipBytesSent = 0 tmpStr = '\0' <repeats 16 times>, " �\177�\0\0\0\03{\230O��\177�\0\0\0\0\0\0\0\0\037�\177�\0\0\0\0\0\0\0\0\232\2 03\230O\0\0\0\0\0\0\0\0\004�\177�\t\205\230O\0\0\0\0\0\0\0O\0\0\0\0�\210\230 O��O\003\0\0\0��\177�P�\230O \232�OଯO$�\177�\003[\230O�\232�OP�\230O$�\177��<\230OP�\230OP�\230OD�\177� �;\230O \232�O\0�OD�\177�\0�O\0\0\0\0ଯO\224�\177�M��Ol�\177�\0\0\0\0ଯO���O �\177�_\0"... #8 0x4f787c3c in handleSingleWebConnection (fdmask=0xb97ffa50) at webInterface.c:5558 req = {fd = 19, user = '\0' <repeats 127 times>, daemon = "ntop", '\0' <repeats 123 times>, pid = "18830\0\0\0\0", client = {{name = '\0' <repeats 127 times>, addr = '\0' <repeats 127 times>, sin = 0x4fd9cda0, unit = 0x0, request = 0xb97ff434}}, server = {{name = '\0' <repeats 127 times>, addr = '\0' <repeats 127 times>, sin = 0x4fd9cdb0, unit = 0x0, request = 0xb97ff434}}, sink = 0, hostname = 0x4fd9a270 <sock_hostname>, hostaddr = 0x4fd9a21c <sock_hostaddr>, cleanup = 0, config = 0x0} from = {sin_family = 2, sin_port = 58887, sin_addr = {s_addr = 184723648}, sin_zero = "��&� _��"} from_len = 16 #9 0x4f78771f in handleWebConnections (notUsed=0x0) at webInterface.c:5426 rc = 1 mask = {__fds_bits = {262144, 0 <repeats 31 times>}} mask_copy = {__fds_bits = {262144, 0 <repeats 31 times>}} topSock = 18 #10 0x4f984d53 in pthread_start_thread () from /lib/libpthread.so.0 No symbol table info available. #11 0x4f984d99 in pthread_allocate_stack () from /lib/libpthread.so.0 No symbol table info available. Regards Julien _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop
