[
https://issues.apache.org/jira/browse/TS-253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12848430#action_12848430
]
Manjesh Nilange commented on TS-253:
------------------------------------
It seemed to work fine for me:
(gdb) where
#0 CacheVC::scanObject (this=0xa084920, event=3900, e=0xa084a18)
at ../../../iocore/cache/CachePart.cc:179
#1 0x0810ee55 in Continuation::handleEvent (this=0xa084920, event=3900,
data=0xa084a18)
at ../../../iocore/eventsystem/I_Continuation.h:147
#2 0x082bfa5c in AIOCallbackInternal::io_complete (this=0xa084a18, event=1,
data=0xb509f2b0) at ../../../iocore/aio/P_AIO.h:75
#3 0x0810ee55 in Continuation::handleEvent (this=0xa084a18, event=1,
data=0xb509f2b0)
at ../../../iocore/eventsystem/I_Continuation.h:147
#4 0x08322def in EThread::process_event (this=0x5ad7008, e=0xb509f2b0,
calling_code=1)
at ../../../iocore/eventsystem/UnixEThread.cc:132
#5 0x083230a2 in EThread::execute (this=0x5ad7008)
at ../../../iocore/eventsystem/UnixEThread.cc:181
#6 0x08321830 in spawn_thread_internal (a=0x9f32e78)
at ../../../iocore/eventsystem/Thread.cc:85
#7 0x00f8f3cc in start_thread () from /lib/tls/libpthread.so.0
#8 0x00d04f0e in clone () from /lib/tls/libc.so.6
(gdb) call vector.get(i)->request_get()->url_get()
$1 = (URL *) 0x3526484
(gdb) p *(((URL *) 0x3526484)->m_url_impl)
$2 = {<HdrHeapObjImpl> = {m_type = 2, m_length = 80, m_obj_flags = 0},
m_len_scheme = 4,
m_len_user = 0, m_len_password = 0, m_len_host = 10, m_len_port = 0,
m_len_path = 39,
m_len_params = 0, m_len_query = 0, m_len_fragment = 0, m_len_printed_string =
0,
m_ptr_scheme = 0x3526781
"http://l.yimg.com/a/i/ww/news/2010/03/22/obamavote-pd.jpg HTTP/1.1\r\nHost:
l.yimg.com\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 (.NET CLR 3.5"..., m_ptr_user = 0x0,
m_ptr_password = 0x0,
m_ptr_host = 0x3526788 "l.yimg.com/a/i/ww/news/2010/03/22/obamavote-pd.jpg
HTTP/1.1\r\nHost: l.yimg.com\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT
5.1; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 (.NET CLR 3.5.30729)"...,
m_ptr_port = 0x0,
m_ptr_path = 0x3526793 "a/i/ww/news/2010/03/22/obamavote-pd.jpg
HTTP/1.1\r\nHost: l.yimg.com\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT
5.1; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 (.NET CLR
3.5.30729)\r\nAccept: i"..., m_ptr_params = 0x0,
m_ptr_query = 0x0, m_ptr_fragment = 0x0, m_ptr_printed_string = 0x0, clean =
true,
m_scheme_wks_idx = 95, m_port = 0, m_url_type = 1 '\001', m_type_code = 0
'\0',
m_capacity_host = 0}
(gdb) c
Continuing.
cache_scan: hostname = 'l.yimg.com', hostlen = 10
Breakpoint 1, CacheVC::scanObject (this=0xa084920, event=3900, e=0xa084a18)
at ../../../iocore/cache/CachePart.cc:179
179 Debug("cache_scan", "hostname = '%s', hostlen = %d", hname,
hlen);
(gdb)
Continuing.
Breakpoint 1, CacheVC::scanObject (this=0xa084920, event=3900, e=0xa084a18)
at ../../../iocore/cache/CachePart.cc:179
179 Debug("cache_scan", "hostname = '%s', hostlen = %d", hname,
hlen);
(gdb) p hname
$3 = "srd.yahoo.comGETHostsrd.yahoo.comUser-AgentMozilla/5.0 (Windows; U;
Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 (.NET CLR
3.5.30729)Acceptimage/png,image/*;q=0.8,*/*;q=0.5Accept-La"...
(gdb) p hlen
$4 = 13
(gdb) c
Continuing.
Breakpoint 1, CacheVC::scanObject (this=0xa084920, event=3900, e=0xa084a18)
at ../../../iocore/cache/CachePart.cc:179
179
Do you think this is because I'm using a fs-cache? What kind of cache is setup
in your environment?
Also John, do you know what code is it that serializes these objects into the
cache in the first place? I'm asking this because the new member I introduced
recently (m_capacity_host) seems to be 0 all the time after deserializing from
cache. This should be fixed too.
> HTTP Header Host ptr field not set
> ----------------------------------
>
> Key: TS-253
> URL: https://issues.apache.org/jira/browse/TS-253
> Project: Traffic Server
> Issue Type: Bug
> Components: Core
> Reporter: John Plevyak
>
> I noticed while lookup at cache scan that the host field of URLImpl is not
> set correctly.
> the m_ptr_host field is 0x0 while the m_len_host is correct (14).
> here is what it looks like:
> $20 = {<HdrHeapObjImpl> = {m_type = 2, m_length = 120, m_obj_flags = 0},
> m_len_scheme = 4,
> m_len_user = 0, m_len_password = 0, m_len_host = 14, m_len_port = 0,
> m_len_path = 0,
> m_len_params = 27, m_len_query = 0, m_len_fragment = 0,
> m_len_printed_string = 0,
> m_ptr_scheme = 0x0,
> m_ptr_user = 0x7ffff2fe9d2f
> "http://www.google.com/intl/en_ALL/images/logo.gif HTTP/1.1\r\nHost:
> www.google.com\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US;
> rv:1.9.2) Gecko/20100115 Firefox/3.6\r\nAccept: image/png,im"...,
> m_ptr_password = 0x0,
> m_ptr_host = 0x0,
> m_ptr_port = 0x7ffff2fe9d36 "www.google.com/intl/en_ALL/images/logo.gif
> HTTP/1.1\r\nHost: www.google.com\r\nUser-Agent: Mozilla/5.0 (Windows; U;
> Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6\r\nAccept:
> image/png,image/*;q"..., m_ptr_path = 0x0,
> m_ptr_params = 0x7ffff2fe9d45 "intl/en_ALL/images/logo.gif
> HTTP/1.1\r\nHost: www.google.com\r\nUser-Agent: Mozilla/5.0 (Windows; U;
> Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6\r\nAccept:
> image/png,image/*;q=0.8,*/*;q=0.5\r"..., m_ptr_query = 0x0,
> m_ptr_fragment = 0x0, m_ptr_printed_string = 0x0, clean = false,
> m_scheme_wks_idx = 0,
> m_port = 0, m_url_type = 0 '\000', m_type_code = 0 '\000', m_capacity_host
> = 1}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.