You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "mohan_zl (JIRA)" <ji...@apache.org> on 2011/06/20 03:33:47 UTC

[jira] [Created] (TS-844) ReadFromWriter fail in CacheRead.cc

ReadFromWriter fail in CacheRead.cc
-----------------------------------

                 Key: TS-844
                 URL: https://issues.apache.org/jira/browse/TS-844
             Project: Traffic Server
          Issue Type: Bug
            Reporter: mohan_zl


{code}

#6  0x00000000006ab4d7 in CacheVC::openReadChooseWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:320
#7  0x00000000006abdc9 in CacheVC::openReadFromWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:411
#8  0x00000000004d302f in Continuation::handleEvent (this=0x2aaaf81523d0, event=1, data=0x0) at I_Continuation.h:146
#9  0x00000000006ae2b9 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, key=0x42100b10, request=0x2aaab44710f0, params=0x2aaab4470928, type=CACHE_FRAG_TYPE_HTTP,
    hostname=0x2aab09581049 "js.tongji.linezing.comicon1.gifjs.tongji.linezing.com�ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿½ï¿½"..., host_len=22) at CacheRead.cc:228
#10 0x000000000068da30 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928,
    type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1068
#11 0x000000000067d32f in CacheProcessor::open_read (this=0xf2c030, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0,
    type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3011
#12 0x000000000054e058 in HttpCacheSM::do_cache_open_read (this=0x2aaab4472aa0) at HttpCacheSM.cc:220
#13 0x000000000054e1a7 in HttpCacheSM::open_read (this=0x2aaab4472aa0, url=0x2aaab4471108, hdr=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0) at HttpCacheSM.cc:252
#14 0x0000000000568404 in HttpSM::do_cache_lookup_and_read (this=0x2aaab4470830) at HttpSM.cc:3893
#15 0x00000000005734b5 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6436
#16 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
#17 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
#18 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
#19 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
#20 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
#21 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
#22 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
#23 0x0000000000572faf in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6378
#24 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
#25 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
#26 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
#27 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
#28 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
#29 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
#30 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
#31 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
#32 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
#33 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
#34 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
#35 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
#36 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0x59e52e <HttpTransact::ModifyRequest(HttpTransact::State*)>) at HttpSM.cc:6328
#37 0x000000000057490c in HttpSM::state_read_client_request_header (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:780
#38 0x000000000056e49f in HttpSM::main_handler (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:2436
#39 0x00000000004d302f in Continuation::handleEvent (this=0x2aaab4470830, event=100, data=0x2049f5e8) at I_Continuation.h:146
#40 0x00000000006d6b61 in read_signal_and_update (event=100, vc=0x2049f420) at UnixNetVConnection.cc:138
#41 0x00000000006d739e in read_from_net (nh=0x2aaaab32f688, vc=0x2049f420, thread=0x2aaaab32e010) at UnixNetVConnection.cc:320
#42 0x00000000006d74b9 in UnixNetVConnection::net_read_io (this=0x2049f420, nh=0x2aaaab32f688, lthread=0x2aaaab32e010) at UnixNetVConnection.cc:793
#43 0x00000000006d0bbc in NetHandler::mainNetEvent (this=0x2aaaab32f688, event=5, e=0x1ebf6830) at UnixNet.cc:389
#44 0x00000000004d302f in Continuation::handleEvent (this=0x2aaaab32f688, event=5, data=0x1ebf6830) at I_Continuation.h:146
#45 0x00000000006f9978 in EThread::process_event (this=0x2aaaab32e010, e=0x1ebf6830, calling_code=5) at UnixEThread.cc:140
#46 0x00000000006f9e96 in EThread::execute (this=0x2aaaab32e010) at UnixEThread.cc:262
---Type <return> to continue, or q <return> to quit---b
#47 0x00000000006f92c9 in spawn_thread_internal (a=0x1ebea410) at Thread.cc:88
#48 0x00000030e3a064a7 in start_thread () from /lib64/libpthread.so.0
#49 0x00000030e2ed3c2d in clone () from /lib64/libc.so.6
{code}

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

       

[jira] [Updated] (TS-844) ReadFromWriter fail in CacheRead.cc

Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom updated TS-844:
-----------------------------

    Fix Version/s: 3.1.0

> ReadFromWriter fail in CacheRead.cc
> -----------------------------------
>
>                 Key: TS-844
>                 URL: https://issues.apache.org/jira/browse/TS-844
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: mohan_zl
>             Fix For: 3.1.0
>
>         Attachments: TS-844.patch
>
>
> {code}
> #6  0x00000000006ab4d7 in CacheVC::openReadChooseWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:320
> #7  0x00000000006abdc9 in CacheVC::openReadFromWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:411
> #8  0x00000000004d302f in Continuation::handleEvent (this=0x2aaaf81523d0, event=1, data=0x0) at I_Continuation.h:146
> #9  0x00000000006ae2b9 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, key=0x42100b10, request=0x2aaab44710f0, params=0x2aaab4470928, type=CACHE_FRAG_TYPE_HTTP,
>     hostname=0x2aab09581049 "js.tongji.linezing.comicon1.gifjs.tongji.linezing.com�ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿½ï¿½"..., host_len=22) at CacheRead.cc:228
> #10 0x000000000068da30 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928,
>     type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1068
> #11 0x000000000067d32f in CacheProcessor::open_read (this=0xf2c030, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0,
>     type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3011
> #12 0x000000000054e058 in HttpCacheSM::do_cache_open_read (this=0x2aaab4472aa0) at HttpCacheSM.cc:220
> #13 0x000000000054e1a7 in HttpCacheSM::open_read (this=0x2aaab4472aa0, url=0x2aaab4471108, hdr=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0) at HttpCacheSM.cc:252
> #14 0x0000000000568404 in HttpSM::do_cache_lookup_and_read (this=0x2aaab4470830) at HttpSM.cc:3893
> #15 0x00000000005734b5 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6436
> #16 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #17 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #18 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #19 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #20 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #21 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #22 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #23 0x0000000000572faf in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6378
> #24 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #25 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #26 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #27 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #28 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #29 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #30 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #31 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #32 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #33 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #34 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #35 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #36 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0x59e52e <HttpTransact::ModifyRequest(HttpTransact::State*)>) at HttpSM.cc:6328
> #37 0x000000000057490c in HttpSM::state_read_client_request_header (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:780
> #38 0x000000000056e49f in HttpSM::main_handler (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:2436
> #39 0x00000000004d302f in Continuation::handleEvent (this=0x2aaab4470830, event=100, data=0x2049f5e8) at I_Continuation.h:146
> #40 0x00000000006d6b61 in read_signal_and_update (event=100, vc=0x2049f420) at UnixNetVConnection.cc:138
> #41 0x00000000006d739e in read_from_net (nh=0x2aaaab32f688, vc=0x2049f420, thread=0x2aaaab32e010) at UnixNetVConnection.cc:320
> #42 0x00000000006d74b9 in UnixNetVConnection::net_read_io (this=0x2049f420, nh=0x2aaaab32f688, lthread=0x2aaaab32e010) at UnixNetVConnection.cc:793
> #43 0x00000000006d0bbc in NetHandler::mainNetEvent (this=0x2aaaab32f688, event=5, e=0x1ebf6830) at UnixNet.cc:389
> #44 0x00000000004d302f in Continuation::handleEvent (this=0x2aaaab32f688, event=5, data=0x1ebf6830) at I_Continuation.h:146
> #45 0x00000000006f9978 in EThread::process_event (this=0x2aaaab32e010, e=0x1ebf6830, calling_code=5) at UnixEThread.cc:140
> #46 0x00000000006f9e96 in EThread::execute (this=0x2aaaab32e010) at UnixEThread.cc:262
> ---Type <return> to continue, or q <return> to quit---b
> #47 0x00000000006f92c9 in spawn_thread_internal (a=0x1ebea410) at Thread.cc:88
> #48 0x00000030e3a064a7 in start_thread () from /lib64/libpthread.so.0
> #49 0x00000030e2ed3c2d in clone () from /lib64/libc.so.6
> {code}

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

       

[jira] [Issue Comment Edited] (TS-844) ReadFromWriter fail in CacheRead.cc

Posted by "mohan_zl (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051760#comment-13051760 ] 

mohan_zl edited comment on TS-844 at 6/20/11 1:38 AM:
------------------------------------------------------

The enviroment is like this:
{code}
[root@cache180 ~]# uname -a
Linux cache180.cn63 2.6.18-164.11.1.el5 #1 SMP Sun Mar 7 17:26:09 CST 2010 x86_64 x86_64 x86_64 GNU/Linux
{code}
We use the latest trunk, plus the patch TS-833-3.diff which John submit in TS-833, with enable debug info.
I think this problem occured when some illegal request came and TS try to update it in cache, and fail. The hostname in gdb debug is a dirty data.

      was (Author: wahu0315210):
    The enviroment is like this:
{quota}
[root@cache180 ~]# uname -a
Linux cache180.cn63 2.6.18-164.11.1.el5 #1 SMP Sun Mar 7 17:26:09 CST 2010 x86_64 x86_64 x86_64 GNU/Linux
{quota}
We use the latest trunk, plus the patch TS-833-3.diff which John submit in TS-833, with enable debug info.
I think this problem occured when some illegal request came and TS try to update it in cache, and fail. The hostname in gdb debug is a dirty data.
  
