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

unit tests pass but have unclean cogserver shutdown. #2

Open
linas opened this issue Sep 1, 2020 · 0 comments
Open

unit tests pass but have unclean cogserver shutdown. #2

linas opened this issue Sep 1, 2020 · 0 comments

Comments

@linas
Copy link
Member

linas commented Sep 1, 2020

Really annoying pseudo-problem: unit tests, after passing, sometimes fault during cog-server shutdown, typically with the error message corrupted size vs. prev_size but sometimes others.

The root cause of this is that different shared-lib dtors are racing with each other; one of them is the dtor for the cogutils logger. If it waits too long, it ends up trying to free memory after malloc() and free() have been destroyed. Thus the corrupted size error.

This is super-annoying. I spent a day trying to find a solution for this but could not. Placing sleeps in various places did not work. The bug is not really here, its in the cog-utils Logger but it manifests here and a few other places, sometimes. I don't know what to do ....

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