-
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
[Help] Process aborted going infinite loop at src/fq.cpp:40 #2881
Comments
Are you using a socket from multiple threads? That includes creating/closing/modifying options |
No. We have only one thread which is using ZMQ socket. Other threads in the process won't use ZeroMQs at all. |
That core dump doesn't make much sense either - are you sure it's valid/not corrupted? |
It's not corrupted. I too don't have a clue how that app got crashed. :( |
According to that backtrace, it's doing an infinite recursion when instantiating a fq object: https://github.com/zeromq/libzmq/blob/v4.2.1/src/fq.cpp#L40 As you can see from the code, that just doesn't make any sense. Can you share the code that causes it? |
Hi Bluca, Sorry, above core dump seems to be corrupted. Here are debug prints from the latest core dump. I hope this will be useful. I am not much into CPP. So I am unable to debug it furter. And I couldn't back trace which part of my code caused the crash.
|
Are you sure you are on v4.2.1? Because that line doesn't make much sense in that version, but it does in the latest master or v4.2.3: https://github.com/zeromq/libzmq/blob/master/src/udp_engine.cpp#L285 So the UDP send system call is failing - in gdb, check what errno says:
|
I am sure it is 4.2.1.
And,
|
Hi Bluca, I would like to upgrade the library to 4.2.3. But I see the latest release is not updated at http://zeromq.org/intro:get-the-software |
Thanks, I had forgot to update that page - note that it's just a link, you can always get the latest tarballs from https://github.com/zeromq/libzmq/releases for the gdb, try to just print errno |
Thanks for the link. I've upgraded version to 4.2.3 (downloaded from github v4.2.3 tag). We are unable to reproduce the crash now. Seems like it is working fine. I'll be testing this for some time. |
Ok, I'll close for now then - feel free to reopen if you reproduce again. |
Hi,
And root cause for crash is |
Right, then it's another instance of #2862 so no need to reopen, please add the backtrace and workaround there |
Done. |
Process aborted, crashed and core dump created
Environment
My app was running continuously for 3 days. There is a script running in the background to restart the app if it crashes for some reason. In the last few days, I observed app was crashed three times.
When I debug the core dump with gdb, it pointed to following prints:
Any useful information I am missing here? Or Would anybody tell me how to avaoid this crash?
The text was updated successfully, but these errors were encountered: