Skip to content

crash due to corrupted ssl_hooks #6887

@sudheerv

Description

@sudheerv

Seeing crashes due to ssl_hooks corrupted. We don't use any plugins that set up ssl_hooks, but, the global variable somehow seems corrupted and crashes. Other globals also seem corrupted

(gdb) thr 58
[Switching to thread 58 (Thread 0x2ae322a05700 (LWP 21621))]
#0  0x00002ae3148177c4 in _dl_addr () from /lib64/libc.so.6
(gdb) bt
#0  0x00002ae3148177c4 in _dl_addr () from /lib64/libc.so.6
#1  0x00002ae3147ef585 in backtrace_symbols_fd () from /lib64/libc.so.6
#2  0x00002ae311dd9a59 in ink_stack_trace_dump () at ink_stack_trace.cc:65
#3  0x00002ae311dee8b3 in signal_crash_handler (signo=signo@entry=11) at signals.cc:180
#4  0x00000000004c434e in crash_logger_invoke (signo=11, info=0x2ae322a03ab0, ctx=0x2ae322a03980) at traffic_server/Crash.cc:173
#5  <signal handler called>
#6  head (this=0x58585858585858b0) at traffic_server/InkAPI.cc:1339
#7  init (id=TS_HTTP_SEND_RESPONSE_HDR_HOOK, feature_hooks=<optimized out>, this=0x2ae36b928578) at traffic_server/InkAPI.cc:1427
#8  HttpHookState::init (this=0x2ae36b928570, id=TS_HTTP_SEND_RESPONSE_HDR_HOOK, global=<optimized out>, ssn=0x2ae3244fe8d8, txn=0x2ae36b9285e0) at traffic_server/InkAPI.cc:1370
#9  0x000000000054e1dd in HttpSM::do_api_callout_internal (this=0x2ae36b9263b0) at HttpSM.cc:5331
#10 0x000000000055c855 in HttpSM::do_api_callout (this=this@entry=0x2ae36b9263b0) at HttpSM.cc:365
#11 0x00000000005505d2 in HttpSM::setup_error_transfer (this=0x2ae36b9263b0) at HttpSM.cc:6433
#12 0x000000000055742d in HttpSM::set_next_state (this=0x2ae36b9263b0) at HttpSM.cc:7697
#13 0x00000000005419b2 in HttpSM::call_transact_and_set_next_state (this=this@entry=0x2ae36b9263b0, f=<optimized out>) at HttpSM.cc:7373
#14 0x000000000054e84e in HttpSM::state_read_server_response_header (this=0x2ae36b9263b0, event=100, data=0x2ae35d4f9fe0) at HttpSM.cc:1962
#15 0x0000000000550d98 in HttpSM::main_handler (this=0x2ae36b9263b0, event=100, data=0x2ae35d4f9fe0) at HttpSM.cc:2710
#16 0x0000000000778215 in handleEvent (data=0x2ae35d4f9fe0, event=100, this=0x2ae36b9263b0) at /home/svinukon/Traffic/ATS/ats9/ats-core_trunk/ats9/src/iocore/eventsystem/I_Continuation.h:193
#17 read_signal_and_update (vc=0x2ae35d4f9e00, event=100) at UnixNetVConnection.cc:83
#18 UnixNetVConnection::readSignalAndUpdate (this=this@entry=0x2ae35d4f9e00, event=event@entry=100) at UnixNetVConnection.cc:1008
#19 0x000000000074127d in SSLNetVConnection::net_read_io (this=0x2ae35d4f9e00, nh=0x2ae319116d80, lthread=<optimized out>) at SSLNetVConnection.cc:674
#20 0x0000000000760658 in NetHandler::process_ready_list (this=this@entry=0x2ae319116d80) at UnixNet.cc:412
#21 0x000000000076094d in NetHandler::waitForActivity (this=0x2ae319116d80, timeout=<optimized out>) at UnixNet.cc:547
#22 0x00000000007c3eaa in EThread::execute_regular (this=this@entry=0x2ae319113000) at UnixEThread.cc:266
#23 0x00000000007c4112 in EThread::execute (this=0x2ae319113000) at UnixEThread.cc:327
#24 0x00000000007c2499 in spawn_thread_internal (a=0x2ae315d6b300) at Thread.cc:92
#25 0x00002ae313a27dd5 in start_thread () from /lib64/libpthread.so.0
#26 0x00002ae3147d8ead in clone () from /lib64/libc.so.6
(gdb) 
(gdb) f 8
#8  HttpHookState::init (this=0x2ae36b928570, id=TS_HTTP_SEND_RESPONSE_HDR_HOOK, global=<optimized out>, ssn=0x2ae3244fe8d8, txn=0x2ae36b9285e0) at traffic_server/InkAPI.cc:1370
1370	traffic_server/InkAPI.cc: No such file or directory.
(gdb) p ssl_hooks
$1 = (SslAPIHooks *) 0x5858585858585858

(gdb) p http_global_hooks
$2 = (HttpAPIHooks *) 0x5858585858585858

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions