You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Alan M. Carroll (JIRA)" <ji...@apache.org> on 2013/07/16 01:48:51 UTC

[jira] [Comment Edited] (TS-2035) traffic server cores on startup when enabling multiple ports

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

Alan M. Carroll edited comment on TS-2035 at 7/15/13 11:48 PM:
---------------------------------------------------------------

The root cause here is that start_HttpProxyerver() is called before api_init(). This means connections can come in before api_init(), in which case HttpClientSession::new_connection uses http_global_hooks before it is initialized.
                
      was (Author: amc):
    The root cause here is that start_HttpProxyerver() is called before api_init(). This means connections can come in before api_init(), in which case HttpClientSessin::new_connection uses http_global_hooks before it is initialized.
                  
> traffic server cores on startup when enabling multiple ports
> ------------------------------------------------------------
>
>                 Key: TS-2035
>                 URL: https://issues.apache.org/jira/browse/TS-2035
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 3.3.4
>            Reporter: Bryan Call
>            Assignee: Alan M. Carroll
>             Fix For: 3.3.5
>
>
> Looks to be a race condition with http_global_hooks being set and the net threads are using it.
> (gdb) bt
> #0  0x000000000050abc5 in HttpClientSession::new_connection (
>     this=0x2b9d74014e30, new_vc=0x2b9d70015620, backdoor=<value optimized out>)
>     at HttpClientSession.cc:228
> #1  0x00000000005050ad in HttpAccept::mainEvent (this=0x2da0070,
>     event=<value optimized out>, data=0x2b9d70015620) at HttpAccept.cc:73
> #2  0x000000000068335c in UnixNetVConnection::acceptEvent (
>     this=0x2b9d70015620, event=1, e=0x2a1de90) at UnixNetVConnection.cc:972
> #3  0x00000000006a237f in EThread::process_event (this=0x2b9d28c0c010,
>     e=0x2a1de90, calling_code=1) at UnixEThread.cc:136
> #4  0x00000000006a2efb in insert (this=0x2b9d28c0c010)
>     at ../../lib/ts/List.h:201
> #5  insert (this=0x2b9d28c0c010) at ../../lib/ts/List.h:243
> #6  EThread::execute (this=0x2b9d28c0c010) at UnixEThread.cc:205
> #7  0x00000000006a121a in spawn_thread_internal (a=0x28eee30) at Thread.cc:85
> #8  0x00002b9d22c37851 in ?? ()
> #9  0x00002b9d2b02f700 in ?? ()
> #10 0x0000000000000000 in ?? ()
> Adding a printf to the code in HttpClientSession.cc:
> http_global_hooks: (nil)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira