Re: [SQU] Looks like a newbie problem:

From: Henk-Jan Kloosterman <proxy@dont-contact.us>
Date: Fri, 16 Feb 2001 10:28:11 +0100

Robbert: I meant I got not get it to "proxy" but, it alos did not crash.

I used Henrik's instructions: Here's the result:

> gdb squid
> run -DNYCd3
>
>
> Hmm.. I think the following might also be required before the run
> command:
>
> handle SIGPIPE nostop noprint pass
>
> or else the debugger might falsely stop Squid when a client aborts a
> connection...
>
> /Henrik

Red Hat Linux release 7.0 (Guinness)
Kernel 2.2.16-22 on an i686
login: root
Password:
Last login: Fri Feb 16 10:23:14 from 150.50.242.2
You have new mail.
[root@mis2 /root]# gdb squid
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(gdb) handle SIGPIPE nostop noprint pass
Signal Stop Print Pass to program Description
SIGPIPE No No Yes Broken pipe
(gdb) run -DNYCd3
Starting program: /usr/sbin/squid -DNYCd3
[New Thread 1024 (LWP 22712)]
2001/02/16 10:26:55| helperOpenServers: Starting 5 'dnsserver' processes
2001/02/16 10:26:55| helperOpenServers: Starting 5 'auth.pl' processes
2001/02/16 10:27:01| parseHttpRequest: req_hdr = {Proxy-Connection:
Keep-Alive
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.16-22 i586)
Host: home.netscape.com
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
Accept-Encoding: gzip
Accept-Language: en
Accept-Charset: iso-8859-1,*,utf-8
Proxy-authorization: Basic aGprbG9vc3Rlcm1hbjoxNDM1
Cookie: UIDC=212.187.36.4:0981140117:684544;
HITO_VISITS=AE0FAA0C0+27F440*EA1BF*
1

}
2001/02/16 10:27:01| parseHttpRequest: end = {}
2001/02/16 10:27:01| parseHttpRequest: prefix_sz = 452, req_line_sz = 40
2001/02/16 10:27:01| clientSetKeepaliveFlag: http_ver = 1.0
2001/02/16 10:27:01| clientSetKeepaliveFlag: method = GET
2001/02/16 10:27:02| helperHandleRead: end of reply found
2001/02/16 10:27:02| The request GET http://home.netscape.com/ is ALLOWED,
becau
se it matched 'secureid'
2001/02/16 10:27:02| clientProcessRequest2: storeGet() MISS
2001/02/16 10:27:23| parseHttpRequest: req_hdr = {If-Modified-Since: Thu, 02
Nov
 2000 08:53:14 GMT; length=663
Proxy-Connection: Keep-Alive
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.16-22 i586)
Pragma: no-cache
Host: www.ahrend.net
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
Accept-Encoding: gzip
Accept-Language: en
Accept-Charset: iso-8859-1,*,utf-8
Proxy-authorization: Basic aGprbG9vc3Rlcm1hbjoxNDM1

}
2001/02/16 10:27:23| parseHttpRequest: end = {}
2001/02/16 10:27:23| parseHttpRequest: prefix_sz = 443, req_line_sz = 37
2001/02/16 10:27:23| clientSetKeepaliveFlag: http_ver = 1.0
2001/02/16 10:27:23| clientSetKeepaliveFlag: method = GET
2001/02/16 10:27:23| The request GET http://www.ahrend.net/ is ALLOWED,
because
it matched 'secureid'
2001/02/16 10:27:23| clientProcessRequest2: storeGet() MISS
2001/02/16 10:27:23| helperHandleRead: end of reply found

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 22712)]
0x82144d3 in ?? ()
(gdb) backtrace
#0 0x82144d3 in ?? ()
#1 0x805c015 in clientBuildReplyHeader (http=0x84562fc, rep=0x845bcf0)
    at client_side.c:1290
#2 0x805c122 in clientBuildReply (http=0x84562fc,
    buf=0x8456c80 "HTTP/1.1 304 Not Modified\r\nServer:
Microsoft-IIS/4.0\r\nDat
e: Fri, 16 Feb 2001 09:27:20 GMT\r\nwww.ahrend.net:
max-age=1800\r\nConnection:
keep-alive\r\nContent-Location: http://www.ahrend.net/index.html\r\nETa"...,
    size=248) at client_side.c:1330
#3 0x805ce3d in clientSendMoreData (data=0x84562fc,
    buf=0x8456c80 "HTTP/1.1 304 Not Modified\r\nServer:
Microsoft-IIS/4.0\r\nDat
e: Fri, 16 Feb 2001 09:27:20 GMT\r\nwww.ahrend.net:
max-age=1800\r\nConnection:
keep-alive\r\nContent-Location: http://www.ahrend.net/index.html\r\nETa"...,
    size=248) at client_side.c:1778
#4 0x809036c in storeClientCallback (sc=0x8456c44, sz=248)
    at store_client.c:164
#5 0x8090606 in storeClientCopy2 (e=0x84565a0, sc=0x8456c44)
    at store_client.c:260
#6 0x8091066 in InvokeHandlers (e=0x84565a0) at store_client.c:588
#7 0x808e4f7 in storeAppend (e=0x84565a0,
    buf=0x8111ca0 "c01:66b3\"\r\nContent-Length: 0\r\n\r\nr:
Microsoft-IIS/4.0\r
\nDate: Fri, 16 Feb 2001 09:27:20 GMT\r\nwww.ahrend.net:
max-age=1800\r\nConnect
ion: keep-alive\r\nContent-Location:
http://www.ahrend.net/index.html\r\nETa"...
, len=32) at store.c:461
---Type <return> to continue, or q <return> to quit---
#8 0x80711e3 in httpReadReply (fd=28, data=0x8457ebc) at http.c:560
#9 0x80621f8 in comm_poll (msec=10) at comm_select.c:432
#10 0x807c419 in main (argc=2, argv=0xbffffa74) at main.c:712
#11 0x400cdf31 in __libc_start_main (main=0x807c044 <main>, argc=2,
    ubp_av=0xbffffa74, init=0x8049ea8 <_init>, fini=0x80a761c <_fini>,
    rtld_fini=0x4000e274 <_dl_fini>, stack_end=0xbffffa6c)
    at ../sysdeps/generic/libc-start.c:129
(gdb)
Received on Fri Feb 16 2001 - 02:49:01 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:32 MST