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

Segfault in ZeroMQ/2.1, session.cpp:152 #86

Closed
hintjens opened this issue Sep 20, 2010 · 1 comment
Closed

Segfault in ZeroMQ/2.1, session.cpp:152 #86

hintjens opened this issue Sep 20, 2010 · 1 comment

Comments

@hintjens
Copy link
Member

This program reproduces a segfault in 2.1: http://gist.github.com/588262

  1. Start in two windows
    myname d1 d2
    myname d2 d1
  2. Kill either instance
  3. Other instance crashes
    #0 0x04f6e824 in ?? ()
    Change zmq_term semantics #1 0x00152ac9 in zmq::session_t::activated (this=0x8054088, pipe_=0x8056598) at session.cpp:152
    IPv6 support #2 0x0014c98c in zmq::reader_t::process_activate_reader (this=0x8056598) at pipe.cpp:140
    Auto-reconnect for P2P sockets #3 0x0014ac70 in zmq::object_t::process_command (this=0x8056598, cmd_=...) at object.cpp:61
    P2P socket combined with zmq_bind drops messages #4 0x00147c2f in zmq::io_thread_t::in_event (this=0x804c8d0) at io_thread.cpp:82
    Memleak when TCP connect fails to resolve the address #5 0x00146479 in zmq::epoll_t::loop (this=0x804c8f8) at epoll.cpp:197
    Auto-reconnect for inproc transport #6 0x0014657d in zmq::epoll_t::worker_routine (arg_=0x804c8f8) at epoll.cpp:210
    zmq_poll doesn't return IN event occasionally #7 0x0015a557 in zmq::thread_t::thread_routine (arg_=0x804c918) at thread.cpp:79
    Build fails on Solaris 10 #8 0x001ad96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
    Allow TCP sockets to be half-open #9 0x002b4a4e in clone () from /lib/tls/i686/cmov/libc.so.6

Trigger of crash is ZMQ_IDENTITY on sub socket; without this the code runs without crashing.

@sustrik
Copy link
Member

sustrik commented Oct 13, 2010

Fixed in 9d96e00. Please, check whether it works as expected now.

bluca pushed a commit that referenced this issue Oct 31, 2023
Fixed typo in doc example
This issue was closed.
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