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

libzmq not working inside a docker container #4045

Open
HarvaneetKaur opened this issue Sep 17, 2020 · 3 comments
Open

libzmq not working inside a docker container #4045

HarvaneetKaur opened this issue Sep 17, 2020 · 3 comments
Labels

Comments

@HarvaneetKaur
Copy link

Please use this template for reporting suspected bugs or requests for help.

Issue description

Not able to make zmq_connect call inside docker image

Environment

ubuntu

  • libzmq version (commit hash if unreleased):
  • OS:

Minimal test code / Steps to reproduce the issue

  1. Trying to make the connect call inside the docker using localhost at port:5555

What's the actual result? (include assertion message & call stack if applicable)

Segementation fault

Thread 1 "unit_tests" received signal SIGSEGV, Segmentation fault.
0x00007ff6a68cb8de in zmq::ypipe_t<zmq::command_t, 16>::write(zmq::command_t const&, bool) () from /root/source/build/dist/lib/libzmq.so.5
(gdb) bt
#0 0x00007ff6a68cb8de in zmq::ypipe_t<zmq::command_t, 16>::write(zmq::command_t const&, bool) () from /root/source/build/dist/lib/libzmq.so.5
#1 0x00007ff6a68cb30c in zmq::mailbox_t::send(zmq::command_t const&) () from /root/source/build/dist/lib/libzmq.so.5
#2 0x00007ff6a68d0f1f in zmq::object_t::send_plug(zmq::own_t*, bool) () from /root/source/build/dist/lib/libzmq.so.5
#3 0x00007ff6a68d3fef in zmq::own_t::launch_child(zmq::own_t*) () from /root/source/build/dist/lib/libzmq.so.5
#4 0x00007ff6a68e737f in zmq::socket_base_t::add_endpoint(zmq::endpoint_uri_pair_t const&, zmq::own_t*, zmq::pipe_t*) ()
from /root/source/build/dist/lib/libzmq.so.5
#5 0x00007ff6a68e7f28 in zmq::socket_base_t::connect_internal(char const*) () from /root/source/build/dist/lib/libzmq.so.5
#6 0x00007ff6a68e7232 in zmq::socket_base_t::connect(char const*) () from /root/source/build/dist/lib/libzmq.so.5
#7 0x00007ff6a6a951af in ZmqWrapper::ZmqWrapper(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) () from /root/source/build/lib/libflexframelib.so

What's the expected result?

Successfull connection

@bluca
Copy link
Member

bluca commented Sep 17, 2020

Is your wrapper referencing the socket from multiple threads?

@HarvaneetKaur
Copy link
Author

Is your wrapper referencing the socket from multiple threads?

No , Its just a single thread that I am using here .

@stale
Copy link

stale bot commented Apr 16, 2022

This issue has been automatically marked as stale because it has not had activity for 365 days. It will be closed if no further activity occurs within 56 days. Thank you for your contributions.

@stale stale bot added the stale label Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants