You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/06/26 23:57:20 UTC

[jira] [Commented] (TS-1978) Segfault when trying to set an error from (remap) plugin

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

ASF subversion and git services commented on TS-1978:
-----------------------------------------------------

Commit e3b45c7d4c0a2c664cf9fe63ea688ddab6ab006a in branch refs/heads/master from [~zwoop]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=e3b45c7 ]

TS-1978 Segfault when trying to set an error from (remap) plugin. This
also fixes a bug where the "default" template was not loaded upon startup.

                
> Segfault when trying to set an error from (remap) plugin
> --------------------------------------------------------
>
>                 Key: TS-1978
>                 URL: https://issues.apache.org/jira/browse/TS-1978
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP
>            Reporter: Leif Hedstrom
>             Fix For: 3.3.5
>
>
> The problem is that with the changes in 962d864851332858a202f8c14a9ec671ec4e9a6c to make the body factory always used, remap plugins now try to generate error pages without a factory template specified.
> {code}
> #0  HashStringKey (tablePtr=0x130ff70, keyPtr=0x0) at /usr/src/debug/tcl8.5.13/generic/tclHash.c:931
> #1  0x00000035b20839dc in CreateHashEntry (tablePtr=0x130ff70, key=0x0, newPtr=0x0) at /usr/src/debug/tcl8.5.13/generic/tclHash.c:303
> #2  0x00007ffff7dd448b in ink_hash_table_lookup_entry (ht_ptr=0x130ff70, key=0x0) at ../../../../lib/ts/ink_hash_table.cc:246
> #3  0x00007ffff7dd43c3 in ink_hash_table_lookup (ht_ptr=0x130ff70, key=0x0, value_ptr=0x7ffff60c8680) at ../../../../lib/ts/ink_hash_table.cc:189
> #4  0x0000000000551131 in RawHashTable::getValue (this=0x130ff50, key=0x0, value_ptr=0x7ffff60c8680) at ../../../../lib/ts/RawHashTable.h:118
> #5  0x000000000054f6e3 in HttpBodyFactory::find_template (this=0x130ec40, set=0x6ff925 "default", type=0x0, body_set_return=0x7ffff60c86f0) at ../../../../proxy/http/HttpBodyFactory.cc:491
> #6  0x000000000054f4d9 in HttpBodyFactory::fabricate (this=0x130ec40, acpt_language_list=0x7ffff60c8770, acpt_charset_list=0x7ffff60c88d0, type=0x0, context=0x7fffe6e47aa0, buffer_length_return=0x7fffe6e48440, content_language_return=0x7ffff60c8e48, content_charset_return=0x7ffff60c8e40, set_return=0x7ffff60c8e38) at ../../../../proxy/http/HttpBodyFactory.cc:443
> #7  0x000000000054e6a3 in HttpBodyFactory::fabricate_with_old_api (this=0x130ec40, type=0x0, context=0x7fffe6e47aa0, max_buffer_length=8192, resulting_buffer_length=0x7fffe6e48440, content_language_out_buf=0x7ffff60c8f30 "en", content_language_buf_size=256, content_type_out_buf=0x7ffff60c9030 "text/html", content_type_buf_size=256, format=0x0, ap=0x7ffff60c9138) at ../../../../proxy/http/HttpBodyFactory.cc:137
> #8  0x00000000005a4c44 in HttpTransact::build_error_response (s=0x7fffe6e47aa0, status_code=HTTP_STATUS_FORBIDDEN, reason_phrase_or_null=0x0, error_body_type=0x0, format=0x0) at ../../../../proxy/http/HttpTransact.cc:8014
> #9  0x0000000000586a21 in HttpTransact::EndRemapRequest (s=0x7fffe6e47aa0) at ../../../../proxy/http/HttpTransact.cc:868
> #10 0x0000000000578a91 in HttpSM::call_transact_and_set_next_state (this=0x7fffe6e47a30, f=0x0) at ../../../../proxy/http/HttpSM.cc:6747
> #11 0x0000000000578d86 in HttpSM::set_next_state (this=0x7fffe6e47a30) at ../../../../proxy/http/HttpSM.cc:6805
> #12 0x0000000000578bda in HttpSM::call_transact_and_set_next_state (this=0x7fffe6e47a30, f=0x0) at ../../../../proxy/http/HttpSM.cc:6755
> #13 0x000000000056617e in HttpSM::handle_api_return (this=0x7fffe6e47a30) at ../../../../proxy/http/HttpSM.cc:1556
> #14 0x000000000057e893 in HttpSM::do_api_callout (this=0x7fffe6e47a30) at ../../../../proxy/http/HttpSM.cc:506
> #15 0x0000000000578c40 in HttpSM::set_next_state (this=0x7fffe6e47a30) at ../../../../proxy/http/HttpSM.cc:6789
> #16 0x0000000000578bda in HttpSM::call_transact_and_set_next_state (this=0x7fffe6e47a30, f=0x0) at ../../../../proxy/http/HttpSM.cc:6755
> #17 0x000000000056617e in HttpSM::handle_api_return (this=0x7fffe6e47a30) at ../../../../proxy/http/HttpSM.cc:1556
> #18 0x000000000057e893 in HttpSM::do_api_callout (this=0x7fffe6e47a30) at ../../../../proxy/http/HttpSM.cc:506
> #19 0x0000000000578c40 in HttpSM::set_next_state (this=0x7fffe6e47a30) at ../../../../proxy/http/HttpSM.cc:6789
> #20 0x0000000000578bda in HttpSM::call_transact_and_set_next_state (this=0x7fffe6e47a30, f=0x587302 <HttpTransact::ModifyRequest(HttpTransact::State*)>) at ../../../../proxy/http/HttpSM.cc:6755
> #21 0x0000000000563c56 in HttpSM::state_read_client_request_header (this=0x7fffe6e47a30, event=100, data=0x7fffdc016710) at ../../../../proxy/http/HttpSM.cc:818
> #22 0x0000000000569647 in HttpSM::main_handler (this=0x7fffe6e47a30, event=100, data=0x7fffdc016710) at ../../../../proxy/http/HttpSM.cc:2502
> #23 0x00000000004e3792 in Continuation::handleEvent (this=0x7fffe6e47a30, event=100, data=0x7fffdc016710) at ../../../iocore/eventsystem/I_Continuation.h:146
> #24 0x00000000006bc38e in read_signal_and_update (event=100, vc=0x7fffdc016600) at ../../../../iocore/net/UnixNetVConnection.cc:138
> #25 0x00000000006bccf3 in read_from_net (nh=0x7ffff65d7bf0, vc=0x7fffdc016600, thread=0x7ffff65d4010) at ../../../../iocore/net/UnixNetVConnection.cc:320
> #26 0x00000000006bea7b in UnixNetVConnection::net_read_io (this=0x7fffdc016600, nh=0x7ffff65d7bf0, lthread=0x7ffff65d4010) at ../../../../iocore/net/UnixNetVConnection.cc:818
> #27 0x00000000006b91b5 in NetHandler::mainNetEvent (this=0x7ffff65d7bf0, event=5, e=0x10ada60) at ../../../../iocore/net/UnixNet.cc:379
> #28 0x00000000004e3792 in Continuation::handleEvent (this=0x7ffff65d7bf0, event=5, data=0x10ada60) at ../../../iocore/eventsystem/I_Continuation.h:146
> #29 0x00000000006ddb79 in EThread::process_event (this=0x7ffff65d4010, e=0x10ada60, calling_code=5) at ../../../../iocore/eventsystem/UnixEThread.cc:141
> #30 0x00000000006de15f in EThread::execute (this=0x7ffff65d4010) at ../../../../iocore/eventsystem/UnixEThread.cc:265
> #31 0x00000000006dcd22 in spawn_thread_internal (a=0x10633c0) at ../../../../iocore/eventsystem/Thread.cc:88
> #32 0x00000035ab007d15 in start_thread (arg=0x7ffff60ce700) at pthread_create.c:308
> #33 0x00000035aa4f248d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114
> {code}

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