Running under gdb, you'll get the sigpipe, regardless of whether you want it.

Try the --ignore-sigpipe option and let us know...  It may not work, because the 
sigpipe I was trapping is the one on the http:// side...

-----Burton

---------- Original Message ----------------------------------
From: "Earl C. Terwilliger" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Mon, 15 Jul 2002 08:59:19 -0400

>Hello,
>
>I finally got a trace.  I think the problem is related to the -b
>localhost:4000 parameter. I was originally running 2.1 for a few days fine
>without this paramater but now I need to capture the data into a postgresql
>database. So now when I run with the -b it crashes.
>
>Let me know if you need something else.
>
>Earl
>
>
>Here is the ouput from gdb:
>
>..... lots of INSERT INTO  deleted...................
>
>14/Jul/2002 07:36:29 INSERT INTO TCPsessions (Client, Server, ClientPort, 
>ServerPort, DataSent, DataRcvd, FirstSeen, LastSeen) VALUES ('200.62.21.187',
>'200.62.22.25', '2404', '3000', '128', '96', '2002-07-14 07:36:20',
>'2002-07-14 07:36:29')
>
>Program received signal SIGPIPE, Broken pipe.
>[Switching to Thread 4101 (LWP 30306)]
>0x405aea42 in send () from /lib/libc.so.6
>(gdb) list
>735     /* ************************************ */
>736
>737     /* That's the meat */
>738     #ifdef WIN32
>739     int ntop_main(int argc, char *argv[]) {
>740     #else
>741     int main(int argc, char *argv[]) {
>742     #endif
>743       int i, userSpecified;
>744       char ifStr[196] = {0};
>(gdb) info stack
>#0  0x405aea42 in send () from /lib/libc.so.6
>#1  0x404a188e in send () from /lib/libpthread.so.0
>#2  0x40034fdc in sendStringLen (theString=0xbf1ff03c "HTTP/1.0 404 Not 
>Found\n", len=23) at http.c:453
>#3  0x40035071 in sendString (theString=0xbf1ff03c "HTTP/1.0 404 Not Found\n")
>at http.c:490
>#4  0x40035be0 in sendHTTPHeader (mimeType=1, headerFlags=4864) at http.c:769
>#5  0x40035984 in returnHTTPspecialStatusCode (statusFlag=4864) at http.c:710
>#6  0x400358f0 in returnHTTPpageNotFound () at http.c:675
>#7  0x40039165 in handleHTTPrequest (from={s_addr = 3359512202}) at
>http.c:2092
>#8  0x4005b329 in handleSingleWebConnection (fdmask=0xbf1ffa8c) at
>webInterface.c:3571
>#9  0x4005b041 in handleWebConnections (notUsed=0x0) at webInterface.c:3439
>#10 0x4049bf77 in pthread_start_thread () from /lib/libpthread.so.0
>(gdb) bt full
>No symbol table info available.
>#1  0x404a188e in send () from /lib/libpthread.so.0
>No symbol table info available.
>#2  0x40034fdc in sendStringLen (theString=0xbf1ff03c "HTTP/1.0 404 Not 
>Found\n", len=23) at http.c:453
>        len = 23
>        bytesSent = 0
>        rc = -1
>        retries = 0
>        buffer = "HTTP/1.0 404 Not
>Found\n�\223��El�\006���\236�\211/_��/�_\022�IQ\v\a\0\0c\0Vj���\217-\237K\223\232\0228�\025\005ǡ��o\0,�\177\r�\r\232���Y\224\203\005La9\e4V�\"\203�\v\001�
>\217����p�i7��l�\035xl]w\232W$��T�\214.'�\034}�\027��{\225\023e����v[n\023�1T\227�I\r\234G~u}��Y\203�+^\032\233��\006��'���\232mh^w~iv>�@8%\006�X׬"...
>#3  0x40035071 in sendString (theString=0xbf1ff03c "HTTP/1.0 404 Not Found\n")
>at http.c:490
>        theString = 0x404aaadc "�I\001"
>#4  0x40035be0 in sendHTTPHeader (mimeType=1, headerFlags=4864) at http.c:769
>        statusIdx = -32
>        tmpStr = "HTTP/1.0 404 Not
>Found\n\0c\232\t@\0\0\0\0\017\0\0\0�$\001@\0\0\0\0�V$@��\037��\0@\0\0\0\0�V$@"
>        theDate = "���\bPN1E\0\0\0\0d�\f@\0\0\0\0��\"\b��\037��\212\003@
>#\005\bc\232\t@]\a\0\0\001\0\0"
>        theTime = 1026660989
>        t = {tm_sec = 134554416, tm_min = 1079975840, tm_hour = -1088425980,
>tm_mday = 1078579454,
>  tm_mon = 1076407288, tm_year = 134554400, tm_wday = -1088425948, tm_yday =
>1076199034,
>  tm_isdst = 134554496, tm_gmtoff = 1074371171, tm_zone = 0xbf1ff024
>"��\037��\212\003@ #\005\bc\232\t@]\a"}
>#5  0x40035984 in returnHTTPspecialStatusCode (statusFlag=4864) at http.c:710
>        statusFlag = -32
>        statusIdx = 19
>        buf =
>" 
>�Z@h\0\0\0ܪJ@2�I@ܪJ@����\004�\037��\030J@\0\0\0\0\0\0\0\0��\037��\030J@d�\f@�\035\005\b\0\0\0\0d�\f@�\035\005\b��\037���\037�\tJ\003@\022\0\0\0L�\037�\001",
>'\0' <repeats 11 times>,
>"T�\037���\037�\\�\037�\200�\f@\0\0\0\0\022\0\0\0\0\0\0\0����\0\0\0\0l�\037\n\0\0\0\0\fC_@\030�g\b\004\0\0\0\200�\n\0\0\0\004",
>'\0' <repeats 125 times>,
>"\030�g\b\030�g\b\004�\037��#T@\023\0\0\00\004\0\0\0\0\0\0"...
>#6  0x400358f0 in returnHTTPpageNotFound () at http.c:675
>No locals.
>#7  0x40039165 in handleHTTPrequest (from={s_addr = 3359512202}) at
>http.c:2092
>        skipLeading = -32
>        postLen = -1
>---Type <return> to continue, or q <return> to quit---
>        usedFork = 0
>        requestedURL = '\0' <repeats 511 times>
>        pw = '\0' <repeats 63 times>
>        rc = -32
>        i = -1088424580
>        httpRequestedAt = {tv_sec = 1026646584, tv_usec = 222623}
>        gzipBytesSent = 0
>#8  0x4005b329 in handleSingleWebConnection (fdmask=0xbf1ffa8c) at
>webInterface.c:3571
>        fdmask = (fd_set *) 0xbf1ffa8c
>        from = {sin_family = 2, sin_port = 25609, sin_addr = {s_addr =
>2316713672},
>  sin_zero = "\0\0\0\0\bPb�"}
>        from_len = 16
>#9  0x4005b041 in handleWebConnections (notUsed=0x0) at webInterface.c:3439
>        rc = 1
>        mask = {__fds_bits = {131072, 0 <repeats 31 times>}}
>        mask_copy = {__fds_bits = {131072, 0 <repeats 31 times>}}
>        topSock = 17
>#10 0x4049bf77 in pthread_start_thread () from /lib/libpthread.so.0
>No symbol table info available.
>
>
>
>
>On Saturday 13 July 2002 12:49 pm, Burton M. Strauss III wrote:
>> Are you using different parameters under gdb?  -d ?? -K ??
>>
>> Try running it normally and then attaching to the process:
>>
>> gdb /usr/bin/ntop <pid>
>>
>> where pid is the process # of the base (1st) ntop process.
>>
>>
>> -----Burton
>>
>>
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
>> Of Earl C. Terwilliger
>> Sent: Friday, July 12, 2002 4:41 PM
>> To: [EMAIL PROTECTED]
>> Subject: [Ntop-dev] NTOP 2.1 problem
>>
>>
>> Hello,
>>
>> Sorry I have not reported back but I am having a weird problem and can't
>> get a
>> trace.
>>
>> Ntop 2.1 (Redhat linux 7.3) with the -d and -b localhost:4000 parms
>> crashes. I think it runs fine without -b localhost:4000
>>
>> So I run it under gdb to get a trace and it runs forever fine....??
>> When I go back to run it without gdb, crash....
>>
>> Earl
>>
>> _______________________________________________
>> Ntop-dev mailing list
>> [EMAIL PROTECTED]
>> http://lists.ntop.org/mailman/listinfo/ntop-dev
>>
>> _______________________________________________
>> Ntop-dev mailing list
>> [EMAIL PROTECTED]
>> http://lists.ntop.org/mailman/listinfo/ntop-dev
>
>_______________________________________________
>Ntop-dev mailing list
>[EMAIL PROTECTED]
>http://lists.ntop.org/mailman/listinfo/ntop-dev
>



__________________________________________________
D O T E A S Y - "Join the web hosting revolution!"
             http://www.doteasy.com
_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop-dev

Reply via email to