Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZMQ 4.0.4 crash #104

Closed
giskook opened this issue Jan 29, 2015 · 2 comments
Closed

ZMQ 4.0.4 crash #104

giskook opened this issue Jan 29, 2015 · 2 comments

Comments

@giskook
Copy link

giskook commented Jan 29, 2015

*** glibc detected *** /home/cetc/code/codeset/civilmanager_access/ca: double free or corruption (fasttop): 0x00007fffd400e7f0 ***
======= Backtrace: =========
/lib64/libc.so.6[0x38fb075e66]
/usr/local/lib/libzmq.so.4(+0x1d933)[0x7ffff7b98933]
/usr/local/lib/libzmq.so.4(+0x3dfc9)[0x7ffff7bb8fc9]
/usr/local/lib/libzmq.so.4(+0x324a3)[0x7ffff7bad4a3]
/usr/local/lib/libzmq.so.4(+0x29f88)[0x7ffff7ba4f88]
/usr/local/lib/libzmq.so.4(+0x19384)[0x7ffff7b94384]
/usr/local/lib/libzmq.so.4(+0x1848e)[0x7ffff7b9348e]
/usr/local/lib/libzmq.so.4(+0x37a46)[0x7ffff7bb2a46]
/lib64/libpthread.so.0[0x38fb4079d1]
/lib64/libc.so.6(clone+0x6d)[0x38fb0e89dd]
#0 0x00000038fb032625 in raise () from /lib64/libc.so.6
#1 0x00000038fb033e05 in abort () from /lib64/libc.so.6
#2 0x00000038fb070537 in libc_message () from /lib64/libc.so.6
#3 0x00000038fb075e66 in malloc_printerr () from /lib64/libc.so.6
#4 0x00007ffff7b98933 in zmq::msg_t::close (this=0x7fffdc0051d0) at msg.cpp:137
#5 0x00007ffff7bb8fc9 in zmq::encoder_base_tzmq::v2_encoder_t::encode (this=0x7fffdc000d60, data
=0x7fffeebfc078, size
=Unhandled dwarf expression opcode 0xf3

) at encoder.hpp:83
#6 0x00007ffff7bad4a3 in zmq::stream_engine_t::out_event (this=0x7fffdc0051b0) at stream_engine.cpp:284
#7 0x00007ffff7ba4f88 in zmq::session_base_t::read_activated (this=0x7fffdc005540, pipe_=0x7fffdc009900) at session_base.cpp:246
#8 0x00007ffff7b94384 in zmq::io_thread_t::in_event (this=0x7fffe8003170) at io_thread.cpp:73
#9 0x00007ffff7b9348e in zmq::epoll_t::loop (this=0x7fffe80033f0) at epoll.cpp:165
#10 0x00007ffff7bb2a46 in thread_routine (arg_=0x7fffe8003460) at thread.cpp:81
#11 0x00000038fb4079d1 in start_thread () from /lib64/libpthread.so.0
#12 0x00000038fb0e89dd in clone () from /lib64/libc.so.6

My server is using two sockets now. One is Push type. The other is Sub. when I do stress test I only use the Push socket.With increasing pressure zmq crash.I can not judge whether it is due to my own code. Any Idea?

@hintjens
Copy link
Member

Are you using the socket in more than one thread?

On Thu, Jan 29, 2015 at 3:41 AM, GisKook notifications@github.com wrote:

*** glibc detected *** /home/cetc/code/codeset/civilmanager_access/ca:
double free or corruption (fasttop): 0x00007fffd400e7f0 ***
======= Backtrace: =========
/lib64/libc.so.6[0x38fb075e66]
/usr/local/lib/libzmq.so.4(+0x1d933)[0x7ffff7b98933]
/usr/local/lib/libzmq.so.4(+0x3dfc9)[0x7ffff7bb8fc9]
/usr/local/lib/libzmq.so.4(+0x324a3)[0x7ffff7bad4a3]
/usr/local/lib/libzmq.so.4(+0x29f88)[0x7ffff7ba4f88]
/usr/local/lib/libzmq.so.4(+0x19384)[0x7ffff7b94384]
/usr/local/lib/libzmq.so.4(+0x1848e)[0x7ffff7b9348e]
/usr/local/lib/libzmq.so.4(+0x37a46)[0x7ffff7bb2a46]
/lib64/libpthread.so.0[0x38fb4079d1]
/lib64/libc.so.6(clone+0x6d)[0x38fb0e89dd]

#0 0x00000038fb032625 in raise () from /lib64/libc.so.6
#1 #1 0x00000038fb033e05 in
abort () from /lib64/libc.so.6
#2 #2 0x00000038fb070537 in
libc_message () from /lib64/libc.so.6
#3 #3 0x00000038fb075e66 in
malloc_printerr () from /lib64/libc.so.6
#4 #4 0x00007ffff7b98933 in
zmq::msg_t::close (this=0x7fffdc0051d0) at msg.cpp:137
#5 #5 0x00007ffff7bb8fc9 in
zmq::encoder_base_tzmq::v2_encoder_t::encode (this=0x7fffdc000d60,
data
=0x7fffeebfc078, size
=Unhandled dwarf expression opcode 0xf3
) at encoder.hpp:83
#6 #6 0x00007ffff7bad4a3 in
zmq::stream_engine_t::out_event (this=0x7fffdc0051b0) at
stream_engine.cpp:284
#7 #7 0x00007ffff7ba4f88 in
zmq::session_base_t::read_activated (this=0x7fffdc005540,
pipe_=0x7fffdc009900) at session_base.cpp:246
#8 #8 0x00007ffff7b94384 in
zmq::io_thread_t::in_event (this=0x7fffe8003170) at io_thread.cpp:73
#9 #9 0x00007ffff7b9348e in
zmq::epoll_t::loop (this=0x7fffe80033f0) at epoll.cpp:165
#10 #10 0x00007ffff7bb2a46 in
thread_routine (arg_=0x7fffe8003460) at thread.cpp:81
#11 #11 0x00000038fb4079d1 in
start_thread () from /lib64/libpthread.so.0
#12 #12 0x00000038fb0e89dd in
clone () from /lib64/libc.so.6

My server is using two sockets now. One is Push type. The other is Sub.
when I do stress test I only use the Push socket.With increasing pressure
zmq crash.I can not judge whether it is due to my own code. Any Idea?


Reply to this email directly or view it on GitHub
#104.

@giskook
Copy link
Author

giskook commented Jan 30, 2015

Sorry to bother you. I will adjust the logic of my own code.

@giskook giskook closed this as completed Feb 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants