You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2013/07/23 17:38:48 UTC

[jira] [Resolved] (TS-2021) ATS crashes when body factory enabled (now the default in 3.3.4)

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

Leif Hedstrom resolved TS-2021.
-------------------------------

    Resolution: Duplicate

Marking this a fixed and dupe of TS-1978. I'm not 100% certain this is what fixed it, but it's the only fixes around this code as of lately so it seems reasonable.
                
> ATS crashes when body factory enabled (now the default in 3.3.4)
> ----------------------------------------------------------------
>
>                 Key: TS-2021
>                 URL: https://issues.apache.org/jira/browse/TS-2021
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Configuration, Core
>            Reporter: David Carlin
>            Assignee: Leif Hedstrom
>            Priority: Blocker
>
> Body factory is now enabled by default in records.config:
> https://github.com/apache/trafficserver/commit/962d864851332858a202f8c14a9ec671ec4e9a6c
> This was causing ATS to crash almost immediately after turning it on.  Configuring proxy.config.body_factory.enable_customizations = 0 fixed the problem for me.
> Here is the stack trace from traffic.out:
> NOTE: Traffic Server received Sig 11: Segmentation fault
> /home/y/bin/traffic_server - STACK TRACE:
> /lib64/libpthread.so.0(+0xf500)[0x2b1a4004b500]
> /usr/lib64/libtcl8.5.so(+0x8cd60)[0x2b1a3e7c1d60]
> /usr/lib64/libtcl8.5.so(Tcl_CreateHashEntry+0x59)[0x2b1a3e7c21e9]
> /home/y/lib64/libtsutil.so.3(ink_hash_table_lookup+0x19)[0x2b1a3e2c1539]
> /home/y/bin/traffic_server(_ZN15HttpBodyFactory13find_templateEPKcS1_PP11HttpBodySet+0x7c)[0x4ff70c]
> /home/y/bin/traffic_server(_ZN15HttpBodyFactory9fabricateEP7StrListS1_PKcPN12HttpTransact5StateEPlPS3_S8_S8_+0xc8)[0x500098]
> /home/y/bin/traffic_server(_ZN15HttpBodyFactory22fabricate_with_old_apiEPKcPN12HttpTransact5StateElPlPcmS6_mS1_P13__va_list_tag+0x527)[0x5013c7]
> /home/y/bin/traffic_server(_ZN12HttpTransact20build_error_responseEPNS_5StateE10HTTPStatusPKcS4_S4_z+0x328)[0x544838]
> /home/y/bin/traffic_server(_ZN12HttpTransact15EndRemapRequestEPNS_5StateE+0x445)[0x546c25]
> /home/y/bin/traffic_server(_ZN6HttpSM32call_transact_and_set_next_stateEPFvPN12HttpTransact5StateEE+0x66)[0x5114d6]
> /home/y/bin/traffic_server(_ZN6HttpSM14set_next_stateEv+0x1e2)[0x52a152]
> /home/y/bin/traffic_server(_ZN6HttpSM17handle_api_returnEv+0x3aa)[0x52b97a]
> /home/y/bin/traffic_server(_ZN6HttpSM17state_api_calloutEiPv+0x2a8)[0x522bb8]
> /home/y/bin/traffic_server(_ZN6HttpSM18state_api_callbackEiPv+0x8b)[0x528b2b]
> /home/y/bin/traffic_server(TSHttpTxnReenable+0x404)[0x4adea4]
> /home/y/libexec64/trafficserver/quick_filter.so(+0x1c3f)[0x2b1b03477c3f]
> /home/y/bin/traffic_server(_ZN6HttpSM17state_api_calloutEiPv+0x116)[0x522a26]
> /home/y/bin/traffic_server(_ZN6HttpSM14set_next_stateEv+0x1f2)[0x52a162]
> /home/y/bin/traffic_server(_ZN6HttpSM17handle_api_returnEv+0x3aa)[0x52b97a]
> /home/y/bin/traffic_server(_ZN6HttpSM17state_api_calloutEiPv+0x2a8)[0x522bb8]
> /home/y/bin/traffic_server(_ZN6HttpSM18state_api_callbackEiPv+0x8b)[0x528b2b]
> /home/y/bin/traffic_server(TSHttpTxnReenable+0x404)[0x4adea4]
> /home/y/libexec64/trafficserver/header_filter.so(+0x2d5d)[0x2b1a551c8d5d]
> /home/y/bin/traffic_server(_ZN6HttpSM17state_api_calloutEiPv+0x116)[0x522a26]
> /home/y/bin/traffic_server(_ZN6HttpSM14set_next_stateEv+0x1f2)[0x52a162]
> /home/y/bin/traffic_server(_ZN6HttpSM32state_read_client_request_headerEiPv+0x237)[0x51ee47]
> /home/y/bin/traffic_server(_ZN6HttpSM12main_handlerEiPv+0xd8)[0x528938]
> /home/y/bin/traffic_server[0x667fdb]
> /home/y/bin/traffic_server[0x66c2e4]
> /home/y/bin/traffic_server(_ZN10NetHandler12mainNetEventEiP5Event+0x1f2)[0x663662]
> /home/y/bin/traffic_server(_ZN7EThread13process_eventEP5Eventi+0x8f)[0x68bf8f]
> /home/y/bin/traffic_server(_ZN7EThread7executeEv+0x4a3)[0x68c973]
> /home/y/bin/traffic_server[0x68aeea]
> /lib64/libpthread.so.0(+0x7851)[0x2b1a40043851]
> /lib64/libc.so.6(clone+0x6d)[0x2b1a40ce690d]
> Backtrace:
> #0  0x00002b1a3e7c1d60 in ?? () from /usr/lib64/libtcl8.5.so
> #1  0x00002b1a3e7c21e9 in Tcl_CreateHashEntry () from /usr/lib64/libtcl8.5.so
> #2  0x00002b1a3e2c1539 in ink_hash_table_lookup (ht_ptr=0x17ee020,
>     key=<value optimized out>, value_ptr=0x2b1a49b14958)
>     at ink_hash_table.cc:189
> #3  0x00000000004ff70c in getValue (this=<value optimized out>,
>     set=0x6a6fb7 "default", type=0x0, body_set_return=0x2b1a49b149b8)
>     at ../../lib/ts/RawHashTable.h:118
> #4  HttpBodyFactory::find_template (this=<value optimized out>,
>     set=0x6a6fb7 "default", type=0x0, body_set_return=0x2b1a49b149b8)
>     at HttpBodyFactory.cc:491
> #5  0x0000000000500098 in HttpBodyFactory::fabricate (this=0x17f7500,
>     acpt_language_list=0x2b1a49b14fc0, acpt_charset_list=0x2b1a49b14e60,
>     type=0x0, context=0x2b1b0051b0c8, buffer_length_return=0x2b1b0051ba68,
>     content_language_return=0x2b1a49b15138,
>     content_charset_return=0x2b1a49b15130, set_return=0x2b1a49b15128)
>     at HttpBodyFactory.cc:443
> #6  0x00000000005013c7 in HttpBodyFactory::fabricate_with_old_api(const char *, HttpTransact::State *, int64_t, int64_t *, char *, size_t, char *, size_t, const char *, typedef __va_list_tag __va_list_tag *) (this=0x17f7500, type=0x0,
>     context=0x2b1b0051b0c8, max_buffer_length=8192,
>     resulting_buffer_length=0x2b1b0051ba68,
>     content_language_out_buf=0x2b1a49b152f0 "en",
>     content_language_buf_size=256,
>     content_type_out_buf=0x2b1a49b151f0 "text/html",
>     content_type_buf_size=256, format=0x0, ap=0x2b1a49b15420)
>     at HttpBodyFactory.cc:137
> #7  0x0000000000544838 in HttpTransact::build_error_response (
>     s=0x2b1b0051b0c8, status_code=HTTP_STATUS_FORBIDDEN,
>     reason_phrase_or_null=0x6b4d23 "Forbidden", error_body_type=0x0,
>     format=0x0) at HttpTransact.cc:8014
> #8  0x0000000000546c25 in HttpTransact::EndRemapRequest (s=0x2b1b0051b0c8)
>     at HttpTransact.cc:868
> #9  0x00000000005114d6 in HttpSM::call_transact_and_set_next_state (
>     this=0x2b1b0051b060, f=<value optimized out>) at HttpSM.cc:6685
> #10 0x000000000052a152 in HttpSM::set_next_state (this=0x2b1b0051b060)
>     at HttpSM.cc:7127
> #11 0x000000000052b97a in HttpSM::handle_api_return (this=0x2b1b0051b060)
>     at HttpSM.cc:1555
> #12 0x0000000000522bb8 in HttpSM::state_api_callout (this=0x2b1b0051b060,
>     event=60000, data=0x0) at HttpSM.cc:1487
> #13 0x0000000000528b2b in HttpSM::state_api_callback (this=0x2b1b0051b060,
>     event=60000, data=0x0) at HttpSM.cc:1306
> #14 0x00000000004adea4 in TSHttpTxnReenable (txnp=0x2b1b0051b060,
>     event=TS_EVENT_HTTP_CONTINUE) at InkAPI.cc:5580
> #15 0x00002b1b03477c3f in pre_remap_hook (contp=<value optimized out>,
>     event=<value optimized out>, edata=0x2b1b0051b060) at quick_filter.c:458
> #16 0x0000000000522a26 in HttpSM::state_api_callout (this=0x2b1b0051b060,
>     event=<value optimized out>, data=<value optimized out>) at HttpSM.cc:1413
> #17 0x000000000052a162 in HttpSM::set_next_state (this=0x2b1b0051b060)
>     at HttpSM.cc:6727
> #18 0x000000000052b97a in HttpSM::handle_api_return (this=0x2b1b0051b060)
>     at HttpSM.cc:1555
> #19 0x0000000000522bb8 in HttpSM::state_api_callout (this=0x2b1b0051b060,
>     event=60000, data=0x0) at HttpSM.cc:1487
> #20 0x0000000000528b2b in HttpSM::state_api_callback (this=0x2b1b0051b060,
>     event=60000, data=0x0) at HttpSM.cc:1306
> #21 0x00000000004adea4 in TSHttpTxnReenable (txnp=0x2b1b0051b060,
>     event=TS_EVENT_HTTP_CONTINUE) at InkAPI.cc:5580
> #22 0x00002b1a551c8d5d in cont_header_filter (event=<value optimized out>,
>     edata=0x2b1b0051b060) at header_filter.cc:90
> #23 0x0000000000522a26 in HttpSM::state_api_callout (this=0x2b1b0051b060,
>     event=<value optimized out>, data=<value optimized out>) at HttpSM.cc:1413
> #24 0x000000000052a162 in HttpSM::set_next_state (this=0x2b1b0051b060)
>     at HttpSM.cc:6727
> #25 0x000000000051ee47 in HttpSM::state_read_client_request_header (
>     this=0x2b1b0051b060, event=100, data=<value optimized out>)
>     at HttpSM.cc:817
> #26 0x0000000000528938 in HttpSM::main_handler (this=0x2b1b0051b060,
>     event=100, data=0x2b1a8c39a468) at HttpSM.cc:2504
> #27 0x0000000000667fdb in handleEvent (event=<value optimized out>,
>     vc=0x2b1a8c39a360) at ../../iocore/eventsystem/I_Continuation.h:146
> #28 read_signal_and_update (event=<value optimized out>, vc=0x2b1a8c39a360)
>     at UnixNetVConnection.cc:138
> #29 0x000000000066c2e4 in read_from_net (nh=0x2b1a436a7bc0, vc=0x2b1a8c39a360,
>     thread=<value optimized out>) at UnixNetVConnection.cc:320
> #30 0x0000000000663662 in NetHandler::mainNetEvent (this=0x2b1a436a7bc0,
>     event=<value optimized out>, e=<value optimized out>) at UnixNet.cc:379
> #31 0x000000000068bf8f in handleEvent (this=0x2b1a436a4010, e=0x1491c30,
>     calling_code=5) at I_Continuation.h:146
> #32 EThread::process_event (this=0x2b1a436a4010, e=0x1491c30, calling_code=5)
>     at UnixEThread.cc:141
> #33 0x000000000068c973 in EThread::execute (this=0x2b1a436a4010)
>     at UnixEThread.cc:265
> #34 0x000000000068aeea in spawn_thread_internal (a=0x1360dc0) at Thread.cc:88
> #35 0x00002b1a40043851 in start_thread () from /lib64/libpthread.so.0
> #36 0x00002b1a40ce690d in clone () from /lib64/libc.so.6

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