gdb /home/work/app/pegasus/tjwqtst-staging/replica/package/bin/replica_server /home/core/core.replica.asio.3.59078.1530200491
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/home/work/app/pegasus/tjwqtst-staging/replica/package/bin/pegasus_server confi'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007ffab56dd1d7 in raise () from /lib64/libc.so.6
(gdb)
(gdb) bt
#0 0x00007ffab56dd1d7 in raise () from /lib64/libc.so.6
#1 0x00007ffab56de8c8 in abort () from /lib64/libc.so.6
#2 0x00007ffab64af9f5 in tcmalloc::Log (mode=mode@entry=tcmalloc::kCrash, filename=filename@entry=0x7ffab64c5cee "src/tcmalloc.cc", line=line@entry=332, a=..., b=..., c=..., d=...)
at src/internal_logging.cc:118
#3 0x00007ffab64a4564 in (anonymous namespace)::InvalidFree (ptr=<optimized out>) at src/tcmalloc.cc:332
#4 0x00007ffab8c2497d in weak_release (this=0xffffffff) at /home/work/qinzuoyan/software/boost_1_58_0/output/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:160
#5 release (this=0xffffffff) at /home/work/qinzuoyan/software/boost_1_58_0/output/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:147
#6 ~shared_count (this=<synthetic pointer>, __in_chrg=<optimized out>) at /home/work/qinzuoyan/software/boost_1_58_0/output/include/boost/smart_ptr/detail/shared_count.hpp:443
#7 ~shared_ptr (this=<synthetic pointer>, __in_chrg=<optimized out>) at /home/work/qinzuoyan/software/boost_1_58_0/output/include/boost/smart_ptr/shared_ptr.hpp:323
#8 dsn::thrift_message_parser::parse_message (thrift_header=..., message_data=...) at /home/work/qinzuoyan/Pegasus/pegasus/rdsn/src/core/tools/common/thrift_message_parser.cpp:255
#9 0x00007ffab8c24cc7 in dsn::thrift_message_parser::get_message_on_receive (this=0x32b94d9a0, reader=0x10275da10, read_next=@0x7ffaa0dce0cc: 4096)
at /home/work/qinzuoyan/Pegasus/pegasus/rdsn/src/core/tools/common/thrift_message_parser.cpp:72
#10 0x00007ffab8c2eb47 in operator() (length=<optimized out>, __closure=0x7ffaa0dce110, ec=...) at /home/work/qinzuoyan/Pegasus/pegasus/rdsn/src/core/tools/common/asio_rpc_session.cpp:119
#11 operator() (this=0x7ffaa0dce110) at /home/work/qinzuoyan/software/boost_1_58_0/output/include/boost/asio/detail/bind_handler.hpp:127
#12 asio_handler_invoke<boost::asio::detail::binder2<dsn::tools::asio_rpc_session::do_read(int)::__lambda1, boost::system::error_code, long unsigned int> > (function=...)
at /home/work/qinzuoyan/software/boost_1_58_0/output/include/boost/asio/handler_invoke_hook.hpp:69
#13 invoke<boost::asio::detail::binder2<dsn::tools::asio_rpc_session::do_read(int)::__lambda1, boost::system::error_code, long unsigned int>, dsn::tools::asio_rpc_session::do_read(int)::__lambda1> (
context=..., function=...) at /home/work/qinzuoyan/software/boost_1_58_0/output/include/boost/asio/detail/handler_invoke_helpers.hpp:37
#14 boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffers_1, dsn::tools::asio_rpc_session::do_read(int)::__lambda1>::do_complete(boost::asio::detail::io_service_impl *, boost::asio::detail::operation *, const boost::system::error_code &, std::size_t) (owner=<optimized out>, base=<optimized out>)
at /home/work/qinzuoyan/software/boost_1_58_0/output/include/boost/asio/detail/reactive_socket_recv_op.hpp:110
#15 0x0000000000584540 in complete (bytes_transferred=<optimized out>, ec=..., owner=..., this=<optimized out>)
at /home/work/qinzuoyan/software/boost_1_58_0/output/include/boost/asio/detail/task_io_service_operation.hpp:38
#16 do_run_one (ec=..., this_thread=..., lock=..., this=0x2ccc7e0) at /home/work/qinzuoyan/software/boost_1_58_0/output/include/boost/asio/detail/impl/task_io_service.ipp:372
#17 boost::asio::detail::task_io_service::run (this=0x2ccc7e0, ec=...) at /home/work/qinzuoyan/software/boost_1_58_0/output/include/boost/asio/detail/impl/task_io_service.ipp:149
#18 0x00007ffab8c13bef in run (this=0x2c9f9c8) at /home/work/qinzuoyan/software/boost_1_58_0/output/include/boost/asio/impl/io_service.ipp:59
#19 operator() (__closure=<optimized out>) at /home/work/qinzuoyan/Pegasus/pegasus/rdsn/src/core/tools/common/asio_net_provider.cpp:69
#20 _M_invoke<> (this=<optimized out>) at /home/work/qinzuoyan/Pegasus/toolchain/output/include/c++/4.8.2/functional:1732
#21 operator() (this=<optimized out>) at /home/work/qinzuoyan/Pegasus/toolchain/output/include/c++/4.8.2/functional:1720
#22 std::thread::_Impl<std::_Bind_simple<dsn::tools::asio_network_provider::start(dsn::rpc_channel, int, bool, dsn::io_modifer&)::__lambda1()> >::_M_run(void) (this=<optimized out>)
at /home/work/qinzuoyan/Pegasus/toolchain/output/include/c++/4.8.2/thread:115
#23 0x00007ffab6035600 in std::(anonymous namespace)::execute_native_thread_routine (__p=<optimized out>)
at /home/qinzuoyan/git.xiaomi/pegasus/toolchain/objdir/../gcc-4.8.2/libstdc++-v3/src/c++11/thread.cc:84
#24 0x00007ffab6ca2dc5 in start_thread () from /lib64/libpthread.so.0
#25 0x00007ffab579f73d in clone () from /lib64/libc.so.6
(gdb)
(gdb) f 8
#8 dsn::thrift_message_parser::parse_message (thrift_header=..., message_data=...) at /home/work/qinzuoyan/Pegasus/pegasus/rdsn/src/core/tools/common/thrift_message_parser.cpp:255
255 /home/work/qinzuoyan/Pegasus/pegasus/rdsn/src/core/tools/common/thrift_message_parser.cpp: No such file or directory.
(gdb) p dsn_hdr
$1 = (dsn::message_header *) 0x73a23f844
(gdb) p *dsn_hdr
$2 = {hdr_type = 1413892180, hdr_version = 0, hdr_length = 192, hdr_crc32 = 0, body_length = 79, body_crc32 = 0, id = 26, trace_id = 0, rpc_name = "RPC_RRDB_RRDB_GET", '\000' <repeats 30 times>,
rpc_code = {local_code = 0, local_hash = 0}, gpid = {_value = {u = {app_id = 49, partition_index = 1}, value = 4294967345}}, context = {u = {is_request = 1, is_forwarded = 0, unused = 0,
serialize_format = 1, is_forward_supported = 0, parameter_type = 0, parameter = 0}, context = 65}, from_address = {static s_invalid_address = {
static s_invalid_address = <same as static member of an already seen type>, _addr = {v4 = {type = 0, padding = 0, port = 0, ip = 0}, uri = {type = 0, uri = 0}, group = {type = 0, group = 0},
value = 0}}, _addr = {v4 = {type = 0, padding = 0, port = 0, ip = 0}, uri = {type = 0, uri = 0}, group = {type = 0, group = 0}, value = 0}}, client = {timeout_ms = 0, thread_hash = 388032,
partition_hash = 0}, server = {error_name = '\000' <repeats 47 times>, error_code = {local_code = 0, local_hash = 0}}}
(gdb) f 6
#6 ~shared_count (this=<synthetic pointer>, __in_chrg=<optimized out>) at /home/work/qinzuoyan/software/boost_1_58_0/output/include/boost/smart_ptr/detail/shared_count.hpp:443
443 /home/work/qinzuoyan/software/boost_1_58_0/output/include/boost/smart_ptr/detail/shared_count.hpp: No such file or directory.
(gdb) p this
$3 = (boost::detail::shared_count * const) <synthetic pointer>
(gdb) p *this
$4 = {pi_ = 0xffffffff}
(gdb) f 7
#7 ~shared_ptr (this=<synthetic pointer>, __in_chrg=<optimized out>) at /home/work/qinzuoyan/software/boost_1_58_0/output/include/boost/smart_ptr/shared_ptr.hpp:323
323 /home/work/qinzuoyan/software/boost_1_58_0/output/include/boost/smart_ptr/shared_ptr.hpp: No such file or directory.
(gdb) p this
$5 = (boost::shared_ptr<dsn::binary_reader_transport> * const) <synthetic pointer>
(gdb) p *this
$6 = {px = <optimized out>, pn = {pi_ = 0xffffffff}}
(gdb) p stream
$8 = {<dsn::binary_reader> = {_vptr.binary_reader = 0x9014d0 <vtable for dsn::rpc_read_stream+16>, _blob = {_holder = {<std::__shared_ptr<char, (__gnu_cxx::_Lock_policy)2>> = {
_M_ptr = 0x6e1402000 "THFT", _M_refcount = {_M_pi = 0x18c4eafc0}}, <No data fields>}, _buffer = 0x6e1402000 "THFT", _data = 0x6e1402d16 "\200\001", _length = 79}, _size = 79,
_ptr = 0x6e1402d33 "\f", _remaining_size = 50}, _msg = 0x73a23f780}
(gdb) p stream._msg
$9 = (dsn_message_t) 0x73a23f780
(gdb) p ('dsn::message_ex'*)stream._msg
$10 = (dsn::message_ex *) 0x73a23f780
(gdb) p *('dsn::message_ex'*)stream._msg
$11 = {<dsn::ref_counter> = {_vptr.ref_counter = 0x7ffab8f165b0 <vtable for dsn::message_ex+16>, _magic = 3735928559, _counter = {<std::__atomic_base<long>> = {
_M_i = 0}, <No data fields>}}, <dsn::extensible_object<dsn::message_ex, 4>> = {<dsn::extensible> = {_ptr = 0x73a23f7a8, _count = 4}, static INVALID_SLOT = <optimized out>,
static INVALID_VALUE = <optimized out>, _extensions = {0, 0, 0, 0}, static s_extensionDeletors = {0x0, 0x0, 0x0, 0x0}, static s_nextExtensionIndex = {<std::__atomic_base<unsigned int>> = {
_M_i = 1}, <No data fields>}}, <dsn::callocator_object<dsn::tls_trans_malloc, dsn::tls_trans_free>> = {<No data fields>}, header = 0x73a23f844,
buffers = {<std::_Vector_base<dsn::blob, std::allocator<dsn::blob> >> = {_M_impl = {<std::allocator<dsn::blob>> = {<__gnu_cxx::new_allocator<dsn::blob>> = {<No data fields>}, <No data fields>},
_M_start = 0x1b073f540, _M_finish = 0x1b073f590, _M_end_of_storage = 0x1b073f590}}, <No data fields>}, io_session = {_obj = 0x0}, to_address = {static s_invalid_address = {
static s_invalid_address = <same as static member of an already seen type>, _addr = {v4 = {type = 0, padding = 0, port = 0, ip = 0}, uri = {type = 0, uri = 0}, group = {type = 0, group = 0},
value = 0}}, _addr = {v4 = {type = 0, padding = 0, port = 0, ip = 0}, uri = {type = 0, uri = 0}, group = {type = 0, group = 0}, value = 0}}, server_address = {static s_invalid_address = {
static s_invalid_address = <same as static member of an already seen type>, _addr = {v4 = {type = 0, padding = 0, port = 0, ip = 0}, uri = {type = 0, uri = 0}, group = {type = 0, group = 0},
value = 0}}, _addr = {v4 = {type = 0, padding = 0, port = 0, ip = 0}, uri = {type = 0, uri = 0}, group = {type = 0, group = 0}, value = 0}}, local_rpc_code = {_internal_code = 0}, hdr_format = {
_internal_code = 0}, send_retry_count = 0, dl = {_next = 0x73a23f810, _prev = 0x73a23f810}, static _id = {<std::__atomic_base<unsigned long>> = {_M_i = 63889502}, <No data fields>}, _rw_index = 1,
_rw_offset = 0, _rw_committed = false, _is_read = true, static s_local_hash = 0}
(gdb) p *(('dsn::message_ex'*)stream._msg).header
$12 = {hdr_type = 1413892180, hdr_version = 0, hdr_length = 192, hdr_crc32 = 0, body_length = 79, body_crc32 = 0, id = 26, trace_id = 0, rpc_name = "RPC_RRDB_RRDB_GET", '\000' <repeats 30 times>,
rpc_code = {local_code = 0, local_hash = 0}, gpid = {_value = {u = {app_id = 49, partition_index = 1}, value = 4294967345}}, context = {u = {is_request = 1, is_forwarded = 0, unused = 0,
serialize_format = 1, is_forward_supported = 0, parameter_type = 0, parameter = 0}, context = 65}, from_address = {static s_invalid_address = {
static s_invalid_address = <same as static member of an already seen type>, _addr = {v4 = {type = 0, padding = 0, port = 0, ip = 0}, uri = {type = 0, uri = 0}, group = {type = 0, group = 0},
value = 0}}, _addr = {v4 = {type = 0, padding = 0, port = 0, ip = 0}, uri = {type = 0, uri = 0}, group = {type = 0, group = 0}, value = 0}}, client = {timeout_ms = 0, thread_hash = 388032,
partition_hash = 0}, server = {error_name = '\000' <repeats 47 times>, error_code = {local_code = 0, local_hash = 0}}}
(gdb)