-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
BUG: segmentation fault with pd.NA and np.ndarray.__contains__ #31922
BUG: segmentation fault with pd.NA and np.ndarray.__contains__ #31922
Comments
cc @seberg |
Thanks, looks like a missing error check in
must test for |
Addes missing check for NULL return. resolves #15552 resolves pandas-dev/pandas#31922
I hope this is fixed in master now, the whole issue is a bit more complex, but I think it should be generally safe now. But we have more issues around casting and ufunc execution when such errors occur, I hope you just do not notice it in practice, because those would not be fixed easily. |
Thanks for the quick follow-up! |
Addes missing check for NULL return. resolves numpy#15552 resolves pandas-dev/pandas#31922
reopening, it appears that this should be skipped on older numpies. |
@ylin00 would you like to re-vise the PR to do this? |
hmm this looks ok now. closing as fixed in #36283 |
Testing for membership in an ndarray segfaults:
Now, this might be something that needs to be fixed in numpy, as for plain lists it "works":
but numpy might not expect an error instead of True/False.
The text was updated successfully, but these errors were encountered: