Re: [SQU] Looks like a newbie problem:

From: Henk-Jan Kloosterman <proxy@dont-contact.us>
Date: Sat, 17 Feb 2001 09:20:50 +0100

All the steps I did are on the screen: But..........

The behaviour is different , as when I run it without GDB!
When I run it "plain" I first get authenticated.
When I run it, I do not get authenticated!

Perhaps Henrik can tell me what I am doing wrong?

> Henk-Jan,
> I need you to run squid as per henriks' instructions. and when it
stops, type
> bt
> frame 1
> info locals
> frame 2
> info locals
>
>
> Thanks,
> Rob

Red Hat Linux release 7.0 (Guinness)
Kernel 2.2.16-22 on an i686
login: root
Password:
Last login: Sat Feb 17 08:41:43 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) run -DNYCd3
Starting program: /usr/sbin/squid -DNYCd3
[New Thread 1024 (LWP 9069)]
2001/02/17 08:51:22| helperOpenServers: Starting 5 'dnsserver' processes
2001/02/17 08:51:22| helperOpenServers: Starting 5 'auth.pl' processes
2001/02/17 09:05:59| parseHttpRequest: req_hdr = {Referer:
http://www.ahrend.net
/top.html
Proxy-Connection: Keep-Alive
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.16-22 i586)
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/17 09:05:59| parseHttpRequest: end = {}
2001/02/17 09:05:59| parseHttpRequest: prefix_sz = 415, req_line_sz = 53
2001/02/17 09:05:59| clientSetKeepaliveFlag: http_ver = 1.0
2001/02/17 09:05:59| clientSetKeepaliveFlag: method = GET
2001/02/17 09:06:00| parseHttpRequest: req_hdr = {Referer:
http://www.ahrend.net
/top.html
Proxy-Connection: Keep-Alive
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.16-22 i586)
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/17 09:06:00| parseHttpRequest: end = {}
2001/02/17 09:06:00| parseHttpRequest: prefix_sz = 415, req_line_sz = 53
2001/02/17 09:06:00| clientSetKeepaliveFlag: http_ver = 1.0
2001/02/17 09:06:00| clientSetKeepaliveFlag: method = GET
2001/02/17 09:06:00| parseHttpRequest: req_hdr = {Referer:
http://www.ahrend.net
/top.html
Proxy-Connection: Keep-Alive
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.16-22 i586)
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/17 09:06:00| parseHttpRequest: end = {}
2001/02/17 09:06:00| parseHttpRequest: prefix_sz = 415, req_line_sz = 53
2001/02/17 09:06:00| clientSetKeepaliveFlag: http_ver = 1.0
2001/02/17 09:06:00| clientSetKeepaliveFlag: method = GET
2001/02/17 09:06:01| helperHandleRead: end of reply found
2001/02/17 09:06:01| The request GET http://www.ahrend.net/ima/butnptt2.gif
is A
LLOWED, because it matched 'secureid'
2001/02/17 09:06:01| clientProcessRequest2: default HIT
2001/02/17 09:06:01| clientCacheHit: http://www.ahrend.net/ima/butnptt2.gif,
133
6 bytes

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 9069)]
0x82144d3 in ?? ()
(gdb) nt
Undefined command: "nt". Try "help".
(gdb) bt
#0 0x82144d3 in ?? ()
#1 0x805c015 in clientBuildReplyHeader (http=0x8311334, rep=0x82e9478)
    at client_side.c:1290
#2 0x805c122 in clientBuildReply (http=0x8311334,
    buf=0x845a050 "HTTP/1.1 200 OK\r\nServer:
Microsoft-IIS/4.0\r\nwww.ahrend.ne
t: max-age=1800\r\nConnection: keep-alive\r\nDate: Wed, 14 Feb 2001 10:56:29
GMT
\r\nContent-Type: image/gif\r\nAccept-Ranges: bytes\r\nLast-Modified:
Thu"...,
    size=1336) at client_side.c:1330
#3 0x805ce3d in clientSendMoreData (data=0x8311334,
    buf=0x845a050 "HTTP/1.1 200 OK\r\nServer:
Microsoft-IIS/4.0\r\nwww.ahrend.ne
t: max-age=1800\r\nConnection: keep-alive\r\nDate: Wed, 14 Feb 2001 10:56:29
GMT
\r\nContent-Type: image/gif\r\nAccept-Ranges: bytes\r\nLast-Modified:
Thu"...,
    size=1336) at client_side.c:1778
#4 0x805c5d1 in clientCacheHit (data=0x8311334,
    buf=0x845a050 "HTTP/1.1 200 OK\r\nServer:
Microsoft-IIS/4.0\r\nwww.ahrend.ne
t: max-age=1800\r\nConnection: keep-alive\r\nDate: Wed, 14 Feb 2001 10:56:29
GMT
\r\nContent-Type: image/gif\r\nAccept-Ranges: bytes\r\nLast-Modified:
Thu"...,
    size=1336) at client_side.c:1507
#5 0x809036c in storeClientCallback (sc=0x82eca1c, sz=1336)
    at store_client.c:164
#6 0x8090ddd in storeClientReadHeader (data=0x82eca1c,
    buf=0x845a050 "HTTP/1.1 200 OK\r\nServer:
Microsoft-IIS/4.0\r\nwww.ahrend.ne
t: max-age=1800\r\nConnection: keep-alive\r\nDate: Wed, 14 Feb 2001 10:56:29
GMT
---Type <return> to continue, or q <return> to quit---
\r\nContent-Type: image/gif\r\nAccept-Ranges: bytes\r\nLast-Modified:
Thu"...,
    len=1436) at store_client.c:464
#7 0x809b654 in storeUfsReadDone (fd=28,
    buf=0x845a050 "HTTP/1.1 200 OK\r\nServer:
Microsoft-IIS/4.0\r\nwww.ahrend.ne
t: max-age=1800\r\nConnection: keep-alive\r\nDate: Wed, 14 Feb 2001 10:56:29
GMT
\r\nContent-Type: image/gif\r\nAccept-Ranges: bytes\r\nLast-Modified:
Thu"...,
    len=1436, errflag=0, my_data=0x8431e4c) at store_io_ufs.c:217
#8 0x8063816 in diskHandleRead (fd=28, data=0x82eca58) at disk.c:381
#9 0x80900e1 in storeRead (sio=0x8431e4c,
    buf=0x845a050 "HTTP/1.1 200 OK\r\nServer:
Microsoft-IIS/4.0\r\nwww.ahrend.ne
t: max-age=1800\r\nConnection: keep-alive\r\nDate: Wed, 14 Feb 2001 10:56:29
GMT
\r\nContent-Type: image/gif\r\nAccept-Ranges: bytes\r\nLast-Modified:
Thu"...,
    size=4096, offset=0, callback=0x80909b4 <storeClientReadHeader>,
    callback_data=0x82eca1c) at store_io.c:82
#10 0x80908e7 in storeClientFileRead (sc=0x82eca1c) at store_client.c:347
#11 0x8090606 in storeClientCopy2 (e=0x84516b0, sc=0x82eca1c)
    at store_client.c:260
#12 0x805dbdc in clientProcessRequest (http=0x8311334) at client_side.c:2223
#13 0x804e5e0 in aclCheckCallback (checklist=0x82f373c,
answer=ACCESS_ALLOWED)
    at acl.c:1830
#14 0x804e53c in aclCheck (checklist=0x82f373c) at acl.c:1807
#15 0x805a3d4 in clientCheckNoCache (http=0x8311334) at client_side.c:336
#16 0x808368b in redirectStart (http=0x8311334,
---Type <return> to continue, or q <return> to quit---
    handler=0x805a160 <clientRedirectDone>, data=0x8311334) at
redirect.c:123
#17 0x8059fe2 in clientAccessCheckDone (answer=1, data=0x8311334)
    at client_side.c:233
#18 0x804e5e0 in aclCheckCallback (checklist=0x830edac,
answer=ACCESS_ALLOWED)
    at acl.c:1830
#19 0x804e4b6 in aclCheck (checklist=0x830edac) at acl.c:1796
#20 0x80a19aa in authenticateBasicHandleReply (data=0x83080c4,
    reply=0x82268a8 "OK") at auth_basic.c:285
#21 0x806f9fe in helperHandleRead (fd=13, data=0x822685c) at helper.c:685
#22 0x80621f8 in comm_poll (msec=10) at comm_select.c:432
#23 0x807c419 in main (argc=2, argv=0xbffffc24) at main.c:712
#24 0x400cdf31 in __libc_start_main (main=0x807c044 <main>, argc=2,
    ubp_av=0xbffffc24, init=0x8049ea8 <_init>, fini=0x80a761c <_fini>,
    rtld_fini=0x4000e274 <_dl_fini>, stack_end=0xbffffc1c)
    at ../sysdeps/generic/libc-start.c:129
(gdb) frame 1
#1 0x805c015 in clientBuildReplyHeader (http=0x8311334, rep=0x82e9478)
    at client_side.c:1290
1290 authenticateFixHeader(rep, request->auth_user_request,
request,
http->flags.accel);
(gdb) info locals
hdr = (HttpHeader *) 0x82e94b4
is_hit = 1
request = (request_t *) 0x842f0f0
strConnection = {size = 0, len = 0, buf = 0x0}
e = (HttpHeaderEntry *) 0x8214528
pos = 9
(gdb) frame 2
#2 0x805c122 in clientBuildReply (http=0x8311334,
    buf=0x845a050 "HTTP/1.1 200 OK\r\nServer:
Microsoft-IIS/4.0\r\nwww.ahrend.ne
t: max-age=1800\r\nConnection: keep-alive\r\nDate: Wed, 14 Feb 2001 10:56:29
GMT
\r\nContent-Type: image/gif\r\nAccept-Ranges: bytes\r\nLast-Modified:
Thu"...,
    size=1336) at client_side.c:1330
1330 clientBuildReplyHeader(http, rep);
(gdb) info locals
http = (clientHttpRequest *) 0x8311334
size = 137270436
rep = (HttpReply *) 0x82e9478
k = 136398120
(gdb)
Received on Sun Feb 18 2001 - 10:39:22 MST

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