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

BUG: Do not crash on recursive .dtype attribute lookup. #13982

Closed
wants to merge 1 commit into from

Conversation

charris
Copy link
Member

@charris charris commented Jul 14, 2019

Backport of #13003

The code path in scalarapi.c which checks dtype on one inheriting
from np.void is especially awkward and was completely untested
previously. So I am not sure we should even support it at all.

Closes gh-12982, gh-3614, and gh-12751

The code path in scalarapi.c which checks dtype on one inheriting
from np.void is especially awkward and was completely untested
previously. So I am not sure we should even support it at all.

Closes numpygh-12982, numpygh-3614, and numpygh-12751
@charris charris added this to the 1.16.5 release milestone Jul 14, 2019
PyErr_Clear();
return 0;
}
return 1;
Copy link
Member

Choose a reason for hiding this comment

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

Compilation is failing on Python2.7 since PyExc_RecursionError does not exist. Py_EnterRecursiveCall raises PyExc_RuntimeError instead

@mattip
Copy link
Member

mattip commented Jul 14, 2019

We need to choose between fixing the error and not backporting. I would vote for not backporting

@charris
Copy link
Member Author

charris commented Jul 14, 2019

We need to choose between fixing the error and not backporting.

Sounds good to me. It was an iffy backport candidate to start with.

@charris charris closed this Jul 14, 2019
@charris charris deleted the backport-13003 branch July 14, 2019 14:30
@charris charris removed this from the 1.16.5 release milestone Jul 14, 2019
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.

None yet

3 participants