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
Interrupted system call in the csp_if_zmqhub interface #163
Comments
I think I've narrowed down the problem such that it's probably an issue with our code and not CSP / ZMQ. Still don't know the cause, though. |
Okay. Please report if/when we can close the issue. |
@johandc Update: this issue is not our code, the issue can be replicated with the example client/server code, and is due to some interrupt occuring during a system call made by ZMQ. It's likely that something in this code isn't quite thread-safe. If we could have a hand looking into this, it would be greatly appreciated! |
What platform are you running it on? |
We're using CSP compiled for unix - we've seen in on Arch and Ubuntu. We're making calls to CSP from a FreeRTOS simulated environment, which essentially wraps FreeRTOS to unix calls. |
It sounds like the issue may be in the FreeRTOS wrapper layer then. Because running CSP native compiled for POSIX, does not produce these debug messages |
Did you solve this? We use zmqhub extensively on our Linux devices. And have kept an eye on this and could not reproduce. Closing by timeout. Please reopen if still an issue. |
No, we never found the root cause of this - it must have been somewhere else in our overly-complex system (probably the FreeRTOS simulator). We ended up using the FIFO interface from the old version of CSP and gave up on this. Issue is okay to close. Thanks! |
You are welcome. Keep an eye out for awesome CSP 2.0 coming soon. |
Hello. I've got a runtime error in our libcsp project that uses the ZMQ interface.
While running
libcsp/build/zmqproxy
, it will randomly start barfing out this OS system call error every iteration:Sometimes it will do this immediately upon starting the program, other times it will start after a minute.
The error message is, of course, originating here: https://github.com/libcsp/libcsp/blob/master/src/interfaces/csp_if_zmqhub.c#L88
We think that the cause might be because the ZMQ interface code is not thread-safe. What do you think? Could this actually a problem with ZMQ and not the interface? Bearing in mind that we have libcsp built for POSIX.
Any insight you could provide would be valuable.
Thank you!
CSP version: latest master at the time of writing (8700695)
Our project:
The text was updated successfully, but these errors were encountered: