8000 BUG: fix refcounting for dtypemeta aliases by ngoldbaum · Pull Request #25329 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: fix refcounting for dtypemeta aliases #25329

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

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

ngoldbaum
Copy link
Member
@ngoldbaum ngoldbaum commented Dec 6, 2023

Fixes #25327.

I introduced NPY_DT_NewRef, which is basically the same as Py_NewRef. If we aren't supporting Python 3.9 I could just use Py_NewRef instead.

@ngoldbaum ngoldbaum requested a review from seberg December 6, 2023 16:41
@seberg
Copy link
Member
seberg commented Dec 6, 2023

NewRef is nice, maybe we should just put it into the npy3_compat as Npy_NewRef?

Copy link
Member
@seberg seberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks, please feel free to merge. I guess this version can be a static inline functions (want to avoid the need for casting here for sure).

@ngoldbaum ngoldbaum merged commit 6ef3089 into numpy:main Dec 6, 2023
@pllim
Copy link
Contributor
pllim commented Dec 6, 2023

Thanks for the quick fix! When should I expect a new nightly wheel with this patch?

@ngoldbaum
Copy link
Member Author

When this actions run finishes.

@pllim
Copy link
Contributor
pllim commented Dec 6, 2023

Looks like the build failed for pp39.

@ngoldbaum
Copy link
Member Author

It looks like that's due to #25149, i'll open another issue about it.

hawkinsp added a commit to hawkinsp/numpy that referenced this pull request Sep 30, 2024
We didn't take a reference to this type, so we shouldn't be freeing one.
This appears to have been missed by PR numpy#25329.
charris pushed a commit to charris/numpy that referenced this pull request Sep 30, 2024
We didn't take a reference to this type, so we shouldn't be freeing one.
This appears to have been missed by PR numpy#25329.
ArvidJB pushed a commit to ArvidJB/numpy that referenced this pull request Nov 1, 2024
We didn't take a reference to this type, so we shouldn't be freeing one.
This appears to have been missed by PR numpy#25329.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: segfault with np.isclose
3 participants
0