You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "weijin (JIRA)" <ji...@apache.org> on 2011/08/03 09:23:27 UTC

[jira] [Commented] (TS-899) ts crash

    [ https://issues.apache.org/jira/browse/TS-899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13078616#comment-13078616 ] 

weijin commented on TS-899:
---------------------------

here is the backtrace:
{code}
#0  ink_stack_trace_get (stack=<value optimized out>, len=<value optimized out>, signalhandler_frame=<value optimized out>) at ink_stack_trace.cc:68
#1  0x0000003834c16ef1 in ink_stack_trace_dump (sighandler_frame=<value optimized out>) at ink_stack_trace.cc:114
#2  0x00000000004df0e0 in signal_handler (sig=<value optimized out>) at signals.cc:225
#3  <signal handler called>
#4  mime_hdr_field_find (mh=0x0, field_name_str=0x12cbba8 "Set-Cookie", field_name_len=10) at MIME.cc:1338
#5  0x000000000054f51a in HttpTransact::set_headers_for_cache_write (s=0x2aaab336aa18, cache_info=0x2aaab336aa98, request=0x2aaab336b2e8, 
    response=0x2aaab336b368) at ../../proxy/hdrs/MIME.h:1057
#6  0x0000000000552205 in HttpTransact::handle_transform_ready (s=0x2aaab336aa18) at HttpTransact.cc:4741
#7  0x0000000000522e24 in HttpSM::call_transact_and_set_next_state (this=0x2aaab336a9b0, f=0x12cbb70) at HttpSM.cc:6335
#8  0x00000000005309e2 in HttpSM::state_response_wait_for_transform_read (this=0x2aaab336a9b0, event=2000, data=0x12f4670) at HttpSM.cc:1169
#9  0x0000000000531bbc in HttpSM::main_handler (this=0x2aaab336a9b0, event=2000, data=0x12f4670) at HttpSM.cc:2452
#10 0x00000000004ea5a7 in TransformTerminus::handle_event (this=0x12f45e8, event=1, edata=<value optimized out>)
    at ../iocore/eventsystem/I_Continuation.h:146
#11 0x00000000006ce23f in EThread::process_event (this=0x2aaaaaf2a010, e=0x12e1960, calling_code=1) at I_Continuation.h:146
#12 0x00000000006ce73a in EThread::execute (this=0x2aaaaaf2a010) at UnixEThread.cc:189
#13 0x00000000006cd57e in spawn_thread_internal (a=0x12d41c0) at Thread.cc:88
#14 0x000000389a2064a7 in start_thread () from /lib64/libpthread.so.0
#15 0x00000038996d3c2d in clone () from /lib64/libc.so.6
(gdb) f 5
#5  0x000000000054f51a in HttpTransact::set_headers_for_cache_write (s=0x2aaab336aa18, cache_info=0x2aaab336aa98, request=0x2aaab336b2e8, 
    response=0x2aaab336b368) at ../../proxy/hdrs/MIME.h:1057
1057      return mime_hdr_field_find(m_mime, name, length);
(gdb) p *cache_info->m_alt
$2 = {m_magic = 2882395885, m_writeable = 1, m_unmarshal_len = -1, m_id = -1, m_rid = -1, m_object_key = {0, 0, 0, 0}, m_object_size = {0, 0}, 
  m_request_hdr = {<MIMEHdr> = {<HdrHeapSDKHandle> = {m_heap = 0x2aaab2f4d810}, m_mime = 0x2aaab2f4d8c8}, m_http = 0x2aaab2f4d898, 
    m_url_cached = {<HdrHeapSDKHandle> = {m_heap = 0x0}, m_url_impl = 0x0}, m_host_length = 0, m_host = 0x0, m_port = 0, m_target_cached = false, 
    m_target_in_url = false, m_port_in_header = false}, m_response_hdr = {<MIMEHdr> = {<HdrHeapSDKHandle> = {m_heap = 0x0}, m_mime = 0x0}, m_http = 0x0, 
    m_url_cached = {<HdrHeapSDKHandle> = {m_heap = 0x0}, m_url_impl = 0x0}, m_host_length = 0, m_host = 0x0, m_port = 0, m_target_cached = false, 
    m_target_in_url = false, m_port_in_header = false}, m_request_sent_time = 0, m_response_received_time = 0, m_ext_buffer = 0x0}
{code}


My Remap rules:

map               http://pics.taobaocdn.com/bao/album/wp/pic_fobbiden.png                    http://pics.taobaocdn.com/bao/album/wp/pic_fobbiden.png
map_with_referer  http://img01.taobaocdn.com/sns_album http://img01.taobaocdn.com/sns_album http://pics.taobaocdn.com/bao/album/wp/pic_fobbiden.png ~^http://[^/]*(store|item|mall|ishop|sell|shop)\.taobao\.com/ ^http://[^/]+\.(taobao|taobaocdn|alibaba|etao)\.(com|net)/ ^http://[^/]+\.taobao\.org/ ^http://[^/]+\.uniqlo\.cn/ ^http://[^/]+\.(alimama|say-on|lianpi|alibado|la\.koubei)\.com/

And The result infos:
[root@cache167 ~]# curl -L -D - -s -o /tmp/403 -x 110.75.3.141:80 'http://pics.taobaocdn.com/bao/album/wp/pic_fobbiden.png'  -H 'Referer: http://auction1.paipai.com/F7FA2D160000000000773AFB07882194'
HTTP/1.1 403 Forbidden
Server: squid
Date: Wed, 03 Aug 2011 06:23:42 GMT
Content-Type: text/html
X-Squid-Error: ERR_ACCESS_DENIED 0
Content-Length: 5928 



> ts crash
> --------
>
>                 Key: TS-899
>                 URL: https://issues.apache.org/jira/browse/TS-899
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP, MIME
>    Affects Versions: 3.0.1
>         Environment: readhat5.5, ts-3.0.1, X86-64
>            Reporter: weijin
>
> If a request url is forbidden then redirected to another url, TS crash.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira