[jira] [Commented] (TS-3224) ts_lua plugin coredump occasionally

2014-12-06 Thread portl4t (JIRA)

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

portl4t commented on TS-3224:
-

I'm afraid that is the problem of memory limits.
Try to use Lua instead of LuaJIT

> ts_lua plugin coredump occasionally
> ---
>
> Key: TS-3224
> URL: https://issues.apache.org/jira/browse/TS-3224
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Lua, Plugins
>Reporter: Kit Chan
>Assignee: Kit Chan
> Fix For: 5.3.0
>
>
> Here is a sample stack trace
> Program terminated with signal 11, Segmentation fault.
> #0  lj_str_new (L=0x46d77d28, str=0x2aaab03fa980 "/not\303\255cias/", '\\' 
> ..., lenx=) at lj_str.c:107
> 107   lj_str.c: No such file or directory.
>   in lj_str.c
> Starting GDB Here
> =
> #0  lj_str_new (L=0x46d77d28, str=0x2aaab03fa980 "/not\303\255cias/", '\\' 
> ..., lenx=) at lj_str.c:107
> g = 0x42f173b8
> s = 
> o = 
> len = 
> a = 1953459759
> b = 
> h = 
> #1  0x00574e7b in lua_pushlstring (L=0x46d77d28, str= out>, len=) at lj_api.c:587
> s = 
> #2  0x2b39b76a97a4 in ts_lua_client_request_get_uri (L=0x46d77d28) at 
> trafficserver/plugins/experimental/ts_lua/ts_lua_client_request.c:476
> uri = "/not\303\255cias/", '\\' 
> path = 
> path_len = 24653
> uri_len = 
> http_ctx = 
> #3  0x005b54f8 in lj_BC_FUNCC ()
> g_rec_config_contents_ht = 0x21d2c30
> g_rec_config_fpath = 0x0
> g_rec_config_contents_llq = 0x21cde90
> g_rec_config_lock = {__data = {__lock = 0, __count = 0, __owner = 0, 
> __nusers = 0, __kind = 0, __spins = 0, __list = {__prev = 0x0, __next = 
> 0x0}}, __size = '\000' , __align = 0}
> #4  0x00574690 in lua_pcall (L=, nargs= optimized out>, nresults=, errfunc= out>) at lj_api.c:1052
> g = 0x42f173b8
> oldh = 0 '\000'
> ef = 
> status = 
> #5  0x2b39b76a8091 in globalHookHandler (contp=, 
> event=TS_EVENT_HTTP_PRE_REMAP, edata=0x2aab084bf650) at 
> trafficserver/plugins/experimental/ts_lua/ts_lua.c:298
> txnp = 0x2aab084bf650
> bufp = 0x2aab084bfd58
> hdr_loc = 0x2aaadc0ff098
> url_loc = 0x2aaadc0ff318
> ret = 
> req_id = 
> txn_contp = 0x19e3bf40
> l = 0x46d77d28
> main_ctx = 0x272afe0
> http_ctx = 0x2aac98b912b0
> conf = 
> __FUNCTION__ = "globalHookHandler"
> #6  0x005099a8 in INKContInternal::handle_event (this=0x26555b0, 
> event=60016, edata=0x2aab084bf650) at InkAPI.cc:999
> No locals.
> #7  0x004f4f18 in Continuation::handleEvent (this=0x26555b0, 
> event=60016, data=0x2aab084bf650) at 
> ../iocore/eventsystem/I_Continuation.h:146
> No locals.
> #8  0x0050a1ef in APIHook::invoke (this=0x2656a40, event=60016, 
> edata=0x2aab084bf650) at InkAPI.cc:1218
> No locals.
> #9  0x005cbe69 in HttpSM::state_api_callout (this=0x2aab084bf650, 
> event=6, data=0x0) at HttpSM.cc:1364
> plugin_lock = false
> plugin_mutex = {m_ptr = 0x0}
> hook = 0x2656a40
> api_next = HttpSM::API_RETURN_UNKNOWN
> __func__ = "state_api_callout"
> #10 0x005cb896 in HttpSM::state_api_callback (this=0x2aab084bf650, 
> event=6, data=0x0) at HttpSM.cc:1257
> __func__ = "state_api_callback"
> #11 0x005150d6 in TSHttpTxnReenable (txnp=0x2aab084bf650, 
> event=TS_EVENT_HTTP_CONTINUE) at InkAPI.cc:5543
> trylock = {m = {m_ptr = 0x2aabc020d470}, lock_acquired = true}
> sm = 0x2aab084bf650
> eth = 0x2dedb010
> #12 0x2b39b729af2a in plugin_handler (contp=0x26556d0, event= optimized out>, edata=0x2aab084bf650) at ssl_helper.cc:334
> txnp = 0x2aab084bf650
> #13 0x005099a8 in INKContInternal::handle_event (this=0x26556d0, 
> event=60016, edata=0x2aab084bf650) at InkAPI.cc:999
> No locals.
> #14 0x004f4f18 in Continuation::handleEvent (this=0x26556d0, 
> event=60016, data=0x2aab084bf650) at 
> ../iocore/eventsystem/I_Continuation.h:146
> No locals.
> #15 0x0050a1ef in APIHook::invoke (this=0x2656ac0, event=60016, 
> edata=0x2aab084bf650) at InkAPI.cc:1218
> No locals.
> #16 0x005cbe69 in HttpSM::state_api_callout (this=0x2aab084bf650, 
> event=6, data=0x0) at HttpSM.cc:1364
> plugin_lock = false
> plugin_mutex = {m_ptr = 0x0}
> hook = 0x2656ac0
> api_next = HttpSM::API_RETURN_UNKNOWN
> __func__ = "state_api_callout"
> #17 0x005cb896 in HttpSM::state_api_callback (this=0x2aab084bf650, 
> event=6, data=0x0) at HttpSM.cc:1257
> __func__ = "state_api_callback"
> #18 0x005150d6 in TSHttpTxnReenable (txnp=0x2

[jira] [Commented] (TS-3130) Core dump in Logging

2014-12-06 Thread ASF subversion and git services (JIRA)

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

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

Commit d6e800d165519b8fd4f1b55426dce642a1f8f52f in trafficserver's branch 
refs/heads/5.1.x from [~sudheerv]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=d6e800d ]

[TS-3130]: Delay setting buffer to NULL to prevent crash in logging


> Core dump in Logging
> 
>
> Key: TS-3130
> URL: https://issues.apache.org/jira/browse/TS-3130
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Logging
>Affects Versions: 5.0.1
>Reporter: Sudheer Vinukonda
>Assignee: Sudheer Vinukonda
> Fix For: 5.2.0
>
>
> Seeing a core dump in logging when the configured log buffer is not 
> sufficient to print a log.
> Here's the gdb back trace and some useful info:
> {code}
> (gdb) bt
> #0  0x00665fed in ink_atomic_increment (mem=0x68, count=-1) 
> at ../../lib/ts/ink_atomic.h:89
> #1  0x00662c8e in LogObject::_checkout_write (this=0x264b6f0, 
> write_offset=0x2ba25de4b508, bytes_needed=25376) at LogObject.cc:501
> #2  0x006632aa in LogObject::log (this=0x264b6f0, lad=0x2ba25de4b650, 
> text_entry=0x0) at LogObject.cc:618
> #3  0x006659f6 in LogObjectManager::log (this=0x263c0e8, 
> lad=0x2ba25de4b650) at LogObject.cc:1353
> #4  0x00641a74 in Log::access (lad=0x2ba25de4b650) at Log.cc:1096
> #5  0x005bab9b in HttpBodyTemplate::build_instantiated_buffer 
> (this=0x2a1ccc0, context=0x2ba4540c4a78, buflen_return=0x2ba25de4c1c8) at 
> HttpBodyFactory.cc:1011
> #6  0x005b92a0 in HttpBodyFactory::fabricate (this=0x29f8820, 
> acpt_language_list=0x2ba25de4bd60, acpt_charset_list=0x2ba25de4bc00, 
> type=0x78c323 "urlrouting#no_mapping", context=0x2ba4540c4a78, 
> buffer_length_return=0x2ba25de4c1c8, 
> content_language_return=0x2ba25de4bed8, 
> content_charset_return=0x2ba25de4bed0, set_return=0x2ba25de4bec8) at 
> HttpBodyFactory.cc:448
> #7  0x005b8422 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=0x29f8820, type=0x78c323 "urlrouting#no_mapping", 
> context=0x2ba4540c4a78, max_buffer_length=8192, 
> resulting_buffer_length=0x2ba25de4c1c8, 
> content_language_out_buf=0x2ba25de4c090 "en", 
> content_language_buf_size=256, content_type_out_buf=0x2ba25de4bf90 
> "text/html", content_type_buf_size=256, format=0x0, ap=0x2ba25de4c1d0) at 
> HttpBodyFactory.cc:138
> #8  0x006091fe in HttpTransact::build_error_response 
> (s=0x2ba4540c4a78, status_code=HTTP_STATUS_NOT_FOUND, 
> reason_phrase_or_null=0x78c339 "Not Found on Accelerator", 
> error_body_type=0x78c323 "urlrouting#no_mapping", format=0x0) at 
> HttpTransact.cc:8071
> #9  0x005eab76 in HttpTransact::EndRemapRequest (s=0x2ba4540c4a78) at 
> HttpTransact.cc:925
> #10 0x005ddbfd in HttpSM::call_transact_and_set_next_state 
> (this=0x2ba4540c4a10, f=0) at HttpSM.cc:6834
> #11 0x005ddee4 in HttpSM::set_next_state (this=0x2ba4540c4a10) at 
> HttpSM.cc:6892
> #12 0x005ddd3a in HttpSM::call_transact_and_set_next_state 
> (this=0x2ba4540c4a10, f=0) at HttpSM.cc:6842
> #13 0x005cc2b3 in HttpSM::handle_api_return (this=0x2ba4540c4a10) at 
> HttpSM.cc:1507
> #14 0x005cc110 in HttpSM::state_api_callout (this=0x2ba4540c4a10, 
> event=0, data=0x0) at HttpSM.cc:1439
> #15 0x005d7605 in HttpSM::do_api_callout_internal 
> (this=0x2ba4540c4a10) at HttpSM.cc:4800
> #16 0x005e4010 in HttpSM::do_api_callout (this=0x2ba4540c4a10) at 
> HttpSM.cc:445
> #17 0x005ddda0 in HttpSM::set_next_state (this=0x2ba4540c4a10) at 
> HttpSM.cc:6876
> #18 0x005ddd3a in HttpSM::call_transact_and_set_next_state 
> (this=0x2ba4540c4a10, f=0) at HttpSM.cc:6842
> #19 0x005cc2b3 in HttpSM::handle_api_return (this=0x2ba4540c4a10) at 
> HttpSM.cc:1507
> #20 0x005cc110 in HttpSM::state_api_callout (this=0x2ba4540c4a10, 
> event=0, data=0x0) at HttpSM.cc:1439
> #21 0x005d7605 in HttpSM::do_api_callout_internal 
> (this=0x2ba4540c4a10) at HttpSM.cc:4800
> #22 0x005e4010 in HttpSM::do_api_callout (this=0x2ba4540c4a10) at 
> HttpSM.cc:445
> #23 0x005ddda0 in HttpSM::set_next_state (this=0x2ba4540c4a10) at 
> HttpSM.cc:6876
> #24 0x005ddd3a in HttpSM::call_transact_and_set_next_state 
> (this=0x2ba4540c4a10, f=0x5ec2ce 
> ) at HttpSM.cc:6842
> #25 0x005ca241 in HttpSM::state_read_client_request_header 
> (this=0x2ba4540c4a10, event=100, data=0x2ba2e54a5e80) at HttpSM.cc:763
> #26 0x005cf652 in HttpSM::main_handler (this=0x2ba4540c4a10, 
> even