You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Wei Sun (JIRA)" <ji...@apache.org> on 2014/11/18 14:33:34 UTC

[jira] [Commented] (TS-3201) ATS crash in PluginVC

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

Wei Sun commented on TS-3201:
-----------------------------

Looking into it, seems it happened on a spdy connection.
{code}
(gdb) bt
#0  0x00000000004f66d0 in Ptr<IOBufferBlock>::operator-> (this=0x38) at ../lib/ts/Ptr.h:330
#1  0x00000000004f5c39 in IOBufferReader::skip_empty_blocks (this=0x2b612452d258) at ../iocore/eventsystem/P_IOBuffer.h:551
#2  0x00000000005338ec in IOBufferReader::block_read_avail (this=0x2b612452d258) at ../iocore/eventsystem/P_IOBuffer.h:604
#3  0x0000000000530cb6 in PluginVC::transfer_bytes (this=0x2b615cf782d8, transfer_to=0x2b614d77f580, transfer_from=0x2b612452d258, act_on=1688) at PluginVC.cc:438
#4  0x0000000000531a63 in PluginVC::process_read_side (this=0x2b615cf782d8, other_side_call=true) at PluginVC.cc:655
#5  0x00000000005314e6 in PluginVC::process_write_side (this=0x2b615cf780f0, other_side_call=false) at PluginVC.cc:567
#6  0x0000000000530288 in PluginVC::main_handler (this=0x2b615cf780f0, event=1, data=0x2b61540fad30) at PluginVC.cc:212
#7  0x00000000004f5854 in Continuation::handleEvent (this=0x2b615cf780f0, event=1, data=0x2b61540fad30) at ../iocore/eventsystem/I_Continuation.h:146
#8  0x0000000000755d26 in EThread::process_event (this=0x2b607670c010, e=0x2b61540fad30, calling_code=1) at UnixEThread.cc:145
#9  0x0000000000755ef4 in EThread::execute (this=0x2b607670c010) at UnixEThread.cc:196
#10 0x0000000000755284 in spawn_thread_internal (a=0x309c8c0) at Thread.cc:88
#11 0x00002b605b0f79d1 in start_thread () from /lib64/libpthread.so.0
#12 0x00000034666e8b5d in clone () from /lib64/libc.so.6
(gdb) f 5
#5  0x00000000005314e6 in PluginVC::process_write_side (this=0x2b615cf780f0, other_side_call=false) at PluginVC.cc:567
567	in PluginVC.cc
(gdb) p *((write_state.vio._cont)->ua_entry->vc->client_vc->other_side->read_state.vio._cont->contp)
$1 = (SpdyClientSession) {<Continuation> = {<force_VFPT_to_top> = {_vptr.force_VFPT_to_top = 0x797530}, handler = (int (Continuation::*)(Continuation *, int, 
    void *)) 0x61d34a <SpdyClientSession::state_session_readwrite(int, void*)>, mutex = {m_ptr = 0x2b608c0612a0}, link = {<SLink<Continuation>> = {next = 0x0}, prev = 0x0}}, <PluginIdentity> = {
    _vptr.PluginIdentity = 0x797560}, sm_id = 1989840, version = spdy::SESSION_VERSION_3_1, total_size = 340, start_time = 1415964248205125093, vc = 0x2b608c916350, req_buffer = 0x2b611ea6c530, 
  req_reader = 0x2b611ea6c548, resp_buffer = 0x2b6114328e00, resp_reader = 0x2b6114328e18, read_vio = 0x2b608c916460, write_vio = 0x2b608c9164c8, event = 100, session = 0x2b615faf4000, 
  req_map = std::map with 1 elements = {[13] = 0x2b60931192a0}}
{code}

> ATS crash in PluginVC
> ---------------------
>
>                 Key: TS-3201
>                 URL: https://issues.apache.org/jira/browse/TS-3201
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: Wei Sun
>
> Intercept plugin crash when working with ats-5.0.
> {code}
> #0  0x00000000004e0f80 in Ptr<IOBufferBlock>::operator IOBufferBlock* (
>     this=0x38) at ../lib/ts/Ptr.h:326
> #1  0x00000000004f52dc in IOBufferReader::skip_empty_blocks (
>     this=0x2b4bec073718) at ../iocore/eventsystem/P_IOBuffer.h:551
> #2  0x0000000000532c04 in IOBufferReader::block_read_avail (
>     this=0x2b4bec073718) at ../iocore/eventsystem/P_IOBuffer.h:604
> #3  0x000000000052ffce in PluginVC::transfer_bytes (this=0x2b4b88586768,
>     transfer_to=0x2b4b6806c440, transfer_from=0x2b4bec073718, act_on=943)
>     at PluginVC.cc:438
> #4  0x0000000000530d7b in PluginVC::process_read_side (this=0x2b4b88586768,
>     other_side_call=true) at PluginVC.cc:655
> #5  0x00000000005307fe in PluginVC::process_write_side (this=0x2b4b88586580,
>     other_side_call=false) at PluginVC.cc:567
> #6  0x000000000052f5a0 in PluginVC::main_handler (this=0x2b4b88586580,
>     event=1, data=0x2b4b1426a060) at PluginVC.cc:212
> #7  0x00000000004f4f18 in Continuation::handleEvent (this=0x2b4b88586580,
>     event=1, data=0x2b4b1426a060) at ../iocore/eventsystem/I_Continuation.h:146
> #8  0x0000000000753d62 in EThread::process_event (this=0x2b4aed111010,
>     e=0x2b4b1426a060, calling_code=1) at UnixEThread.cc:145
> #9  0x0000000000753f30 in EThread::execute (this=0x2b4aed111010)
>     at UnixEThread.cc:196
> #10 0x00000000007532c0 in spawn_thread_internal (a=0x2bddf50) at Thread.cc:88
> #11 0x00002b4ad0c8c9d1 in start_thread () from /lib64/libpthread.so.0
> #12 0x0000003f09ae8b7d in clone () from /lib64/libc.so.6
> (gdb) up 3
> #3  0x000000000052ffce in PluginVC::transfer_bytes (this=0x2b4b88586768,
>     transfer_to=0x2b4b6806c440, transfer_from=0x2b4bec073718, act_on=943)
>     at PluginVC.cc:438
> 438     PluginVC.cc: No such file or directory.
>         in PluginVC.cc
> (gdb) p transfer_from
> $1 = (IOBufferReader *) 0x2b4bec073718
> (gdb) p *transfer_from
> $2 = {accessor = 0x0, mbuf = 0x0, block = {m_ptr = 0x0}, start_offset = 0,
>   size_limit = 9223372036854775807}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)