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

fix crash on finalization for logical_type from get_value_type #135

Conversation

jraymakers
Copy link
Contributor

@jraymakers jraymakers commented Feb 1, 2025

Fix a crash caused by destroying the logical_type returned by get_value_type in the finalizer for the returned External. Apparently, unlike all other logical_types returned by the C API, this one must not be explicitly destroyed; it's tied to the lifetime of the value.

This was the cause of the frequent but inconsistent failures in the bindings tests for Windows. Probably it was only happening on Windows and not the other platforms due to timing differences. I re-enabled the Windows tests.

@jraymakers jraymakers merged commit 39ef74a into main Feb 1, 2025
5 checks passed
This was referenced Feb 1, 2025
@jraymakers jraymakers deleted the jray/fix-crash-on-finalization-for-logical-type-from-get-value-type branch February 1, 2025 19:12
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.

1 participant