> ReadFromWriter fail in CacheRead.cc
> -----------------------------------
>
>                 Key: TS-844
>                 URL: https://issues.apache.org/jira/browse/TS-844
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: mohan_zl
>
> {code}
> #6  0x00000000006ab4d7 in CacheVC::openReadChooseWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:320
> #7  0x00000000006abdc9 in CacheVC::openReadFromWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:411
> #8  0x00000000004d302f in Continuation::handleEvent (this=0x2aaaf81523d0, event=1, data=0x0) at I_Continuation.h:146
> #9  0x00000000006ae2b9 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, key=0x42100b10, request=0x2aaab44710f0, params=0x2aaab4470928, type=CACHE_FRAG_TYPE_HTTP,
>     hostname=0x2aab09581049 "js.tongji.linezing.comicon1.gifjs.tongji.linezing.com�ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿½ï¿½"..., host_len=22) at CacheRead.cc:228
> #10 0x000000000068da30 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928,
>     type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1068
> #11 0x000000000067d32f in CacheProcessor::open_read (this=0xf2c030, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0,
>     type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3011
> #12 0x000000000054e058 in HttpCacheSM::do_cache_open_read (this=0x2aaab4472aa0) at HttpCacheSM.cc:220
> #13 0x000000000054e1a7 in HttpCacheSM::open_read (this=0x2aaab4472aa0, url=0x2aaab4471108, hdr=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0) at HttpCacheSM.cc:252
> #14 0x0000000000568404 in HttpSM::do_cache_lookup_and_read (this=0x2aaab4470830) at HttpSM.cc:3893
> #15 0x00000000005734b5 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6436
> #16 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #17 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #18 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #19 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #20 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #21 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #22 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #23 0x0000000000572faf in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6378
> #24 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #25 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #26 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #27 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #28 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #29 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #30 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #31 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #32 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #33 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #34 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #35 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #36 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0x59e52e <HttpTransact::ModifyRequest(HttpTransact::State*)>) at HttpSM.cc:6328
> #37 0x000000000057490c in HttpSM::state_read_client_request_header (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:780
> #38 0x000000000056e49f in HttpSM::main_handler (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:2436
> #39 0x00000000004d302f in Continuation::handleEvent (this=0x2aaab4470830, event=100, data=0x2049f5e8) at I_Continuation.h:146
> #40 0x00000000006d6b61 in read_signal_and_update (event=100, vc=0x2049f420) at UnixNetVConnection.cc:138
> #41 0x00000000006d739e in read_from_net (nh=0x2aaaab32f688, vc=0x2049f420, thread=0x2aaaab32e010) at UnixNetVConnection.cc:320
> #42 0x00000000006d74b9 in UnixNetVConnection::net_read_io (this=0x2049f420, nh=0x2aaaab32f688, lthread=0x2aaaab32e010) at UnixNetVConnection.cc:793
> #43 0x00000000006d0bbc in NetHandler::mainNetEvent (this=0x2aaaab32f688, event=5, e=0x1ebf6830) at UnixNet.cc:389
> #44 0x00000000004d302f in Continuation::handleEvent (this=0x2aaaab32f688, event=5, data=0x1ebf6830) at I_Continuation.h:146
> #45 0x00000000006f9978 in EThread::process_event (this=0x2aaaab32e010, e=0x1ebf6830, calling_code=5) at UnixEThread.cc:140
> #46 0x00000000006f9e96 in EThread::execute (this=0x2aaaab32e010) at UnixEThread.cc:262
> ---Type <return> to continue, or q <return> to quit---b
> #47 0x00000000006f92c9 in spawn_thread_internal (a=0x1ebea410) at Thread.cc:88
> #48 0x00000030e3a064a7 in start_thread () from /lib64/libpthread.so.0
> #49 0x00000030e2ed3c2d in clone () from /lib64/libc.so.6
> {code}

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

       

[jira] [Updated] (TS-844) ReadFromWriter fail in CacheRead.cc

Posted by "mohan_zl (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

mohan_zl updated TS-844:
------------------------

    Attachment: TS-844-2.patch

> ReadFromWriter fail in CacheRead.cc
> -----------------------------------
>
>                 Key: TS-844
>                 URL: https://issues.apache.org/jira/browse/TS-844
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: mohan_zl
>            Assignee: Zhao Yongming
>             Fix For: 3.1.0
>
>         Attachments: TS-844-2.patch, TS-844.patch
>
>
> {code}
> #6  0x00000000006ab4d7 in CacheVC::openReadChooseWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:320
> #7  0x00000000006abdc9 in CacheVC::openReadFromWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:411
> #8  0x00000000004d302f in Continuation::handleEvent (this=0x2aaaf81523d0, event=1, data=0x0) at I_Continuation.h:146
> #9  0x00000000006ae2b9 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, key=0x42100b10, request=0x2aaab44710f0, params=0x2aaab4470928, type=CACHE_FRAG_TYPE_HTTP,
>     hostname=0x2aab09581049 "js.tongji.linezing.comicon1.gifjs.tongji.linezing.com�ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿½ï¿½"..., host_len=22) at CacheRead.cc:228
> #10 0x000000000068da30 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928,
>     type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1068
> #11 0x000000000067d32f in CacheProcessor::open_read (this=0xf2c030, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0,
>     type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3011
> #12 0x000000000054e058 in HttpCacheSM::do_cache_open_read (this=0x2aaab4472aa0) at HttpCacheSM.cc:220
> #13 0x000000000054e1a7 in HttpCacheSM::open_read (this=0x2aaab4472aa0, url=0x2aaab4471108, hdr=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0) at HttpCacheSM.cc:252
> #14 0x0000000000568404 in HttpSM::do_cache_lookup_and_read (this=0x2aaab4470830) at HttpSM.cc:3893
> #15 0x00000000005734b5 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6436
> #16 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #17 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #18 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #19 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #20 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #21 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #22 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #23 0x0000000000572faf in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6378
> #24 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #25 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #26 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #27 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #28 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #29 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #30 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #31 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #32 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #33 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #34 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #35 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #36 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0x59e52e <HttpTransact::ModifyRequest(HttpTransact::State*)>) at HttpSM.cc:6328
> #37 0x000000000057490c in HttpSM::state_read_client_request_header (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:780
> #38 0x000000000056e49f in HttpSM::main_handler (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:2436
> #39 0x00000000004d302f in Continuation::handleEvent (this=0x2aaab4470830, event=100, data=0x2049f5e8) at I_Continuation.h:146
> #40 0x00000000006d6b61 in read_signal_and_update (event=100, vc=0x2049f420) at UnixNetVConnection.cc:138
> #41 0x00000000006d739e in read_from_net (nh=0x2aaaab32f688, vc=0x2049f420, thread=0x2aaaab32e010) at UnixNetVConnection.cc:320
> #42 0x00000000006d74b9 in UnixNetVConnection::net_read_io (this=0x2049f420, nh=0x2aaaab32f688, lthread=0x2aaaab32e010) at UnixNetVConnection.cc:793
> #43 0x00000000006d0bbc in NetHandler::mainNetEvent (this=0x2aaaab32f688, event=5, e=0x1ebf6830) at UnixNet.cc:389
> #44 0x00000000004d302f in Continuation::handleEvent (this=0x2aaaab32f688, event=5, data=0x1ebf6830) at I_Continuation.h:146
> #45 0x00000000006f9978 in EThread::process_event (this=0x2aaaab32e010, e=0x1ebf6830, calling_code=5) at UnixEThread.cc:140
> #46 0x00000000006f9e96 in EThread::execute (this=0x2aaaab32e010) at UnixEThread.cc:262
> ---Type <return> to continue, or q <return> to quit---b
> #47 0x00000000006f92c9 in spawn_thread_internal (a=0x1ebea410) at Thread.cc:88
> #48 0x00000030e3a064a7 in start_thread () from /lib64/libpthread.so.0
> #49 0x00000030e2ed3c2d in clone () from /lib64/libc.so.6
> {code}

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

       

[jira] [Assigned] (TS-844) ReadFromWriter fail in CacheRead.cc

Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom reassigned TS-844:
--------------------------------

    Assignee: Zhao Yongming

Assigning to ming_zym, so he can properly prioritize / review.

> ReadFromWriter fail in CacheRead.cc
> -----------------------------------
>
>                 Key: TS-844
>                 URL: https://issues.apache.org/jira/browse/TS-844
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: mohan_zl
>            Assignee: Zhao Yongming
>             Fix For: 3.1.0
>
>         Attachments: TS-844.patch
>
>
> {code}
> #6  0x00000000006ab4d7 in CacheVC::openReadChooseWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:320
> #7  0x00000000006abdc9 in CacheVC::openReadFromWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:411
> #8  0x00000000004d302f in Continuation::handleEvent (this=0x2aaaf81523d0, event=1, data=0x0) at I_Continuation.h:146
> #9  0x00000000006ae2b9 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, key=0x42100b10, request=0x2aaab44710f0, params=0x2aaab4470928, type=CACHE_FRAG_TYPE_HTTP,
>     hostname=0x2aab09581049 "js.tongji.linezing.comicon1.gifjs.tongji.linezing.com�ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿½ï¿½"..., host_len=22) at CacheRead.cc:228
> #10 0x000000000068da30 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928,
>     type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1068
> #11 0x000000000067d32f in CacheProcessor::open_read (this=0xf2c030, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0,
>     type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3011
> #12 0x000000000054e058 in HttpCacheSM::do_cache_open_read (this=0x2aaab4472aa0) at HttpCacheSM.cc:220
> #13 0x000000000054e1a7 in HttpCacheSM::open_read (this=0x2aaab4472aa0, url=0x2aaab4471108, hdr=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0) at HttpCacheSM.cc:252
> #14 0x0000000000568404 in HttpSM::do_cache_lookup_and_read (this=0x2aaab4470830) at HttpSM.cc:3893
> #15 0x00000000005734b5 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6436
> #16 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #17 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #18 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #19 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #20 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #21 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #22 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #23 0x0000000000572faf in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6378
> #24 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #25 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #26 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #27 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #28 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #29 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #30 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #31 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #32 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #33 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #34 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #35 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #36 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0x59e52e <HttpTransact::ModifyRequest(HttpTransact::State*)>) at HttpSM.cc:6328
> #37 0x000000000057490c in HttpSM::state_read_client_request_header (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:780
> #38 0x000000000056e49f in HttpSM::main_handler (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:2436
> #39 0x00000000004d302f in Continuation::handleEvent (this=0x2aaab4470830, event=100, data=0x2049f5e8) at I_Continuation.h:146
> #40 0x00000000006d6b61 in read_signal_and_update (event=100, vc=0x2049f420) at UnixNetVConnection.cc:138
> #41 0x00000000006d739e in read_from_net (nh=0x2aaaab32f688, vc=0x2049f420, thread=0x2aaaab32e010) at UnixNetVConnection.cc:320
> #42 0x00000000006d74b9 in UnixNetVConnection::net_read_io (this=0x2049f420, nh=0x2aaaab32f688, lthread=0x2aaaab32e010) at UnixNetVConnection.cc:793
> #43 0x00000000006d0bbc in NetHandler::mainNetEvent (this=0x2aaaab32f688, event=5, e=0x1ebf6830) at UnixNet.cc:389
> #44 0x00000000004d302f in Continuation::handleEvent (this=0x2aaaab32f688, event=5, data=0x1ebf6830) at I_Continuation.h:146
> #45 0x00000000006f9978 in EThread::process_event (this=0x2aaaab32e010, e=0x1ebf6830, calling_code=5) at UnixEThread.cc:140
> #46 0x00000000006f9e96 in EThread::execute (this=0x2aaaab32e010) at UnixEThread.cc:262
> ---Type <return> to continue, or q <return> to quit---b
> #47 0x00000000006f92c9 in spawn_thread_internal (a=0x1ebea410) at Thread.cc:88
> #48 0x00000030e3a064a7 in start_thread () from /lib64/libpthread.so.0
> #49 0x00000030e2ed3c2d in clone () from /lib64/libc.so.6
> {code}

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

       

[jira] [Updated] (TS-844) ReadFromWriter fail in CacheRead.cc

Posted by "mohan_zl (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

mohan_zl updated TS-844:
------------------------

    Attachment: TS-844-2.patch

@John Plevyak
This problem is hard to reproduce now, but i think the reason is because: when a write has been closed normally, something wrong happens to create a invalid HttpInfo, leading to fail "ink_assert(w->alternate.valid());" in CacheVC::openReadChooseWriter, and ts crash.   In my patch, i just prevent this happen, maybe the better way is like this, see TS-844-2.patch, or just remove that ink_assert line, because follow it is a if condition judgment.

> ReadFromWriter fail in CacheRead.cc
> -----------------------------------
>
>                 Key: TS-844
>                 URL: https://issues.apache.org/jira/browse/TS-844
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: mohan_zl
>            Assignee: Zhao Yongming
>             Fix For: 3.1.0
>
>         Attachments: TS-844-2.patch, TS-844.patch
>
>
> {code}
> #6  0x00000000006ab4d7 in CacheVC::openReadChooseWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:320
> #7  0x00000000006abdc9 in CacheVC::openReadFromWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:411
> #8  0x00000000004d302f in Continuation::handleEvent (this=0x2aaaf81523d0, event=1, data=0x0) at I_Continuation.h:146
> #9  0x00000000006ae2b9 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, key=0x42100b10, request=0x2aaab44710f0, params=0x2aaab4470928, type=CACHE_FRAG_TYPE_HTTP,
>     hostname=0x2aab09581049 "js.tongji.linezing.comicon1.gifjs.tongji.linezing.com�ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿½ï¿½"..., host_len=22) at CacheRead.cc:228
> #10 0x000000000068da30 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928,
>     type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1068
> #11 0x000000000067d32f in CacheProcessor::open_read (this=0xf2c030, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0,
>     type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3011
> #12 0x000000000054e058 in HttpCacheSM::do_cache_open_read (this=0x2aaab4472aa0) at HttpCacheSM.cc:220
> #13 0x000000000054e1a7 in HttpCacheSM::open_read (this=0x2aaab4472aa0, url=0x2aaab4471108, hdr=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0) at HttpCacheSM.cc:252
> #14 0x0000000000568404 in HttpSM::do_cache_lookup_and_read (this=0x2aaab4470830) at HttpSM.cc:3893
> #15 0x00000000005734b5 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6436
> #16 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #17 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #18 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #19 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #20 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #21 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #22 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #23 0x0000000000572faf in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6378
> #24 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #25 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #26 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #27 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #28 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #29 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #30 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #31 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #32 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #33 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #34 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #35 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #36 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0x59e52e <HttpTransact::ModifyRequest(HttpTransact::State*)>) at HttpSM.cc:6328
> #37 0x000000000057490c in HttpSM::state_read_client_request_header (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:780
> #38 0x000000000056e49f in HttpSM::main_handler (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:2436
> #39 0x00000000004d302f in Continuation::handleEvent (this=0x2aaab4470830, event=100, data=0x2049f5e8) at I_Continuation.h:146
> #40 0x00000000006d6b61 in read_signal_and_update (event=100, vc=0x2049f420) at UnixNetVConnection.cc:138
> #41 0x00000000006d739e in read_from_net (nh=0x2aaaab32f688, vc=0x2049f420, thread=0x2aaaab32e010) at UnixNetVConnection.cc:320
> #42 0x00000000006d74b9 in UnixNetVConnection::net_read_io (this=0x2049f420, nh=0x2aaaab32f688, lthread=0x2aaaab32e010) at UnixNetVConnection.cc:793
> #43 0x00000000006d0bbc in NetHandler::mainNetEvent (this=0x2aaaab32f688, event=5, e=0x1ebf6830) at UnixNet.cc:389
> #44 0x00000000004d302f in Continuation::handleEvent (this=0x2aaaab32f688, event=5, data=0x1ebf6830) at I_Continuation.h:146
> #45 0x00000000006f9978 in EThread::process_event (this=0x2aaaab32e010, e=0x1ebf6830, calling_code=5) at UnixEThread.cc:140
> #46 0x00000000006f9e96 in EThread::execute (this=0x2aaaab32e010) at UnixEThread.cc:262
> ---Type <return> to continue, or q <return> to quit---b
> #47 0x00000000006f92c9 in spawn_thread_internal (a=0x1ebea410) at Thread.cc:88
> #48 0x00000030e3a064a7 in start_thread () from /lib64/libpthread.so.0
> #49 0x00000030e2ed3c2d in clone () from /lib64/libc.so.6
> {code}

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

       

[jira] [Updated] (TS-844) ReadFromWriter fail in CacheRead.cc

Posted by "mohan_zl (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

mohan_zl updated TS-844:
------------------------

    Attachment:     (was: TS-844-2.patch)

> ReadFromWriter fail in CacheRead.cc
> -----------------------------------
>
>                 Key: TS-844
>                 URL: https://issues.apache.org/jira/browse/TS-844
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: mohan_zl
>            Assignee: Zhao Yongming
>             Fix For: 3.1.0
>
>         Attachments: TS-844.patch
>
>
> {code}
> #6  0x00000000006ab4d7 in CacheVC::openReadChooseWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:320
> #7  0x00000000006abdc9 in CacheVC::openReadFromWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:411
> #8  0x00000000004d302f in Continuation::handleEvent (this=0x2aaaf81523d0, event=1, data=0x0) at I_Continuation.h:146
> #9  0x00000000006ae2b9 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, key=0x42100b10, request=0x2aaab44710f0, params=0x2aaab4470928, type=CACHE_FRAG_TYPE_HTTP,
>     hostname=0x2aab09581049 "js.tongji.linezing.comicon1.gifjs.tongji.linezing.com�ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿½ï¿½"..., host_len=22) at CacheRead.cc:228
> #10 0x000000000068da30 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928,
>     type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1068
> #11 0x000000000067d32f in CacheProcessor::open_read (this=0xf2c030, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0,
>     type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3011
> #12 0x000000000054e058 in HttpCacheSM::do_cache_open_read (this=0x2aaab4472aa0) at HttpCacheSM.cc:220
> #13 0x000000000054e1a7 in HttpCacheSM::open_read (this=0x2aaab4472aa0, url=0x2aaab4471108, hdr=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0) at HttpCacheSM.cc:252
> #14 0x0000000000568404 in HttpSM::do_cache_lookup_and_read (this=0x2aaab4470830) at HttpSM.cc:3893
> #15 0x00000000005734b5 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6436
> #16 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #17 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #18 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #19 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #20 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #21 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #22 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #23 0x0000000000572faf in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6378
> #24 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #25 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #26 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #27 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #28 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #29 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #30 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #31 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #32 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #33 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #34 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #35 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #36 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0x59e52e <HttpTransact::ModifyRequest(HttpTransact::State*)>) at HttpSM.cc:6328
> #37 0x000000000057490c in HttpSM::state_read_client_request_header (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:780
> #38 0x000000000056e49f in HttpSM::main_handler (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:2436
> #39 0x00000000004d302f in Continuation::handleEvent (this=0x2aaab4470830, event=100, data=0x2049f5e8) at I_Continuation.h:146
> #40 0x00000000006d6b61 in read_signal_and_update (event=100, vc=0x2049f420) at UnixNetVConnection.cc:138
> #41 0x00000000006d739e in read_from_net (nh=0x2aaaab32f688, vc=0x2049f420, thread=0x2aaaab32e010) at UnixNetVConnection.cc:320
> #42 0x00000000006d74b9 in UnixNetVConnection::net_read_io (this=0x2049f420, nh=0x2aaaab32f688, lthread=0x2aaaab32e010) at UnixNetVConnection.cc:793
> #43 0x00000000006d0bbc in NetHandler::mainNetEvent (this=0x2aaaab32f688, event=5, e=0x1ebf6830) at UnixNet.cc:389
> #44 0x00000000004d302f in Continuation::handleEvent (this=0x2aaaab32f688, event=5, data=0x1ebf6830) at I_Continuation.h:146
> #45 0x00000000006f9978 in EThread::process_event (this=0x2aaaab32e010, e=0x1ebf6830, calling_code=5) at UnixEThread.cc:140
> #46 0x00000000006f9e96 in EThread::execute (this=0x2aaaab32e010) at UnixEThread.cc:262
> ---Type <return> to continue, or q <return> to quit---b
> #47 0x00000000006f92c9 in spawn_thread_internal (a=0x1ebea410) at Thread.cc:88
> #48 0x00000030e3a064a7 in start_thread () from /lib64/libpthread.so.0
> #49 0x00000030e2ed3c2d in clone () from /lib64/libc.so.6
> {code}

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

       

[jira] [Commented] (TS-844) ReadFromWriter fail in CacheRead.cc

Posted by "John Plevyak (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13076013#comment-13076013 ] 

John Plevyak commented on TS-844:
---------------------------------

I'd like to know what the top of the stack looked like and also what "fail" means in this context.

The patch is safe in the sense that it is conservative, but if a write has been closed, but
not yet been written into the aggregation buffer, this patch will prevent that data from being
available for a ReadFromWriter.  At least that is how I read it.

What I am wondering is what about a closed by not yet written CacheVC is making ReadaFromWriter fail?


> ReadFromWriter fail in CacheRead.cc
> -----------------------------------
>
>                 Key: TS-844
>                 URL: https://issues.apache.org/jira/browse/TS-844
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: mohan_zl
>             Fix For: 3.1.0
>
>         Attachments: TS-844.patch
>
>
> {code}
> #6  0x00000000006ab4d7 in CacheVC::openReadChooseWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:320
> #7  0x00000000006abdc9 in CacheVC::openReadFromWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:411
> #8  0x00000000004d302f in Continuation::handleEvent (this=0x2aaaf81523d0, event=1, data=0x0) at I_Continuation.h:146
> #9  0x00000000006ae2b9 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, key=0x42100b10, request=0x2aaab44710f0, params=0x2aaab4470928, type=CACHE_FRAG_TYPE_HTTP,
>     hostname=0x2aab09581049 "js.tongji.linezing.comicon1.gifjs.tongji.linezing.com�ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿½ï¿½"..., host_len=22) at CacheRead.cc:228
> #10 0x000000000068da30 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928,
>     type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1068
> #11 0x000000000067d32f in CacheProcessor::open_read (this=0xf2c030, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0,
>     type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3011
> #12 0x000000000054e058 in HttpCacheSM::do_cache_open_read (this=0x2aaab4472aa0) at HttpCacheSM.cc:220
> #13 0x000000000054e1a7 in HttpCacheSM::open_read (this=0x2aaab4472aa0, url=0x2aaab4471108, hdr=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0) at HttpCacheSM.cc:252
> #14 0x0000000000568404 in HttpSM::do_cache_lookup_and_read (this=0x2aaab4470830) at HttpSM.cc:3893
> #15 0x00000000005734b5 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6436
> #16 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #17 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #18 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #19 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #20 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #21 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #22 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #23 0x0000000000572faf in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6378
> #24 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #25 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #26 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #27 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #28 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #29 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #30 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #31 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #32 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #33 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #34 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #35 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #36 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0x59e52e <HttpTransact::ModifyRequest(HttpTransact::State*)>) at HttpSM.cc:6328
> #37 0x000000000057490c in HttpSM::state_read_client_request_header (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:780
> #38 0x000000000056e49f in HttpSM::main_handler (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:2436
> #39 0x00000000004d302f in Continuation::handleEvent (this=0x2aaab4470830, event=100, data=0x2049f5e8) at I_Continuation.h:146
> #40 0x00000000006d6b61 in read_signal_and_update (event=100, vc=0x2049f420) at UnixNetVConnection.cc:138
> #41 0x00000000006d739e in read_from_net (nh=0x2aaaab32f688, vc=0x2049f420, thread=0x2aaaab32e010) at UnixNetVConnection.cc:320
> #42 0x00000000006d74b9 in UnixNetVConnection::net_read_io (this=0x2049f420, nh=0x2aaaab32f688, lthread=0x2aaaab32e010) at UnixNetVConnection.cc:793
> #43 0x00000000006d0bbc in NetHandler::mainNetEvent (this=0x2aaaab32f688, event=5, e=0x1ebf6830) at UnixNet.cc:389
> #44 0x00000000004d302f in Continuation::handleEvent (this=0x2aaaab32f688, event=5, data=0x1ebf6830) at I_Continuation.h:146
> #45 0x00000000006f9978 in EThread::process_event (this=0x2aaaab32e010, e=0x1ebf6830, calling_code=5) at UnixEThread.cc:140
> #46 0x00000000006f9e96 in EThread::execute (this=0x2aaaab32e010) at UnixEThread.cc:262
> ---Type <return> to continue, or q <return> to quit---b
> #47 0x00000000006f92c9 in spawn_thread_internal (a=0x1ebea410) at Thread.cc:88
> #48 0x00000030e3a064a7 in start_thread () from /lib64/libpthread.so.0
> #49 0x00000030e2ed3c2d in clone () from /lib64/libc.so.6
> {code}

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

       

[jira] [Commented] (TS-844) ReadFromWriter fail in CacheRead.cc

Posted by "mohan_zl (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13082981#comment-13082981 ] 

mohan_zl commented on TS-844:
-----------------------------

@John Plevyak
The crash resulted from "ink_assert (w->alternate.valid());" in CacheVC::openReadChooseWriter. I think when traverse the writer list, the code logic in this function is like this:
(1) If !w->closed && !w->alternate.valid(), then clear and retry, else go down to (2)
(2) Now if we can go to this step, then the condition is w->closed or w->alternate.valid(), this can be split into four category:
1) w->closed && w->alternate.valid()
2) w->closed && !w->alternate.valid()
3) !w->closed && w->alternate.valid()
Go on, now if w->f.update, then we will process the condition 2), but what if !w->f.update? The code logic seems to think that if !w->f.update, then condition 2) will never meet, and add the code line 
"ink_assert (w->alternate.valid());". But why?

Based on these thoughts, i use TS-844.patch to prevent it from occurring, but i think the TS-844-2.patch is more logical.

> ReadFromWriter fail in CacheRead.cc
> -----------------------------------
>
>                 Key: TS-844
>                 URL: https://issues.apache.org/jira/browse/TS-844
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: mohan_zl
>            Assignee: Zhao Yongming
>             Fix For: 3.1.0
>
>         Attachments: TS-844-2.patch, TS-844.patch
>
>
> {code}
> #6  0x00000000006ab4d7 in CacheVC::openReadChooseWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:320
> #7  0x00000000006abdc9 in CacheVC::openReadFromWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:411
> #8  0x00000000004d302f in Continuation::handleEvent (this=0x2aaaf81523d0, event=1, data=0x0) at I_Continuation.h:146
> #9  0x00000000006ae2b9 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, key=0x42100b10, request=0x2aaab44710f0, params=0x2aaab4470928, type=CACHE_FRAG_TYPE_HTTP,
>     hostname=0x2aab09581049 "js.tongji.linezing.comicon1.gifjs.tongji.linezing.com�ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿½ï¿½"..., host_len=22) at CacheRead.cc:228
> #10 0x000000000068da30 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928,
>     type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1068
> #11 0x000000000067d32f in CacheProcessor::open_read (this=0xf2c030, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0,
>     type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3011
> #12 0x000000000054e058 in HttpCacheSM::do_cache_open_read (this=0x2aaab4472aa0) at HttpCacheSM.cc:220
> #13 0x000000000054e1a7 in HttpCacheSM::open_read (this=0x2aaab4472aa0, url=0x2aaab4471108, hdr=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0) at HttpCacheSM.cc:252
> #14 0x0000000000568404 in HttpSM::do_cache_lookup_and_read (this=0x2aaab4470830) at HttpSM.cc:3893
> #15 0x00000000005734b5 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6436
> #16 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #17 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #18 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #19 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #20 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #21 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #22 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #23 0x0000000000572faf in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6378
> #24 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #25 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #26 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #27 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #28 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #29 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #30 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #31 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #32 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #33 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #34 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #35 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #36 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0x59e52e <HttpTransact::ModifyRequest(HttpTransact::State*)>) at HttpSM.cc:6328
> #37 0x000000000057490c in HttpSM::state_read_client_request_header (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:780
> #38 0x000000000056e49f in HttpSM::main_handler (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:2436
> #39 0x00000000004d302f in Continuation::handleEvent (this=0x2aaab4470830, event=100, data=0x2049f5e8) at I_Continuation.h:146
> #40 0x00000000006d6b61 in read_signal_and_update (event=100, vc=0x2049f420) at UnixNetVConnection.cc:138
> #41 0x00000000006d739e in read_from_net (nh=0x2aaaab32f688, vc=0x2049f420, thread=0x2aaaab32e010) at UnixNetVConnection.cc:320
> #42 0x00000000006d74b9 in UnixNetVConnection::net_read_io (this=0x2049f420, nh=0x2aaaab32f688, lthread=0x2aaaab32e010) at UnixNetVConnection.cc:793
> #43 0x00000000006d0bbc in NetHandler::mainNetEvent (this=0x2aaaab32f688, event=5, e=0x1ebf6830) at UnixNet.cc:389
> #44 0x00000000004d302f in Continuation::handleEvent (this=0x2aaaab32f688, event=5, data=0x1ebf6830) at I_Continuation.h:146
> #45 0x00000000006f9978 in EThread::process_event (this=0x2aaaab32e010, e=0x1ebf6830, calling_code=5) at UnixEThread.cc:140
> #46 0x00000000006f9e96 in EThread::execute (this=0x2aaaab32e010) at UnixEThread.cc:262
> ---Type <return> to continue, or q <return> to quit---b
> #47 0x00000000006f92c9 in spawn_thread_internal (a=0x1ebea410) at Thread.cc:88
> #48 0x00000030e3a064a7 in start_thread () from /lib64/libpthread.so.0
> #49 0x00000030e2ed3c2d in clone () from /lib64/libc.so.6
> {code}

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

       

[jira] [Updated] (TS-844) ReadFromWriter fail in CacheRead.cc

Posted by "mohan_zl (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

mohan_zl updated TS-844:
------------------------

    Attachment:     (was: TS-844-2.patch)

> ReadFromWriter fail in CacheRead.cc
> -----------------------------------
>
>                 Key: TS-844
>                 URL: https://issues.apache.org/jira/browse/TS-844
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: mohan_zl
>            Assignee: Zhao Yongming
>             Fix For: 3.1.0
>
>         Attachments: TS-844-2.patch, TS-844.patch
>
>
> {code}
> #6  0x00000000006ab4d7 in CacheVC::openReadChooseWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:320
> #7  0x00000000006abdc9 in CacheVC::openReadFromWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:411
> #8  0x00000000004d302f in Continuation::handleEvent (this=0x2aaaf81523d0, event=1, data=0x0) at I_Continuation.h:146
> #9  0x00000000006ae2b9 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, key=0x42100b10, request=0x2aaab44710f0, params=0x2aaab4470928, type=CACHE_FRAG_TYPE_HTTP,
>     hostname=0x2aab09581049 "js.tongji.linezing.comicon1.gifjs.tongji.linezing.com�ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿½ï¿½"..., host_len=22) at CacheRead.cc:228
> #10 0x000000000068da30 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928,
>     type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1068
> #11 0x000000000067d32f in CacheProcessor::open_read (this=0xf2c030, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0,
>     type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3011
> #12 0x000000000054e058 in HttpCacheSM::do_cache_open_read (this=0x2aaab4472aa0) at HttpCacheSM.cc:220
> #13 0x000000000054e1a7 in HttpCacheSM::open_read (this=0x2aaab4472aa0, url=0x2aaab4471108, hdr=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0) at HttpCacheSM.cc:252
> #14 0x0000000000568404 in HttpSM::do_cache_lookup_and_read (this=0x2aaab4470830) at HttpSM.cc:3893
> #15 0x00000000005734b5 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6436
> #16 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #17 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #18 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #19 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #20 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #21 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #22 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #23 0x0000000000572faf in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6378
> #24 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #25 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #26 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #27 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #28 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #29 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #30 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #31 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #32 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #33 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #34 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #35 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #36 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0x59e52e <HttpTransact::ModifyRequest(HttpTransact::State*)>) at HttpSM.cc:6328
> #37 0x000000000057490c in HttpSM::state_read_client_request_header (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:780
> #38 0x000000000056e49f in HttpSM::main_handler (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:2436
> #39 0x00000000004d302f in Continuation::handleEvent (this=0x2aaab4470830, event=100, data=0x2049f5e8) at I_Continuation.h:146
> #40 0x00000000006d6b61 in read_signal_and_update (event=100, vc=0x2049f420) at UnixNetVConnection.cc:138
> #41 0x00000000006d739e in read_from_net (nh=0x2aaaab32f688, vc=0x2049f420, thread=0x2aaaab32e010) at UnixNetVConnection.cc:320
> #42 0x00000000006d74b9 in UnixNetVConnection::net_read_io (this=0x2049f420, nh=0x2aaaab32f688, lthread=0x2aaaab32e010) at UnixNetVConnection.cc:793
> #43 0x00000000006d0bbc in NetHandler::mainNetEvent (this=0x2aaaab32f688, event=5, e=0x1ebf6830) at UnixNet.cc:389
> #44 0x00000000004d302f in Continuation::handleEvent (this=0x2aaaab32f688, event=5, data=0x1ebf6830) at I_Continuation.h:146
> #45 0x00000000006f9978 in EThread::process_event (this=0x2aaaab32e010, e=0x1ebf6830, calling_code=5) at UnixEThread.cc:140
> #46 0x00000000006f9e96 in EThread::execute (this=0x2aaaab32e010) at UnixEThread.cc:262
> ---Type <return> to continue, or q <return> to quit---b
> #47 0x00000000006f92c9 in spawn_thread_internal (a=0x1ebea410) at Thread.cc:88
> #48 0x00000030e3a064a7 in start_thread () from /lib64/libpthread.so.0
> #49 0x00000030e2ed3c2d in clone () from /lib64/libc.so.6
> {code}

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

       

[jira] [Updated] (TS-844) ReadFromWriter fail in CacheRead.cc

Posted by "Leif Hedstrom (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom updated TS-844:
-----------------------------

    Fix Version/s:     (was: sometime)
    
> ReadFromWriter fail in CacheRead.cc
> -----------------------------------
>
>                 Key: TS-844
>                 URL: https://issues.apache.org/jira/browse/TS-844
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: mohan_zl
>            Assignee: Zhao Yongming
>         Attachments: TS-844-2.patch, TS-844.patch
>
>
> {code}
> #6  0x00000000006ab4d7 in CacheVC::openReadChooseWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:320
> #7  0x00000000006abdc9 in CacheVC::openReadFromWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:411
> #8  0x00000000004d302f in Continuation::handleEvent (this=0x2aaaf81523d0, event=1, data=0x0) at I_Continuation.h:146
> #9  0x00000000006ae2b9 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, key=0x42100b10, request=0x2aaab44710f0, params=0x2aaab4470928, type=CACHE_FRAG_TYPE_HTTP,
>     hostname=0x2aab09581049 "js.tongji.linezing.comicon1.gifjs.tongji.linezing.com�ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿½ï¿½"..., host_len=22) at CacheRead.cc:228
> #10 0x000000000068da30 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928,
>     type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1068
> #11 0x000000000067d32f in CacheProcessor::open_read (this=0xf2c030, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0,
>     type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3011
> #12 0x000000000054e058 in HttpCacheSM::do_cache_open_read (this=0x2aaab4472aa0) at HttpCacheSM.cc:220
> #13 0x000000000054e1a7 in HttpCacheSM::open_read (this=0x2aaab4472aa0, url=0x2aaab4471108, hdr=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0) at HttpCacheSM.cc:252
> #14 0x0000000000568404 in HttpSM::do_cache_lookup_and_read (this=0x2aaab4470830) at HttpSM.cc:3893
> #15 0x00000000005734b5 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6436
> #16 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #17 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #18 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #19 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #20 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #21 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #22 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #23 0x0000000000572faf in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6378
> #24 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #25 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #26 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #27 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #28 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #29 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #30 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #31 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #32 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #33 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #34 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #35 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #36 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0x59e52e <HttpTransact::ModifyRequest(HttpTransact::State*)>) at HttpSM.cc:6328
> #37 0x000000000057490c in HttpSM::state_read_client_request_header (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:780
> #38 0x000000000056e49f in HttpSM::main_handler (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:2436
> #39 0x00000000004d302f in Continuation::handleEvent (this=0x2aaab4470830, event=100, data=0x2049f5e8) at I_Continuation.h:146
> #40 0x00000000006d6b61 in read_signal_and_update (event=100, vc=0x2049f420) at UnixNetVConnection.cc:138
> #41 0x00000000006d739e in read_from_net (nh=0x2aaaab32f688, vc=0x2049f420, thread=0x2aaaab32e010) at UnixNetVConnection.cc:320
> #42 0x00000000006d74b9 in UnixNetVConnection::net_read_io (this=0x2049f420, nh=0x2aaaab32f688, lthread=0x2aaaab32e010) at UnixNetVConnection.cc:793
> #43 0x00000000006d0bbc in NetHandler::mainNetEvent (this=0x2aaaab32f688, event=5, e=0x1ebf6830) at UnixNet.cc:389
> #44 0x00000000004d302f in Continuation::handleEvent (this=0x2aaaab32f688, event=5, data=0x1ebf6830) at I_Continuation.h:146
> #45 0x00000000006f9978 in EThread::process_event (this=0x2aaaab32e010, e=0x1ebf6830, calling_code=5) at UnixEThread.cc:140
> #46 0x00000000006f9e96 in EThread::execute (this=0x2aaaab32e010) at UnixEThread.cc:262
> ---Type <return> to continue, or q <return> to quit---b
> #47 0x00000000006f92c9 in spawn_thread_internal (a=0x1ebea410) at Thread.cc:88
> #48 0x00000030e3a064a7 in start_thread () from /lib64/libpthread.so.0
> #49 0x00000030e2ed3c2d in clone () from /lib64/libc.so.6
> {code}

--
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

       

[jira] [Updated] (TS-844) ReadFromWriter fail in CacheRead.cc

Posted by "mohan_zl (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

mohan_zl updated TS-844:
------------------------

    Comment: was deleted

(was: @John Plevyak
This problem is hard to reproduce now, but i think the reason is because: when a write has been closed normally, something wrong happens to create a invalid HttpInfo, leading to fail "ink_assert(w->alternate.valid());" in CacheVC::openReadChooseWriter, and ts crash.   In my patch, i just prevent this happen, maybe the better way is like this, see TS-844-2.patch, or just remove that ink_assert line, because follow it is a if condition judgment.)

> ReadFromWriter fail in CacheRead.cc
> -----------------------------------
>
>                 Key: TS-844
>                 URL: https://issues.apache.org/jira/browse/TS-844
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: mohan_zl
>            Assignee: Zhao Yongming
>             Fix For: 3.1.0
>
>         Attachments: TS-844.patch
>
>
> {code}
> #6  0x00000000006ab4d7 in CacheVC::openReadChooseWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:320
> #7  0x00000000006abdc9 in CacheVC::openReadFromWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:411
> #8  0x00000000004d302f in Continuation::handleEvent (this=0x2aaaf81523d0, event=1, data=0x0) at I_Continuation.h:146
> #9  0x00000000006ae2b9 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, key=0x42100b10, request=0x2aaab44710f0, params=0x2aaab4470928, type=CACHE_FRAG_TYPE_HTTP,
>     hostname=0x2aab09581049 "js.tongji.linezing.comicon1.gifjs.tongji.linezing.com�ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿½ï¿½"..., host_len=22) at CacheRead.cc:228
> #10 0x000000000068da30 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928,
>     type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1068
> #11 0x000000000067d32f in CacheProcessor::open_read (this=0xf2c030, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0,
>     type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3011
> #12 0x000000000054e058 in HttpCacheSM::do_cache_open_read (this=0x2aaab4472aa0) at HttpCacheSM.cc:220
> #13 0x000000000054e1a7 in HttpCacheSM::open_read (this=0x2aaab4472aa0, url=0x2aaab4471108, hdr=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0) at HttpCacheSM.cc:252
> #14 0x0000000000568404 in HttpSM::do_cache_lookup_and_read (this=0x2aaab4470830) at HttpSM.cc:3893
> #15 0x00000000005734b5 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6436
> #16 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #17 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #18 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #19 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #20 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #21 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #22 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #23 0x0000000000572faf in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6378
> #24 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #25 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #26 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #27 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #28 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #29 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #30 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #31 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #32 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #33 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #34 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #35 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #36 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0x59e52e <HttpTransact::ModifyRequest(HttpTransact::State*)>) at HttpSM.cc:6328
> #37 0x000000000057490c in HttpSM::state_read_client_request_header (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:780
> #38 0x000000000056e49f in HttpSM::main_handler (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:2436
> #39 0x00000000004d302f in Continuation::handleEvent (this=0x2aaab4470830, event=100, data=0x2049f5e8) at I_Continuation.h:146
> #40 0x00000000006d6b61 in read_signal_and_update (event=100, vc=0x2049f420) at UnixNetVConnection.cc:138
> #41 0x00000000006d739e in read_from_net (nh=0x2aaaab32f688, vc=0x2049f420, thread=0x2aaaab32e010) at UnixNetVConnection.cc:320
> #42 0x00000000006d74b9 in UnixNetVConnection::net_read_io (this=0x2049f420, nh=0x2aaaab32f688, lthread=0x2aaaab32e010) at UnixNetVConnection.cc:793
> #43 0x00000000006d0bbc in NetHandler::mainNetEvent (this=0x2aaaab32f688, event=5, e=0x1ebf6830) at UnixNet.cc:389
> #44 0x00000000004d302f in Continuation::handleEvent (this=0x2aaaab32f688, event=5, data=0x1ebf6830) at I_Continuation.h:146
> #45 0x00000000006f9978 in EThread::process_event (this=0x2aaaab32e010, e=0x1ebf6830, calling_code=5) at UnixEThread.cc:140
> #46 0x00000000006f9e96 in EThread::execute (this=0x2aaaab32e010) at UnixEThread.cc:262
> ---Type <return> to continue, or q <return> to quit---b
> #47 0x00000000006f92c9 in spawn_thread_internal (a=0x1ebea410) at Thread.cc:88
> #48 0x00000030e3a064a7 in start_thread () from /lib64/libpthread.so.0
> #49 0x00000030e2ed3c2d in clone () from /lib64/libc.so.6
> {code}

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

       

[jira] [Updated] (TS-844) ReadFromWriter fail in CacheRead.cc

Posted by "mohan_zl (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

mohan_zl updated TS-844:
------------------------

    Attachment: TS-844-2.patch

> ReadFromWriter fail in CacheRead.cc
> -----------------------------------
>
>                 Key: TS-844
>                 URL: https://issues.apache.org/jira/browse/TS-844
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: mohan_zl
>            Assignee: Zhao Yongming
>             Fix For: 3.1.0
>
>         Attachments: TS-844-2.patch, TS-844.patch
>
>
> {code}
> #6  0x00000000006ab4d7 in CacheVC::openReadChooseWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:320
> #7  0x00000000006abdc9 in CacheVC::openReadFromWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:411
> #8  0x00000000004d302f in Continuation::handleEvent (this=0x2aaaf81523d0, event=1, data=0x0) at I_Continuation.h:146
> #9  0x00000000006ae2b9 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, key=0x42100b10, request=0x2aaab44710f0, params=0x2aaab4470928, type=CACHE_FRAG_TYPE_HTTP,
>     hostname=0x2aab09581049 "js.tongji.linezing.comicon1.gifjs.tongji.linezing.com�ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿½ï¿½"..., host_len=22) at CacheRead.cc:228
> #10 0x000000000068da30 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928,
>     type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1068
> #11 0x000000000067d32f in CacheProcessor::open_read (this=0xf2c030, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0,
>     type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3011
> #12 0x000000000054e058 in HttpCacheSM::do_cache_open_read (this=0x2aaab4472aa0) at HttpCacheSM.cc:220
> #13 0x000000000054e1a7 in HttpCacheSM::open_read (this=0x2aaab4472aa0, url=0x2aaab4471108, hdr=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0) at HttpCacheSM.cc:252
> #14 0x0000000000568404 in HttpSM::do_cache_lookup_and_read (this=0x2aaab4470830) at HttpSM.cc:3893
> #15 0x00000000005734b5 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6436
> #16 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #17 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #18 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #19 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #20 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #21 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #22 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #23 0x0000000000572faf in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6378
> #24 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #25 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #26 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #27 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #28 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #29 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #30 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #31 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #32 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #33 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #34 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #35 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #36 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0x59e52e <HttpTransact::ModifyRequest(HttpTransact::State*)>) at HttpSM.cc:6328
> #37 0x000000000057490c in HttpSM::state_read_client_request_header (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:780
> #38 0x000000000056e49f in HttpSM::main_handler (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:2436
> #39 0x00000000004d302f in Continuation::handleEvent (this=0x2aaab4470830, event=100, data=0x2049f5e8) at I_Continuation.h:146
> #40 0x00000000006d6b61 in read_signal_and_update (event=100, vc=0x2049f420) at UnixNetVConnection.cc:138
> #41 0x00000000006d739e in read_from_net (nh=0x2aaaab32f688, vc=0x2049f420, thread=0x2aaaab32e010) at UnixNetVConnection.cc:320
> #42 0x00000000006d74b9 in UnixNetVConnection::net_read_io (this=0x2049f420, nh=0x2aaaab32f688, lthread=0x2aaaab32e010) at UnixNetVConnection.cc:793
> #43 0x00000000006d0bbc in NetHandler::mainNetEvent (this=0x2aaaab32f688, event=5, e=0x1ebf6830) at UnixNet.cc:389
> #44 0x00000000004d302f in Continuation::handleEvent (this=0x2aaaab32f688, event=5, data=0x1ebf6830) at I_Continuation.h:146
> #45 0x00000000006f9978 in EThread::process_event (this=0x2aaaab32e010, e=0x1ebf6830, calling_code=5) at UnixEThread.cc:140
> #46 0x00000000006f9e96 in EThread::execute (this=0x2aaaab32e010) at UnixEThread.cc:262
> ---Type <return> to continue, or q <return> to quit---b
> #47 0x00000000006f92c9 in spawn_thread_internal (a=0x1ebea410) at Thread.cc:88
> #48 0x00000030e3a064a7 in start_thread () from /lib64/libpthread.so.0
> #49 0x00000030e2ed3c2d in clone () from /lib64/libc.so.6
> {code}

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

       

[jira] [Commented] (TS-844) ReadFromWriter fail in CacheRead.cc

Posted by "Zhao Yongming (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080763#comment-13080763 ] 

Zhao Yongming commented on TS-844:
----------------------------------

after talk to mohan, he is not sure what is the low level crash root cause too, that is what John wondering.
I'd push back a while, if no other report on the same issue, maybe mohan can get the question cleared.

> ReadFromWriter fail in CacheRead.cc
> -----------------------------------
>
>                 Key: TS-844
>                 URL: https://issues.apache.org/jira/browse/TS-844
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: mohan_zl
>            Assignee: Zhao Yongming
>             Fix For: 3.1.0
>
>         Attachments: TS-844.patch
>
>
> {code}
> #6  0x00000000006ab4d7 in CacheVC::openReadChooseWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:320
> #7  0x00000000006abdc9 in CacheVC::openReadFromWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:411
> #8  0x00000000004d302f in Continuation::handleEvent (this=0x2aaaf81523d0, event=1, data=0x0) at I_Continuation.h:146
> #9  0x00000000006ae2b9 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, key=0x42100b10, request=0x2aaab44710f0, params=0x2aaab4470928, type=CACHE_FRAG_TYPE_HTTP,
>     hostname=0x2aab09581049 "js.tongji.linezing.comicon1.gifjs.tongji.linezing.com�ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿½ï¿½"..., host_len=22) at CacheRead.cc:228
> #10 0x000000000068da30 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928,
>     type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1068
> #11 0x000000000067d32f in CacheProcessor::open_read (this=0xf2c030, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0,
>     type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3011
> #12 0x000000000054e058 in HttpCacheSM::do_cache_open_read (this=0x2aaab4472aa0) at HttpCacheSM.cc:220
> #13 0x000000000054e1a7 in HttpCacheSM::open_read (this=0x2aaab4472aa0, url=0x2aaab4471108, hdr=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0) at HttpCacheSM.cc:252
> #14 0x0000000000568404 in HttpSM::do_cache_lookup_and_read (this=0x2aaab4470830) at HttpSM.cc:3893
> #15 0x00000000005734b5 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6436
> #16 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #17 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #18 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #19 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #20 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #21 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #22 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #23 0x0000000000572faf in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6378
> #24 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #25 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #26 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #27 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #28 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #29 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #30 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #31 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #32 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #33 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #34 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #35 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #36 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0x59e52e <HttpTransact::ModifyRequest(HttpTransact::State*)>) at HttpSM.cc:6328
> #37 0x000000000057490c in HttpSM::state_read_client_request_header (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:780
> #38 0x000000000056e49f in HttpSM::main_handler (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:2436
> #39 0x00000000004d302f in Continuation::handleEvent (this=0x2aaab4470830, event=100, data=0x2049f5e8) at I_Continuation.h:146
> #40 0x00000000006d6b61 in read_signal_and_update (event=100, vc=0x2049f420) at UnixNetVConnection.cc:138
> #41 0x00000000006d739e in read_from_net (nh=0x2aaaab32f688, vc=0x2049f420, thread=0x2aaaab32e010) at UnixNetVConnection.cc:320
> #42 0x00000000006d74b9 in UnixNetVConnection::net_read_io (this=0x2049f420, nh=0x2aaaab32f688, lthread=0x2aaaab32e010) at UnixNetVConnection.cc:793
> #43 0x00000000006d0bbc in NetHandler::mainNetEvent (this=0x2aaaab32f688, event=5, e=0x1ebf6830) at UnixNet.cc:389
> #44 0x00000000004d302f in Continuation::handleEvent (this=0x2aaaab32f688, event=5, data=0x1ebf6830) at I_Continuation.h:146
> #45 0x00000000006f9978 in EThread::process_event (this=0x2aaaab32e010, e=0x1ebf6830, calling_code=5) at UnixEThread.cc:140
> #46 0x00000000006f9e96 in EThread::execute (this=0x2aaaab32e010) at UnixEThread.cc:262
> ---Type <return> to continue, or q <return> to quit---b
> #47 0x00000000006f92c9 in spawn_thread_internal (a=0x1ebea410) at Thread.cc:88
> #48 0x00000030e3a064a7 in start_thread () from /lib64/libpthread.so.0
> #49 0x00000030e2ed3c2d in clone () from /lib64/libc.so.6
> {code}

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

       

[jira] [Updated] (TS-844) ReadFromWriter fail in CacheRead.cc

Posted by "mohan_zl (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

mohan_zl updated TS-844:
------------------------

    Attachment: TS-844-2.patch

> ReadFromWriter fail in CacheRead.cc
> -----------------------------------
>
>                 Key: TS-844
>                 URL: https://issues.apache.org/jira/browse/TS-844
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: mohan_zl
>            Assignee: Zhao Yongming
>             Fix For: 3.1.0
>
>         Attachments: TS-844-2.patch, TS-844.patch
>
>
> {code}
> #6  0x00000000006ab4d7 in CacheVC::openReadChooseWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:320
> #7  0x00000000006abdc9 in CacheVC::openReadFromWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:411
> #8  0x00000000004d302f in Continuation::handleEvent (this=0x2aaaf81523d0, event=1, data=0x0) at I_Continuation.h:146
> #9  0x00000000006ae2b9 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, key=0x42100b10, request=0x2aaab44710f0, params=0x2aaab4470928, type=CACHE_FRAG_TYPE_HTTP,
>     hostname=0x2aab09581049 "js.tongji.linezing.comicon1.gifjs.tongji.linezing.com�ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿½ï¿½"..., host_len=22) at CacheRead.cc:228
> #10 0x000000000068da30 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928,
>     type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1068
> #11 0x000000000067d32f in CacheProcessor::open_read (this=0xf2c030, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0,
>     type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3011
> #12 0x000000000054e058 in HttpCacheSM::do_cache_open_read (this=0x2aaab4472aa0) at HttpCacheSM.cc:220
> #13 0x000000000054e1a7 in HttpCacheSM::open_read (this=0x2aaab4472aa0, url=0x2aaab4471108, hdr=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0) at HttpCacheSM.cc:252
> #14 0x0000000000568404 in HttpSM::do_cache_lookup_and_read (this=0x2aaab4470830) at HttpSM.cc:3893
> #15 0x00000000005734b5 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6436
> #16 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #17 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #18 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #19 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #20 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #21 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #22 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #23 0x0000000000572faf in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6378
> #24 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #25 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #26 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #27 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #28 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #29 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #30 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #31 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #32 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #33 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #34 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #35 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #36 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0x59e52e <HttpTransact::ModifyRequest(HttpTransact::State*)>) at HttpSM.cc:6328
> #37 0x000000000057490c in HttpSM::state_read_client_request_header (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:780
> #38 0x000000000056e49f in HttpSM::main_handler (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:2436
> #39 0x00000000004d302f in Continuation::handleEvent (this=0x2aaab4470830, event=100, data=0x2049f5e8) at I_Continuation.h:146
> #40 0x00000000006d6b61 in read_signal_and_update (event=100, vc=0x2049f420) at UnixNetVConnection.cc:138
> #41 0x00000000006d739e in read_from_net (nh=0x2aaaab32f688, vc=0x2049f420, thread=0x2aaaab32e010) at UnixNetVConnection.cc:320
> #42 0x00000000006d74b9 in UnixNetVConnection::net_read_io (this=0x2049f420, nh=0x2aaaab32f688, lthread=0x2aaaab32e010) at UnixNetVConnection.cc:793
> #43 0x00000000006d0bbc in NetHandler::mainNetEvent (this=0x2aaaab32f688, event=5, e=0x1ebf6830) at UnixNet.cc:389
> #44 0x00000000004d302f in Continuation::handleEvent (this=0x2aaaab32f688, event=5, data=0x1ebf6830) at I_Continuation.h:146
> #45 0x00000000006f9978 in EThread::process_event (this=0x2aaaab32e010, e=0x1ebf6830, calling_code=5) at UnixEThread.cc:140
> #46 0x00000000006f9e96 in EThread::execute (this=0x2aaaab32e010) at UnixEThread.cc:262
> ---Type <return> to continue, or q <return> to quit---b
> #47 0x00000000006f92c9 in spawn_thread_internal (a=0x1ebea410) at Thread.cc:88
> #48 0x00000030e3a064a7 in start_thread () from /lib64/libpthread.so.0
> #49 0x00000030e2ed3c2d in clone () from /lib64/libc.so.6
> {code}

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

       

[jira] [Updated] (TS-844) ReadFromWriter fail in CacheRead.cc

Posted by "mohan_zl (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

mohan_zl updated TS-844:
------------------------

    Attachment:     (was: TS-844-2.patch)

> ReadFromWriter fail in CacheRead.cc
> -----------------------------------
>
>                 Key: TS-844
>                 URL: https://issues.apache.org/jira/browse/TS-844
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: mohan_zl
>            Assignee: Zhao Yongming
>             Fix For: 3.1.0
>
>         Attachments: TS-844.patch
>
>
> {code}
> #6  0x00000000006ab4d7 in CacheVC::openReadChooseWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:320
> #7  0x00000000006abdc9 in CacheVC::openReadFromWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:411
> #8  0x00000000004d302f in Continuation::handleEvent (this=0x2aaaf81523d0, event=1, data=0x0) at I_Continuation.h:146
> #9  0x00000000006ae2b9 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, key=0x42100b10, request=0x2aaab44710f0, params=0x2aaab4470928, type=CACHE_FRAG_TYPE_HTTP,
>     hostname=0x2aab09581049 "js.tongji.linezing.comicon1.gifjs.tongji.linezing.com�ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿½ï¿½"..., host_len=22) at CacheRead.cc:228
> #10 0x000000000068da30 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928,
>     type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1068
> #11 0x000000000067d32f in CacheProcessor::open_read (this=0xf2c030, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0,
>     type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3011
> #12 0x000000000054e058 in HttpCacheSM::do_cache_open_read (this=0x2aaab4472aa0) at HttpCacheSM.cc:220
> #13 0x000000000054e1a7 in HttpCacheSM::open_read (this=0x2aaab4472aa0, url=0x2aaab4471108, hdr=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0) at HttpCacheSM.cc:252
> #14 0x0000000000568404 in HttpSM::do_cache_lookup_and_read (this=0x2aaab4470830) at HttpSM.cc:3893
> #15 0x00000000005734b5 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6436
> #16 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #17 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #18 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #19 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #20 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #21 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #22 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #23 0x0000000000572faf in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6378
> #24 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #25 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #26 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #27 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #28 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #29 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #30 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #31 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #32 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #33 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #34 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #35 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #36 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0x59e52e <HttpTransact::ModifyRequest(HttpTransact::State*)>) at HttpSM.cc:6328
> #37 0x000000000057490c in HttpSM::state_read_client_request_header (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:780
> #38 0x000000000056e49f in HttpSM::main_handler (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:2436
> #39 0x00000000004d302f in Continuation::handleEvent (this=0x2aaab4470830, event=100, data=0x2049f5e8) at I_Continuation.h:146
> #40 0x00000000006d6b61 in read_signal_and_update (event=100, vc=0x2049f420) at UnixNetVConnection.cc:138
> #41 0x00000000006d739e in read_from_net (nh=0x2aaaab32f688, vc=0x2049f420, thread=0x2aaaab32e010) at UnixNetVConnection.cc:320
> #42 0x00000000006d74b9 in UnixNetVConnection::net_read_io (this=0x2049f420, nh=0x2aaaab32f688, lthread=0x2aaaab32e010) at UnixNetVConnection.cc:793
> #43 0x00000000006d0bbc in NetHandler::mainNetEvent (this=0x2aaaab32f688, event=5, e=0x1ebf6830) at UnixNet.cc:389
> #44 0x00000000004d302f in Continuation::handleEvent (this=0x2aaaab32f688, event=5, data=0x1ebf6830) at I_Continuation.h:146
> #45 0x00000000006f9978 in EThread::process_event (this=0x2aaaab32e010, e=0x1ebf6830, calling_code=5) at UnixEThread.cc:140
> #46 0x00000000006f9e96 in EThread::execute (this=0x2aaaab32e010) at UnixEThread.cc:262
> ---Type <return> to continue, or q <return> to quit---b
> #47 0x00000000006f92c9 in spawn_thread_internal (a=0x1ebea410) at Thread.cc:88
> #48 0x00000030e3a064a7 in start_thread () from /lib64/libpthread.so.0
> #49 0x00000030e2ed3c2d in clone () from /lib64/libc.so.6
> {code}

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

       

[jira] [Commented] (TS-844) ReadFromWriter fail in CacheRead.cc

Posted by "mohan_zl (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051760#comment-13051760 ] 

mohan_zl commented on TS-844:
-----------------------------

The enviroment is like this:
{quota}
[root@cache180 ~]# uname -a
Linux cache180.cn63 2.6.18-164.11.1.el5 #1 SMP Sun Mar 7 17:26:09 CST 2010 x86_64 x86_64 x86_64 GNU/Linux
{quota}
We use the latest trunk, plus the patch TS-833-3.diff which John submit in TS-833, with enable debug info.
I think this problem occured when some illegal request came and TS try to update it in cache, and fail. The hostname in gdb debug is a dirty data.

> ReadFromWriter fail in CacheRead.cc
> -----------------------------------
>
>                 Key: TS-844
>                 URL: https://issues.apache.org/jira/browse/TS-844
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: mohan_zl
>
> {code}
> #6  0x00000000006ab4d7 in CacheVC::openReadChooseWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:320
> #7  0x00000000006abdc9 in CacheVC::openReadFromWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:411
> #8  0x00000000004d302f in Continuation::handleEvent (this=0x2aaaf81523d0, event=1, data=0x0) at I_Continuation.h:146
> #9  0x00000000006ae2b9 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, key=0x42100b10, request=0x2aaab44710f0, params=0x2aaab4470928, type=CACHE_FRAG_TYPE_HTTP,
>     hostname=0x2aab09581049 "js.tongji.linezing.comicon1.gifjs.tongji.linezing.com�ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿½ï¿½"..., host_len=22) at CacheRead.cc:228
> #10 0x000000000068da30 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928,
>     type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1068
> #11 0x000000000067d32f in CacheProcessor::open_read (this=0xf2c030, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0,
>     type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3011
> #12 0x000000000054e058 in HttpCacheSM::do_cache_open_read (this=0x2aaab4472aa0) at HttpCacheSM.cc:220
> #13 0x000000000054e1a7 in HttpCacheSM::open_read (this=0x2aaab4472aa0, url=0x2aaab4471108, hdr=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0) at HttpCacheSM.cc:252
> #14 0x0000000000568404 in HttpSM::do_cache_lookup_and_read (this=0x2aaab4470830) at HttpSM.cc:3893
> #15 0x00000000005734b5 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6436
> #16 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #17 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #18 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #19 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #20 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #21 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #22 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #23 0x0000000000572faf in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6378
> #24 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #25 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #26 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #27 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #28 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #29 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #30 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #31 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #32 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #33 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #34 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #35 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #36 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0x59e52e <HttpTransact::ModifyRequest(HttpTransact::State*)>) at HttpSM.cc:6328
> #37 0x000000000057490c in HttpSM::state_read_client_request_header (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:780
> #38 0x000000000056e49f in HttpSM::main_handler (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:2436
> #39 0x00000000004d302f in Continuation::handleEvent (this=0x2aaab4470830, event=100, data=0x2049f5e8) at I_Continuation.h:146
> #40 0x00000000006d6b61 in read_signal_and_update (event=100, vc=0x2049f420) at UnixNetVConnection.cc:138
> #41 0x00000000006d739e in read_from_net (nh=0x2aaaab32f688, vc=0x2049f420, thread=0x2aaaab32e010) at UnixNetVConnection.cc:320
> #42 0x00000000006d74b9 in UnixNetVConnection::net_read_io (this=0x2049f420, nh=0x2aaaab32f688, lthread=0x2aaaab32e010) at UnixNetVConnection.cc:793
> #43 0x00000000006d0bbc in NetHandler::mainNetEvent (this=0x2aaaab32f688, event=5, e=0x1ebf6830) at UnixNet.cc:389
> #44 0x00000000004d302f in Continuation::handleEvent (this=0x2aaaab32f688, event=5, data=0x1ebf6830) at I_Continuation.h:146
> #45 0x00000000006f9978 in EThread::process_event (this=0x2aaaab32e010, e=0x1ebf6830, calling_code=5) at UnixEThread.cc:140
> #46 0x00000000006f9e96 in EThread::execute (this=0x2aaaab32e010) at UnixEThread.cc:262
> ---Type <return> to continue, or q <return> to quit---b
> #47 0x00000000006f92c9 in spawn_thread_internal (a=0x1ebea410) at Thread.cc:88
> #48 0x00000030e3a064a7 in start_thread () from /lib64/libpthread.so.0
> #49 0x00000030e2ed3c2d in clone () from /lib64/libc.so.6
> {code}

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

       

[jira] [Updated] (TS-844) ReadFromWriter fail in CacheRead.cc

Posted by "mohan_zl (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

mohan_zl updated TS-844:
------------------------

    Attachment: TS-844.patch

Use TS-844.patch and test again, now no related problem coming.

> ReadFromWriter fail in CacheRead.cc
> -----------------------------------
>
>                 Key: TS-844
>                 URL: https://issues.apache.org/jira/browse/TS-844
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: mohan_zl
>         Attachments: TS-844.patch
>
>
> {code}
> #6  0x00000000006ab4d7 in CacheVC::openReadChooseWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:320
> #7  0x00000000006abdc9 in CacheVC::openReadFromWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:411
> #8  0x00000000004d302f in Continuation::handleEvent (this=0x2aaaf81523d0, event=1, data=0x0) at I_Continuation.h:146
> #9  0x00000000006ae2b9 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, key=0x42100b10, request=0x2aaab44710f0, params=0x2aaab4470928, type=CACHE_FRAG_TYPE_HTTP,
>     hostname=0x2aab09581049 "js.tongji.linezing.comicon1.gifjs.tongji.linezing.com�ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿½ï¿½"..., host_len=22) at CacheRead.cc:228
> #10 0x000000000068da30 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928,
>     type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1068
> #11 0x000000000067d32f in CacheProcessor::open_read (this=0xf2c030, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0,
>     type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3011
> #12 0x000000000054e058 in HttpCacheSM::do_cache_open_read (this=0x2aaab4472aa0) at HttpCacheSM.cc:220
> #13 0x000000000054e1a7 in HttpCacheSM::open_read (this=0x2aaab4472aa0, url=0x2aaab4471108, hdr=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0) at HttpCacheSM.cc:252
> #14 0x0000000000568404 in HttpSM::do_cache_lookup_and_read (this=0x2aaab4470830) at HttpSM.cc:3893
> #15 0x00000000005734b5 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6436
> #16 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #17 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #18 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #19 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #20 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #21 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #22 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #23 0x0000000000572faf in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6378
> #24 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #25 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #26 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #27 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #28 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #29 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #30 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #31 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #32 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #33 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #34 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #35 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #36 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0x59e52e <HttpTransact::ModifyRequest(HttpTransact::State*)>) at HttpSM.cc:6328
> #37 0x000000000057490c in HttpSM::state_read_client_request_header (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:780
> #38 0x000000000056e49f in HttpSM::main_handler (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:2436
> #39 0x00000000004d302f in Continuation::handleEvent (this=0x2aaab4470830, event=100, data=0x2049f5e8) at I_Continuation.h:146
> #40 0x00000000006d6b61 in read_signal_and_update (event=100, vc=0x2049f420) at UnixNetVConnection.cc:138
> #41 0x00000000006d739e in read_from_net (nh=0x2aaaab32f688, vc=0x2049f420, thread=0x2aaaab32e010) at UnixNetVConnection.cc:320
> #42 0x00000000006d74b9 in UnixNetVConnection::net_read_io (this=0x2049f420, nh=0x2aaaab32f688, lthread=0x2aaaab32e010) at UnixNetVConnection.cc:793
> #43 0x00000000006d0bbc in NetHandler::mainNetEvent (this=0x2aaaab32f688, event=5, e=0x1ebf6830) at UnixNet.cc:389
> #44 0x00000000004d302f in Continuation::handleEvent (this=0x2aaaab32f688, event=5, data=0x1ebf6830) at I_Continuation.h:146
> #45 0x00000000006f9978 in EThread::process_event (this=0x2aaaab32e010, e=0x1ebf6830, calling_code=5) at UnixEThread.cc:140
> #46 0x00000000006f9e96 in EThread::execute (this=0x2aaaab32e010) at UnixEThread.cc:262
> ---Type <return> to continue, or q <return> to quit---b
> #47 0x00000000006f92c9 in spawn_thread_internal (a=0x1ebea410) at Thread.cc:88
> #48 0x00000030e3a064a7 in start_thread () from /lib64/libpthread.so.0
> #49 0x00000030e2ed3c2d in clone () from /lib64/libc.so.6
> {code}

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

       

[jira] [Updated] (TS-844) ReadFromWriter fail in CacheRead.cc

Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom updated TS-844:
-----------------------------

    Fix Version/s:     (was: 3.1.0)
                   sometime

Moving this out from 3.1.0, seems like it's no longer an issue? Close this if that's the case.

> ReadFromWriter fail in CacheRead.cc
> -----------------------------------
>
>                 Key: TS-844
>                 URL: https://issues.apache.org/jira/browse/TS-844
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: mohan_zl
>            Assignee: Zhao Yongming
>             Fix For: sometime
>
>         Attachments: TS-844-2.patch, TS-844.patch
>
>
> {code}
> #6  0x00000000006ab4d7 in CacheVC::openReadChooseWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:320
> #7  0x00000000006abdc9 in CacheVC::openReadFromWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:411
> #8  0x00000000004d302f in Continuation::handleEvent (this=0x2aaaf81523d0, event=1, data=0x0) at I_Continuation.h:146
> #9  0x00000000006ae2b9 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, key=0x42100b10, request=0x2aaab44710f0, params=0x2aaab4470928, type=CACHE_FRAG_TYPE_HTTP,
>     hostname=0x2aab09581049 "js.tongji.linezing.comicon1.gifjs.tongji.linezing.com�ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿½ï¿½"..., host_len=22) at CacheRead.cc:228
> #10 0x000000000068da30 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928,
>     type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1068
> #11 0x000000000067d32f in CacheProcessor::open_read (this=0xf2c030, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0,
>     type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3011
> #12 0x000000000054e058 in HttpCacheSM::do_cache_open_read (this=0x2aaab4472aa0) at HttpCacheSM.cc:220
> #13 0x000000000054e1a7 in HttpCacheSM::open_read (this=0x2aaab4472aa0, url=0x2aaab4471108, hdr=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0) at HttpCacheSM.cc:252
> #14 0x0000000000568404 in HttpSM::do_cache_lookup_and_read (this=0x2aaab4470830) at HttpSM.cc:3893
> #15 0x00000000005734b5 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6436
> #16 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #17 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #18 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #19 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #20 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #21 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #22 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #23 0x0000000000572faf in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6378
> #24 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #25 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #26 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #27 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #28 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #29 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #30 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #31 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #32 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #33 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #34 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #35 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #36 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0x59e52e <HttpTransact::ModifyRequest(HttpTransact::State*)>) at HttpSM.cc:6328
> #37 0x000000000057490c in HttpSM::state_read_client_request_header (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:780
> #38 0x000000000056e49f in HttpSM::main_handler (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:2436
> #39 0x00000000004d302f in Continuation::handleEvent (this=0x2aaab4470830, event=100, data=0x2049f5e8) at I_Continuation.h:146
> #40 0x00000000006d6b61 in read_signal_and_update (event=100, vc=0x2049f420) at UnixNetVConnection.cc:138
> #41 0x00000000006d739e in read_from_net (nh=0x2aaaab32f688, vc=0x2049f420, thread=0x2aaaab32e010) at UnixNetVConnection.cc:320
> #42 0x00000000006d74b9 in UnixNetVConnection::net_read_io (this=0x2049f420, nh=0x2aaaab32f688, lthread=0x2aaaab32e010) at UnixNetVConnection.cc:793
> #43 0x00000000006d0bbc in NetHandler::mainNetEvent (this=0x2aaaab32f688, event=5, e=0x1ebf6830) at UnixNet.cc:389
> #44 0x00000000004d302f in Continuation::handleEvent (this=0x2aaaab32f688, event=5, data=0x1ebf6830) at I_Continuation.h:146
> #45 0x00000000006f9978 in EThread::process_event (this=0x2aaaab32e010, e=0x1ebf6830, calling_code=5) at UnixEThread.cc:140
> #46 0x00000000006f9e96 in EThread::execute (this=0x2aaaab32e010) at UnixEThread.cc:262
> ---Type <return> to continue, or q <return> to quit---b
> #47 0x00000000006f92c9 in spawn_thread_internal (a=0x1ebea410) at Thread.cc:88
> #48 0x00000030e3a064a7 in start_thread () from /lib64/libpthread.so.0
> #49 0x00000030e2ed3c2d in clone () from /lib64/libc.so.6
> {code}

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

       

[jira] [Closed] (TS-844) ReadFromWriter fail in CacheRead.cc

Posted by "mohan_zl (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

mohan_zl closed TS-844.
-----------------------

    Resolution: Fixed

Seems not reproduced now, and close it temporarily.

> ReadFromWriter fail in CacheRead.cc
> -----------------------------------
>
>                 Key: TS-844
>                 URL: https://issues.apache.org/jira/browse/TS-844
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: mohan_zl
>            Assignee: Zhao Yongming
>             Fix For: sometime
>
>         Attachments: TS-844-2.patch, TS-844.patch
>
>
> {code}
> #6  0x00000000006ab4d7 in CacheVC::openReadChooseWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:320
> #7  0x00000000006abdc9 in CacheVC::openReadFromWriter (this=0x2aaaf81523d0, event=1, e=0x0) at CacheRead.cc:411
> #8  0x00000000004d302f in Continuation::handleEvent (this=0x2aaaf81523d0, event=1, data=0x0) at I_Continuation.h:146
> #9  0x00000000006ae2b9 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, key=0x42100b10, request=0x2aaab44710f0, params=0x2aaab4470928, type=CACHE_FRAG_TYPE_HTTP,
>     hostname=0x2aab09581049 "js.tongji.linezing.comicon1.gifjs.tongji.linezing.com�ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿ï¿½Þ­ï¿½ï¿½ï¿½"..., host_len=22) at CacheRead.cc:228
> #10 0x000000000068da30 in Cache::open_read (this=0x2aaab0001c40, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928,
>     type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1068
> #11 0x000000000067d32f in CacheProcessor::open_read (this=0xf2c030, cont=0x2aaab4472aa0, url=0x2aaab4471108, request=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0,
>     type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3011
> #12 0x000000000054e058 in HttpCacheSM::do_cache_open_read (this=0x2aaab4472aa0) at HttpCacheSM.cc:220
> #13 0x000000000054e1a7 in HttpCacheSM::open_read (this=0x2aaab4472aa0, url=0x2aaab4471108, hdr=0x2aaab44710f0, params=0x2aaab4470928, pin_in_cache=0) at HttpCacheSM.cc:252
> #14 0x0000000000568404 in HttpSM::do_cache_lookup_and_read (this=0x2aaab4470830) at HttpSM.cc:3893
> #15 0x00000000005734b5 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6436
> #16 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #17 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #18 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #19 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #20 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #21 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #22 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #23 0x0000000000572faf in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6378
> #24 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #25 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #26 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #27 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #28 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #29 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #30 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0) at HttpSM.cc:6328
> #31 0x0000000000574b78 in HttpSM::handle_api_return (this=0x2aaab4470830) at HttpSM.cc:1516
> #32 0x000000000056dbe7 in HttpSM::state_api_callout (this=0x2aaab4470830, event=0, data=0x0) at HttpSM.cc:1448
> #33 0x000000000056de77 in HttpSM::do_api_callout_internal (this=0x2aaab4470830) at HttpSM.cc:4345
> #34 0x0000000000578c89 in HttpSM::do_api_callout (this=0x2aaab4470830) at HttpSM.cc:497
> #35 0x0000000000572e93 in HttpSM::set_next_state (this=0x2aaab4470830) at HttpSM.cc:6362
> #36 0x000000000056115a in HttpSM::call_transact_and_set_next_state (this=0x2aaab4470830, f=0x59e52e <HttpTransact::ModifyRequest(HttpTransact::State*)>) at HttpSM.cc:6328
> #37 0x000000000057490c in HttpSM::state_read_client_request_header (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:780
> #38 0x000000000056e49f in HttpSM::main_handler (this=0x2aaab4470830, event=100, data=0x2049f5e8) at HttpSM.cc:2436
> #39 0x00000000004d302f in Continuation::handleEvent (this=0x2aaab4470830, event=100, data=0x2049f5e8) at I_Continuation.h:146
> #40 0x00000000006d6b61 in read_signal_and_update (event=100, vc=0x2049f420) at UnixNetVConnection.cc:138
> #41 0x00000000006d739e in read_from_net (nh=0x2aaaab32f688, vc=0x2049f420, thread=0x2aaaab32e010) at UnixNetVConnection.cc:320
> #42 0x00000000006d74b9 in UnixNetVConnection::net_read_io (this=0x2049f420, nh=0x2aaaab32f688, lthread=0x2aaaab32e010) at UnixNetVConnection.cc:793
> #43 0x00000000006d0bbc in NetHandler::mainNetEvent (this=0x2aaaab32f688, event=5, e=0x1ebf6830) at UnixNet.cc:389
> #44 0x00000000004d302f in Continuation::handleEvent (this=0x2aaaab32f688, event=5, data=0x1ebf6830) at I_Continuation.h:146
> #45 0x00000000006f9978 in EThread::process_event (this=0x2aaaab32e010, e=0x1ebf6830, calling_code=5) at UnixEThread.cc:140
> #46 0x00000000006f9e96 in EThread::execute (this=0x2aaaab32e010) at UnixEThread.cc:262
> ---Type <return> to continue, or q <return> to quit---b
> #47 0x00000000006f92c9 in spawn_thread_internal (a=0x1ebea410) at Thread.cc:88
> #48 0x00000030e3a064a7 in start_thread () from /lib64/libpthread.so.0
> #49 0x00000030e2ed3c2d in clone () from /lib64/libc.so.6
> {code}

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