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

[rd-cpp] Fixed issues with access to released bounded call results #464

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

mirasrael
Copy link
Collaborator

A callback may return bindable result, but reference to that object wasn't preserved by Rd endpoint and so any sub-sequent call on result caused invalid memory access because bindable object was freed unless there another reference explicitly saved somewhere.

For now I fixed it by preserving task result during call lifetime (it is now same as endpoint lifetime, but should be fixed with #460).

…h bounded instances destroyed because there are no references.
@mirasrael mirasrael merged commit 90fd295 into master Jan 10, 2024
10 checks passed
@mirasrael mirasrael deleted the ab-fix-task-lifetime branch January 10, 2024 07:16
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

Successfully merging this pull request may close these issues.

2 participants