-
Notifications
You must be signed in to change notification settings - Fork 894
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
Double deletion at Aeron destructor #717
Comments
I think the change to closing all resources in onClose feeb7c1 caused this. And potentially other double frees when the state object map is free'd while in a position of not transferring ownership to the application via a call to find. As a work around, please ensure find is used until we can untangle |
@denizevrenci try the small change I added to onClose to see if the double free for this case goes away for you. There is more that needs to be done, but this might be better. |
Unfortunately, your fix has not solved the issue. The stack trace from Address Sanitizer this time is as follows:
By the way, I am using GCC 9 to compile the source. |
Was not hopeful. The way that closeAllResources handles things, it would go into releaseSubscription. But I've added a guard, temporarily. Until the logic can be reworked to be cleaner and ownership straightened out. |
I can confirm that your second commit fixes the double deletion. |
…o releaseSubscription. real-logic#717.
…o releaseSubscription. real-logic#717.
I am getting a double deletion error with the code below:
Address sanitizer output is as follows:
Other information:
The text was updated successfully, but these errors were encountered: