[jira] [Created] (TS-1060) fail assert at CacheVC::handleReadDone

2011-12-20 Thread Zhao Yongming (Created) (JIRA)
fail assert at CacheVC::handleReadDone
--

 Key: TS-1060
 URL: https://issues.apache.org/jira/browse/TS-1060
 Project: Traffic Server
  Issue Type: Bug
  Components: Core, HTTP
Affects Versions: 3.0.1
 Environment: v3.0.x, with some patch from taobao
Reporter: Zhao Yongming
Assignee: Zhao Yongming
 Fix For: 3.0.2


{code}
#0  0x003f96032a45 in raise () from /lib64/libc.so.6
#1  0x003f96034225 in abort () from /lib64/libc.so.6
#2  0x2b0dea6f6394 in ink_die_die_die (retval=1) at ink_error.cc:43
#3  0x2b0dea6f6466 in ink_fatal_va(int, const char *, typedef __va_list_tag 
__va_list_tag *) (return_code=1, 
message_format=0x2b0deb9ed240 "Cache.cc:1959: failed assert `((Doc *) 
buf->data())->magic == DOC_MAGIC`", ap=0x2b0deb9ed140) at ink_error.cc:65
#4  0x2b0dea6f6531 in ink_fatal (return_code=1, 
message_format=0x2b0deb9ed240 "Cache.cc:1959: failed assert `((Doc *) 
buf->data())->magic == DOC_MAGIC`") at ink_error.cc:73
#5  0x2b0dea6f4ece in _ink_assert (a=0x773770 "((Doc *) buf->data())->magic 
== DOC_MAGIC", f=0x7726be "Cache.cc", l=1959) at ink_assert.cc:44
#6  0x0069429a in CacheVC::handleReadDone (this=0x3d51710, event=3900, 
e=0x0) at Cache.cc:1959
#7  0x004e02fa in Continuation::handleEvent (this=0x3d51710, 
event=3900, data=0x0) at ../iocore/eventsystem/I_Continuation.h:146
#8  0x006b7715 in Cache::open_read (this=0x3aeaf00, 
cont=0x2b0e20737fa8, key=0x2b0deb9ed9c0, request=0x2b0e207365d0, 
params=0x2b0e20735e08, 
type=CACHE_FRAG_TYPE_HTTP, 
hostname=0x2b0e300458cb 
"img01.taobaocdn.combao/uploaded/i1/T1701bXfdDXXaCZpA__104916.jpg_160x160.jpgimg01.taobaocdn.comhttp://img01.taobaocdn.com/bao/uploaded/i1/T1701bXfdDXXaCZpA__104916.jpg_160x160.jpg";,
 host_len=19) at CacheRead.cc:231
#9  0x0069cfcf in Cache::open_read (this=0x3aeaf00, 
cont=0x2b0e20737fa8, url=0x2b0e207365e8, request=0x2b0e207365d0, 
params=0x2b0e20735e08, 
type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1080
#10 0x0069a9f6 in CacheProcessor::open_read (this=0xf44d30, 
cont=0x2b0e20737fa8, url=0x2b0e207365e8, request=0x2b0e207365d0, 
params=0x2b0e20735e08, 
pin_in_cache=0, type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3041
#11 0x0055937c in HttpCacheSM::do_cache_open_read (this=0x2b0e20737fa8) 
at HttpCacheSM.cc:220
#12 0x005594cd in HttpCacheSM::open_read (this=0x2b0e20737fa8, 
url=0x2b0e207365e8, hdr=0x2b0e207365d0, params=0x2b0e20735e08, pin_in_cache=0)
at HttpCacheSM.cc:252
#13 0x0057802d in HttpSM::do_cache_lookup_and_read 
(this=0x2b0e20735d10) at HttpSM.cc:3911
#14 0x005808d6 in HttpSM::set_next_state (this=0x2b0e20735d10) at 
HttpSM.cc:6455
#15 0x005801fa in HttpSM::call_transact_and_set_next_state 
(this=0x2b0e20735d10, f=0) at HttpSM.cc:6346
#16 0x0056f82a in HttpSM::handle_api_return (this=0x2b0e20735d10) at 
HttpSM.cc:1519
#17 0x00585eb5 in HttpSM::do_api_callout (this=0x2b0e20735d10) at 
HttpSM.cc:502
#18 0x0058026a in HttpSM::set_next_state (this=0x2b0e20735d10) at 
HttpSM.cc:6380
#19 0x005801fa in HttpSM::call_transact_and_set_next_state 
(this=0x2b0e20735d10, f=0) at HttpSM.cc:6346
#20 0x00580391 in HttpSM::set_next_state (this=0x2b0e20735d10) at 
HttpSM.cc:6396
#21 0x005801fa in HttpSM::call_transact_and_set_next_state 
(this=0x2b0e20735d10, f=0) at HttpSM.cc:6346
#22 0x0056f82a in HttpSM::handle_api_return (this=0x2b0e20735d10) at 
HttpSM.cc:1519
#23 0x00585eb5 in HttpSM::do_api_callout (this=0x2b0e20735d10) at 
HttpSM.cc:502
#24 0x0058026a in HttpSM::set_next_state (this=0x2b0e20735d10) at 
HttpSM.cc:6380
#25 0x005801fa in HttpSM::call_transact_and_set_next_state 
(this=0x2b0e20735d10, f=0) at HttpSM.cc:6346
#26 0x0056f82a in HttpSM::handle_api_return (this=0x2b0e20735d10) at 
HttpSM.cc:1519
#27 0x00585eb5 in HttpSM::do_api_callout (this=0x2b0e20735d10) at 
HttpSM.cc:502
#28 0x0058026a in HttpSM::set_next_state (this=0x2b0e20735d10) at 
HttpSM.cc:6380
#29 0x005801fa in HttpSM::call_transact_and_set_next_state 
(this=0x2b0e20735d10, f=0x58f002 
)
at HttpSM.cc:6346
#30 0x0056d45a in HttpSM::state_read_client_request_header 
(this=0x2b0e20735d10, event=100, data=0x2b0e440157c8) at HttpSM.cc:783
#31 0x0056caf5 in HttpSM::setup_client_read_request_header 
(this=0x2b0e20735d10) at HttpSM.cc:645
#32 0x0056f74c in HttpSM::handle_api_return (this=0x2b0e20735d10) at 
HttpSM.cc:1495
#33 0x00585eb5 in HttpSM::do_api_callout (this=0x2b0e20735d10) at 
HttpSM.cc:502
#34 0x0056c32c in HttpSM::state_add_to_list (this=0x2b0e20735d10, 
event=0, data=0x0) at HttpSM.cc:530
#35 0x0056ca1f in HttpSM::attach_client_session (this=0x2b0e20735d10, 
client_vc=0x2b0e1c0112c0, buffer_reader=0x2b0e1c0193d8) at HttpSM.cc:632
#36

[jira] [Assigned] (TS-998) Broken ClientReq in TSAPI

2011-12-20 Thread Nick Kew (Assigned) (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-998?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nick Kew reassigned TS-998:
---

Assignee: Nick Kew  (was: Alan M. Carroll)

> Broken ClientReq in TSAPI
> -
>
> Key: TS-998
> URL: https://issues.apache.org/jira/browse/TS-998
> Project: Traffic Server
>  Issue Type: Bug
>Affects Versions: 3.0.1
> Environment: any
>Reporter: Nick Kew
>Assignee: Nick Kew
> Fix For: 3.1.2
>
>
> Extracting a Request using TSHttpTxnClientReqGet API yields a bogus Request 
> line.
> Expected behaviour: In a PRE_REMAP hook it should return the client request 
> line and headers, ideally verbatim.
> Observed behaviour: "http://"; is prepended to the request URL:
>   GET /path/ HTTP/1.1
> becomes
>   GET http:///path/ HTTP/1.1
> (yes, that's three slashes)
> Pseudo-code to reproduce from a PRE_REMAP hook:
>   TSHttpTxnClientReqGet(txnp, &buf, &hdr);
>   TSHttpHdrPrint(buf, hdr, iobuf);
>   reader = TSIOBufferReaderAlloc(iobuf);
>   block = TSIOBufferReaderStart(reader);
>   len = TSIOBufferBlockReadAvail(block, reader);
>   data = TSIOBufferBlockReadStart(block, reader, &len);
> Now examine the contents of data.
> Assigned to AMC as suggested yesterday on-list.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira