zeromq4.2.3内存部分堆栈

  • 回调zmq_free_fn堆栈

#0  zmq_free_fn (data=0x1d64f610, hint=0x404538) at ×.cpp:742
#1  0x0000007f954a77f8 in zmq::msg_t::close (this=0x1d2372b0) at src/msg.cpp:237
#2  0x0000007f954d38e0 in zmq::encoder_base_t::encode (this=0x1d237810, data_=0x1d237310, size_=) at src/encoder.hpp:97
#3  0x0000007f954c5564 in zmq::stream_engine_t::out_event (this=0x1d237290) at src/stream_engine.cpp:381
#4  0x0000007f9549e704 in zmq::epoll_t::loop (this=0x1d223120) at src/epoll.cpp:184
#5  0x0000007f954ce858 in thread_routine (arg_=0x1d2231a0) at src/thread.cpp:109
#6  0x0000007f94a1afe8 in ?? () from /lib64/libpthread.so.0
#7  0x0000007febffea08 in ?? ()

 

  • 工作线程发送前初始化内存堆栈

#0  zmq::msg_t::init_external_storage (this=this@entry=0x1d231da0, content_=0x1d233df8, data_=data_@entry=0x1d231dfc, size_=size_@entry=58, ffn_=0x7f954d8748 , hint_=0x1d231df0) at src/msg.cpp:127
#1  0x0000007f954a716c in zmq::msg_t::init (this=this@entry=0x1d231da0, data_=data_@entry=0x1d231dfc, size_=size_@entry=58, ffn_=, hint=, content_=) at src/msg.cpp:73
#2  0x0000007f954d2c48 in zmq::v2_decoder_t::size_ready (this=0x1d231d30, msg_size=58, read_pos=0x1d231dfc ":") at src/v2_decoder.cpp:122
#3  0x0000007f954d2f48 in zmq::decoder_base_t::decode (this=0x1d231d30, data_=0x1d231dfa "", size_=60, bytes_used_=@0x7f93e448c8: 2) at src/decoder.hpp:147
#4  0x0000007f954c742c in zmq::stream_engine_t::in_event (this=0x1d227120) at src/stream_engine.cpp:340
#5  0x0000007f9549e72c in zmq::epoll_t::loop (this=0x1d223120) at src/epoll.cpp:188
#6  0x0000007f954ce858 in thread_routine (arg_=0x1d2231a0) at src/thread.cpp:109
#7  0x0000007f94a1afe8 in ?? () from /lib64/libpthread.so.0
#8  0x0000007febffea08 in ?? ()

  • 主线程接收数据内存堆栈

#0  zmq::msg_t::close (this=this@entry=0x7febfff0a8) at src/msg.cpp:224
#1  0x0000007f954a78ec in zmq::msg_t::move (this=this@entry=0x7febfff0a8, src_=...) at src/msg.cpp:281
#2  0x0000007f954b701c in zmq::router_t::xrecv (this=this@entry=0x1d223360, msg_=msg_@entry=0x7febfff0a8) at src/router.cpp:310
#3  0x0000007f954b6150 in zmq::rep_t::xrecv (this=0x1d223360, msg_=0x7febfff0a8) at src/rep.cpp:81
#4  0x0000007f954bda6c in zmq::socket_base_t::recv (this=0x1d223360, msg_=msg_@entry=0x7febfff0a8, flags_=) at src/socket_base.cpp:1254
#5  0x0000007f954d67f4 in s_recvmsg (s_=, msg_=0x7febfff0a8, flags_=) at src/zmq.cpp:475
#6  0x00000000004034d0 in main (argc=2, argv=0x7febfff398) at ×.cpp:785

  • 主线程发送数据内存堆栈

#0  zmq::msg_t::close (this=this@entry=0x7febffeb70) at src/msg.cpp:224
#1  0x0000007f954b80f8 in zmq::router_t::identify_peer (this=this@entry=0x1d223360, pipe_=pipe_@entry=0x1d5993b0) at src/router.cpp:503
#2  0x0000007f954b8328 in zmq::router_t::xread_activated (this=0x1d223360, pipe_=0x1d5993b0) at src/router.cpp:174
#3  0x0000007f954bcfe8 in zmq::socket_base_t::process_commands (this=this@entry=0x1d223360, timeout_=timeout_@entry=0, throttle_=throttle_@entry=true) at src/socket_base.cpp:1378
#4  0x0000007f954bd4c8 in zmq::socket_base_t::send (this=this@entry=0x1d223360, msg_=msg_@entry=0x7febfff0e8, flags_=flags_@entry=0) at src/socket_base.cpp:1121
#5  0x0000007f954d6eb4 in s_sendmsg (flags_=0, msg_=0x7febfff0e8, s_=0x1d223360) at src/zmq.cpp:359
#6  zmq_msg_send (msg_=0x7febfff0e8, s_=, flags_=0) at src/zmq.cpp:613
#7  0x0000000000403818 in main (argc=2, argv=0x7febfff398) at ×.cpp:872

 

你可能感兴趣的:(zeromq4.2.3内存部分堆栈)