Re: [SQU] Looks like a newbie problem:

From: Henk-Jan Kloosterman <proxy@dont-contact.us>
Date: Sun, 18 Feb 2001 19:41:54 +0100

Did it: but:

(gdb) print *auth_user_request
No symbol "auth_user_request" in current context.

----- Original Message -----
From: "Robert Collins" <robert.collins@itdomain.com.au>
To: "Henk-Jan Kloosterman" <proxy@kloosterman.org>; "Henrik Nordstrom"
<hno@hem.passagen.se>
Cc: <squid-dev@squid-cache.org>
Sent: Saturday, February 17, 2001 12:47 PM
Subject: Re: [SQU] Looks like a newbie problem:

> Thanks Henk-Jan,
> there'll probably be a couple more steps in this.
>
> Get to where I got you to run frame 1,
> frame 1
> print *request(gdb) print *auth_user_request
>
> and if the entry auth_user_request is not null,
> print *auth_user_request
>
> Thanks,

Red Hat Linux release 7.0 (Guinness)
Kernel 2.2.16-22 on an i686
login: root
Password:
Last login: Sun Feb 18 19:37:15 from 150.50.242.2
[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 6495)]
2001/02/18 19:39:29| helperOpenServers: Starting 5 'dnsserver' processes
2001/02/18 19:39:29| helperOpenServers: Starting 5 'auth.pl' processes
2001/02/18 19:39:36| 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)
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

}
2001/02/18 19:39:36| parseHttpRequest: end = {}
2001/02/18 19:39:36| parseHttpRequest: prefix_sz = 372, req_line_sz = 37
2001/02/18 19:39:36| clientSetKeepaliveFlag: http_ver = 1.0
2001/02/18 19:39:36| clientSetKeepaliveFlag: method = GET
2001/02/18 19:39:36| The request GET http://www.ahrend.net/ is DENIED,
because i
t matched 'secureid'
2001/02/18 19:39:36| clientSendMoreData: Appending 966 bytes after 320 bytes
of
headers
2001/02/18 19:39:36| The reply for GET http://www.ahrend.net/ is ALLOWED,
becaus
e it matched 'all'
2001/02/18 19:39:36| clientKeepaliveNextRequest: FD 22
2001/02/18 19:39:36| httpRequestFree: http://www.ahrend.net/
2001/02/18 19:39:51| connStateFree: FD 22
2001/02/18 19:39:51| parseHttpRequest: req_hdr = {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/18 19:39:51| parseHttpRequest: end = {}
2001/02/18 19:39:51| parseHttpRequest: prefix_sz = 363, req_line_sz = 37
2001/02/18 19:39:51| clientSetKeepaliveFlag: http_ver = 1.0
2001/02/18 19:39:51| clientSetKeepaliveFlag: method = GET
2001/02/18 19:39:52| helperHandleRead: end of reply found
2001/02/18 19:39:52| The request GET http://www.ahrend.net/ is ALLOWED,
because
it matched 'secureid'
2001/02/18 19:39:52| clientProcessRequest2: default HIT
2001/02/18 19:39:52| clientCacheHit: http://www.ahrend.net/, 996 bytes

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 6495)]
0x82144d3 in ?? ()
(gdb) bt
#0 0x82144d3 in ?? ()
#1 0x805c015 in clientBuildReplyHeader (http=0x845359c, rep=0x8454c90)
    at client_side.c:1290
#2 0x805c122 in clientBuildReply (http=0x845359c,
    buf=0x8453c20 "HTTP/1.1 200 OK\r\nServer:
Microsoft-IIS/4.0\r\nwww.ahrend.ne
t: max-age=1800\r\nConnection: keep-alive\r\nContent-Location:
http://www.ahrend
.net/index.html\r\nDate: Sat, 17 Feb 2001 08:55:51 GMT\r\nContent-Type:"...,
    size=996) at client_side.c:1330
#3 0x805ce3d in clientSendMoreData (data=0x845359c,
    buf=0x8453c20 "HTTP/1.1 200 OK\r\nServer:
Microsoft-IIS/4.0\r\nwww.ahrend.ne
t: max-age=1800\r\nConnection: keep-alive\r\nContent-Location:
http://www.ahrend
.net/index.html\r\nDate: Sat, 17 Feb 2001 08:55:51 GMT\r\nContent-Type:"...,
    size=996) at client_side.c:1778
#4 0x805c5d1 in clientCacheHit (data=0x845359c,
    buf=0x8453c20 "HTTP/1.1 200 OK\r\nServer:
Microsoft-IIS/4.0\r\nwww.ahrend.ne
t: max-age=1800\r\nConnection: keep-alive\r\nContent-Location:
http://www.ahrend
.net/index.html\r\nDate: Sat, 17 Feb 2001 08:55:51 GMT\r\nContent-Type:"...,
    size=996) at client_side.c:1507
#5 0x809036c in storeClientCallback (sc=0x8453be4, sz=996)
    at store_client.c:164
#6 0x8090ddd in storeClientReadHeader (data=0x8453be4,
    buf=0x8453c20 "HTTP/1.1 200 OK\r\nServer:
Microsoft-IIS/4.0\r\nwww.ahrend.ne
t: max-age=1800\r\nConnection: keep-alive\r\nContent-Location:
http://www.ahrend
---Type <return> to continue, or q <return> to quit---
.net/index.html\r\nDate: Sat, 17 Feb 2001 08:55:51 GMT\r\nContent-Type:"...,
    len=1080) at store_client.c:464
#7 0x809b654 in storeUfsReadDone (fd=26,
    buf=0x8453c20 "HTTP/1.1 200 OK\r\nServer:
Microsoft-IIS/4.0\r\nwww.ahrend.ne
t: max-age=1800\r\nConnection: keep-alive\r\nContent-Location:
http://www.ahrend
.net/index.html\r\nDate: Sat, 17 Feb 2001 08:55:51 GMT\r\nContent-Type:"...,
    len=1080, errflag=0, my_data=0x8431eac) at store_io_ufs.c:217
#8 0x8063816 in diskHandleRead (fd=26, data=0x8457b58) at disk.c:381
#9 0x80900e1 in storeRead (sio=0x8431eac,
    buf=0x8453c20 "HTTP/1.1 200 OK\r\nServer:
Microsoft-IIS/4.0\r\nwww.ahrend.ne
t: max-age=1800\r\nConnection: keep-alive\r\nContent-Location:
http://www.ahrend
.net/index.html\r\nDate: Sat, 17 Feb 2001 08:55:51 GMT\r\nContent-Type:"...,
    size=4096, offset=0, callback=0x80909b4 <storeClientReadHeader>,
    callback_data=0x8453be4) at store_io.c:82
#10 0x80908e7 in storeClientFileRead (sc=0x8453be4) at store_client.c:347
#11 0x8090606 in storeClientCopy2 (e=0x844ece0, sc=0x8453be4)
    at store_client.c:260
#12 0x805dbdc in clientProcessRequest (http=0x845359c) at client_side.c:2223
#13 0x804e5e0 in aclCheckCallback (checklist=0x8457424,
answer=ACCESS_ALLOWED)
    at acl.c:1830
#14 0x804e53c in aclCheck (checklist=0x8457424) at acl.c:1807
#15 0x805a3d4 in clientCheckNoCache (http=0x845359c) at client_side.c:336
#16 0x808368b in redirectStart (http=0x845359c,
---Type <return> to continue, or q <return> to quit---
    handler=0x805a160 <clientRedirectDone>, data=0x845359c) at
redirect.c:123
#17 0x8059fe2 in clientAccessCheckDone (answer=1, data=0x845359c)
    at client_side.c:233
#18 0x804e5e0 in aclCheckCallback (checklist=0x8453834,
answer=ACCESS_ALLOWED)
    at acl.c:1830
#19 0x804e4b6 in aclCheck (checklist=0x8453834) at acl.c:1796
#20 0x80a19aa in authenticateBasicHandleReply (data=0x8457aa4,
    reply=0x8226908 "OK") at auth_basic.c:285
#21 0x806f9fe in helperHandleRead (fd=13, data=0x82268bc) at helper.c:685
#22 0x80621f8 in comm_poll (msec=10) at comm_select.c:432
#23 0x807c419 in main (argc=2, argv=0xbffffa74) at main.c:712
#24 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) frame 1
#1 0x805c015 in clientBuildReplyHeader (http=0x845359c, rep=0x8454c90)
    at client_side.c:1290
1290 authenticateFixHeader(rep, request->auth_user_request,
request,
http->flags.accel);
(gdb) print *request
$1 = {method = 1, protocol = PROTO_HTTP, login = '\000' <repeats 127 times>,
  host = "www.ahrend.net", '\000' <repeats 114 times>,
  auth_user_request = 0x8457130, port = 80, urlpath = {size = 36, len = 1,
    buf = 0x8453a50 "/"}, canonical = 0x8419b60 "http://www.ahrend.net/",
  link_count = 3, flags = {range = 0, nocache = 0, ims = 0, auth = 0,
    cachable = 1, hierarchical = 1, loopdetect = 0, proxy_keepalive = 1,
    proxying = 0, refresh = 0, redirected = 0, need_validation = 0,
    nocache_hack = 0, accelerated = 0, internal = 0, body_sent = 0},
  cache_control = 0x0, range = 0x0, http_ver = {major = 1, minor = 0},
  ims = -1, imslen = -1, max_forwards = -1, client_addr = {
    s_addr = 3422665684}, my_addr = {s_addr = 1430619842}, my_port = 80,
  header = {entries = {capacity = 16, count = 8, items = 0x8457920},
    mask = "\017\000\200\0000\200\000", owner = hoRequest, len = 324},
  body_connection = 0x0, content_length = -1, hier = {code = HIER_NONE,
    host = '\000' <repeats 127 times>, ping = {start = {tv_sec = 0,
        tv_usec = 0}, stop = {tv_sec = 0, tv_usec = 0}, n_sent = 0,
      n_recv = 0, n_replies_expected = 0, timeout = 0, timedout = 0,
      w_rtt = 0, p_rtt = 0}, cd_host = '\000' <repeats 127 times>,
    alg = PEER_SA_NONE, cd_lookup = LOOKUP_NONE, n_choices = 0,
    n_ichoices = 0, peer_select_start = {tv_sec = 0, tv_usec = 0},
    store_complete_stop = {tv_sec = 0, tv_usec = 0}}, err_type = ERR_NONE,
  peer_login = 0x0, lastmod = -1}
(gdb) print *auth_user_request
No symbol "auth_user_request" in current context.
(gdb) print *auth_user_request
No symbol "auth_user_request" in current context.
(gdb)
No symbol "auth_user_request" in current context.
(gdb)
Received on Mon Feb 19 2001 - 06:56:27 MST

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