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

Zombie Threads #31

Open
fabian-jung opened this issue Jan 26, 2017 · 0 comments
Open

Zombie Threads #31

fabian-jung opened this issue Jan 26, 2017 · 0 comments

Comments

@fabian-jung
Copy link
Contributor

If a cracen gets deleted, it tries to clean all of the allocated resources. However some threads are waiting on synchronus or asynchronus send or receive operations from graybat. Since there is no way to stop these threads either via graybat or via the std::thread interface, these may be stuck forever.

This should not be a problem, since the destructor is not called in continguous data processing (cracen instances are living over the whole programs lifespan) and even if some zombie threads are alive, they don't take much memory and nexto zero cpu time.

One problem might arise, if one zombie decides to wake up and acts on the released data. This would most likely lead to seg fault or undefined behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant