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

[Backport release-1.11] [c++] Pass in a shared_ptr<Context> to _create_dim_aux #2646

Merged
merged 1 commit into from
May 25, 2024

Conversation

github-actions[bot]
Copy link

Backport c0ee2df from #2645

* Derefencing and passing a `Context` object into `_create_dim_aux`
prematurely decrements a reference count to the `Context` which
then garbage collects the object. When we attempt to reference the
`shared_ptr<Context>` again, it is invalid and segfaults
* Fixes intermittent bug in Release mode that is consistently
reproducible in Debug mode
@johnkerl johnkerl merged commit a70d5d9 into release-1.11 May 25, 2024
@johnkerl johnkerl deleted the backport-2645-to-release-1.11 branch May 25, 2024 17:14
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