You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 aftermalloc() 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 ....
The text was updated successfully, but these errors were encountered:
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()
andfree()
have been destroyed. Thus thecorrupted 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 ....The text was updated successfully, but these errors were encountered: