Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upProblems: atexit called after zmq static object destruction causes crash, out of date with zproject #1876
Conversation
Solution: register zsys_shutdown with atexit after initialising the
libzmq context, so that the static objects that may be initialised
(eg: mutex for random init/deinit) will be de-initialised after
zsys_shutdown is called.
Fixes aborts at shutdown caused by invaling pthread_mutex:
at src/err.cpp:87
at src/mutex.hpp:103
at src/ctx.cpp:124
run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:83
init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdee8)
at ../csu/libc-start.c:325
Solution: regenerate
This was referenced Mar 7, 2018
|
Existing travis red marks confirmed to be non-issues (a known manual workaround, and a zmq2 test failing since day X). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
bluca commentedMar 7, 2018
Solutions: see commits
See: zeromq/libzmq#2971