Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BUG: fix segfault in object/longdouble operations #18691

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 2 commits into from
Mar 28, 2021

Conversation

aarchiba
Copy link
Contributor

@aarchiba aarchiba commented Mar 28, 2021

The operation None*np.longdouble(3) was causing infinite recursion as it
searched for the appropriate conversion method. This resolves that, both
for general operations and for remainders specifically (they fail in a
subtly different way).

Closes #18548

The operation None*np.longdouble(3) was causing infinite recursion as it
searched for the appropriate conversion method. This resolves that, both
for general operations and for remainders specifically (they fail in a
subtly different way).

Closes numpy#18548
@aarchiba
Copy link
Contributor Author

Based partly on @charris ' work: charris@bca952c

@charris charris merged commit c4af2dc into numpy:main Mar 28, 2021
@charris
Copy link
Member

charris commented Mar 28, 2021

Thanks Anne.

@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Mar 28, 2021
@charris charris added this to the 1.20.3 release milestone Mar 28, 2021
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Apr 13, 2021
@charris charris removed this from the 1.20.3 release milestone Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None + np.longdouble(0) produces RecursionError (segfaults on ipython)
2 participants