8000 BUG: Fix misplaced return by seberg · Pull Request #20980 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: Fix misplaced return #20980

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

Closed
wants to merge 1 commit into from
Closed

Conversation

seberg
Copy link
Member
@seberg seberg commented Feb 2, 2022

This lead to crashes when casting failed with an error already set.
Internally to NumPy, this is exceedingly rare (maybe impossible aside
from catastrophic failures, such as out-of-memory).


No test, because I am pretty sure the only way to hit this within NumPy proper is through impossible errors.

(On the other hand the Unit dtype runs into this very quickly.)

This lead to crashes when casting failed with an error already set.
Internally to NumPy, this is exceedingly rare (maybe impossible aside
from catastrophic failures, such as out-of-memory).
@seberg seberg added the 09 - Backport-Candidate PRs tagged should be backported label Feb 2, 2022
@seberg
Copy link
Member Author
seberg commented Feb 2, 2022

Could backport, although it should be impossible to trigger in practice...

@seberg
Copy link
Member Author
seberg commented Feb 2, 2022

Nevermind, merged as part of the other PR. This is backportable, though not high priority.

@seberg seberg closed this Feb 2, 2022
@charris charris added 09 - Backport-Candidate PRs tagged should be backported and removed 09 - Backport-Candidate PRs tagged should be backported labels Feb 2, 2022
charris added a commit to charris/numpy that referenced this pull request Feb 2, 2022
Backport of numpy#20980.

This lead to crashes when casting failed with an error already set.
Internally to NumPy, this is exceedingly rare (maybe impossible aside
from catastrophic failures, such as out-of-memory).
@charris
Copy link
Member
charris commented Feb 2, 2022

I went ahead and backported this.

@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Feb 2, 2022
@seberg seberg deleted the fix-cast-error-path branch February 2, 2022 23:53
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.

2 participants
0