-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Crash when using zpoller_wait #2044
Comments
Can you include a code that reproduce?
|
Thanks for your reply, the code is as following: |
Which libzmq version are you using? |
Ok.Here is the crash report |
And zmq version is 4.1.4 ,czmq version is 3.0.2. we make the files libczmq.a and libzmq.a out of source code by ourselves. |
According to the crash report the exception is in zsock_send, it seems you have error with the picture or array. Can you include the send code? |
Thanks again.Here is the send code。
receive messages:
|
It seems that something wrong happens when zpoller_wait is accepting the quit message. |
which one is the deal_sock_unlock method? |
if (whichOne == m_sock_pull_lock) { |
This is still unclean for me. In the stacktrace deal_sock_unlock is calling zsock_send, but in your example the deal_sock_unlock is only calling zsock_recv. I think something is missing from your example. I suspect it has nothing to do with poller and wrong picture to zsock_send, it will be great if you can attach the full code of deal_sock_unlock, as I don't think poller has nothing to do with it. |
Sorry for the trouble, there's something wrong with my multi-thread code while using zmq .Thanks a lot again. |
Closing since it was a problem in the application |
Hi,I have defined m_poller using zpoller_new with many arguments and then this m_poller is used in zpoller_wait with setting timeout -1, it will crash if two sockets are receiving messages. I'm not sure of the reason. Look forward to your help.
The text was updated successfully, but these errors were encountered: