Description
traffic_server coredumped in handling request for cached object with do_global_select_alt() in global context.
1. Test setup:
a. ATS: 6.0.0
b. Guest OS: RHEL6.6 (2.6.32-504.23.4.el6.x86_64)
c. Configuration:
[root@mtanjv8cdnc70 lua]# cat ../plugin.config
tslua.so etc/trafficserver/lua/global.lua
[root@mtanjv8cdnc70 lua]# cat global.lua
function do_global_select_alt()
ts.debug('select_alt')
return 0
end
2. Steps to trigger traffic_server to core:
- issue a "curl" command to GET an already cached object
3. Stack trace of traffic_server in debug-build mode:
[root@mtanjv8cdnc70 cores]# gdb /opt/trafficserver/bin/traffic_server "core-mtanjv8cdnc70-[ET_NET 0]-6-24315-1452640509"
.
.
(gdb) bt
#0 0x00002b53c45f2625 in raise () from /lib64/libc.so.6
#1 0x00002b53c45f3d8d in abort () from /lib64/libc.so.6
#2 0x00002b53c2d1b97d in ink_die_die_die () at ink_error.cc:43
#3 0x00002b53c2d1ba34 in ink_fatal_va (fmt=0x2b53c2d2ca68 "%s:%d: failed assert `%s`", ap=0x7fff12eb86c0) at ink_error.cc:65
#4 0x00002b53c2d1baf9 in ink_fatal (message_format=0x2b53c2d2ca68 "%s:%d: failed assert `%s`") at ink_error.cc:73
#5 0x00002b53c2d1967a in _ink_assert (expression=0x7b33d8 "sdk_sanity_check_txn(txnp) == TS_SUCCESS", file=0x7b227d "InkAPI.cc", line=4525) at ink_assert.cc:37
#6 0x0000000000514a89 in _TSReleaseAssert (text=0x7b33d8 "sdk_sanity_check_txn(txnp) == TS_SUCCESS", file=0x7b227d "InkAPI.cc", line=4525) at InkAPI.cc:407
#7 0x000000000051efbc in TSHttpTxnClientReqGet (txnp=0x7fff12eb89c0, bufp=0x7fff12eb8870, obj=0x7fff12eb8868) at InkAPI.cc:4525
#8 0x00002b53ce02740f in globalHookHandler (contp=0x17249c0, event=TS_EVENT_HTTP_SELECT_ALT, edata=0x7fff12eb89c0) at ts_lua.c:225
#9 0x00000000005159a0 in INKContInternal::handle_event (this=0x17249c0, event=60010, edata=0x7fff12eb89c0) at InkAPI.cc:1005
#10 0x0000000000500bf6 in Continuation::handleEvent (this=0x17249c0, event=60010, data=0x7fff12eb89c0) at ../iocore/eventsystem/I_Continuation.h:146
#11 0x00000000005162ec in APIHook::invoke (this=0x1725a20, event=60010, edata=0x7fff12eb89c0) at InkAPI.cc:1223
#12 0x000000000063080c in HttpTransactCache::calculate_quality_of_match (http_config_param=0x2aaae00fa178, client_request=0x1a60fb8, obj_client_request=0x2aaadbf9d078,
obj_origin_server_response=0x2aaadbf9d0b8) at HttpTransactCache.cc:442
#13 0x000000000062fa13 in HttpTransactCache::SelectFromAlternates (cache_vector=0x1a60ff8, client_request=0x1a60fb8, http_config_params=0x2aaae00fa178) at HttpTransactCache.cc:213
#14 0x0000000000746d00 in CacheVC::openReadStartHead (this=0x1a60ef0, event=3900, e=0x0) at CacheRead.cc:1058
#15 0x0000000000500bf6 in Continuation::handleEvent (this=0x1a60ef0, event=3900, data=0x0) at ../iocore/eventsystem/I_Continuation.h:146
#16 0x0000000000722aac in CacheVC::handleReadDone (this=0x1a60ef0, event=3900, e=0x1a61078) at Cache.cc:2409
#17 0x0000000000500bf6 in Continuation::handleEvent (this=0x1a60ef0, event=3900, data=0x1a61078) at ../iocore/eventsystem/I_Continuation.h:146
#18 0x0000000000728189 in AIOCallbackInternal::io_complete (this=0x1a61078, event=1, data=0x2aaabc217e60) at ../../iocore/aio/P_AIO.h:117
#19 0x0000000000500bf6 in Continuation::handleEvent (this=0x1a61078, event=1, data=0x2aaabc217e60) at ../iocore/eventsystem/I_Continuation.h:146
#20 0x00000000007a8b46 in EThread::process_event (this=0x2b53c5e82010, e=0x2aaabc217e60, calling_code=1) at UnixEThread.cc:128
#21 0x00000000007a8da5 in EThread::execute (this=0x2b53c5e82010) at UnixEThread.cc:179
#22 0x0000000000532dda in main (argv=0x7fff12eba3a8) at Main.cc:1812
(gdb)
We have consulted with Kit regarding this issue and was advised to create this jira for him to resolve.
Attachments
Issue Links
- blocks
-
TS-5020 Move ts_lua out of experimental
- Open