Skip to content

BUG: report Python exception on malloc failures#19

Merged
ev-br merged 1 commit intoQuansight:masterfrom
ev-br:malloc_failures
Sep 26, 2025
Merged

BUG: report Python exception on malloc failures#19
ev-br merged 1 commit intoQuansight:masterfrom
ev-br:malloc_failures

Conversation

@ev-br
Copy link

@ev-br ev-br commented Sep 26, 2025

Make a matching fix for numpy/numpy#29811 :

If a malloc fails inside of a gufunc loop, set the Python error state. Otherwise the gufunc sliently returns garbage (an array or zeros or something).

The numpy PR has a way to trigger the problem, itself taken from https://github.com/Quansight/deshaw/issues/603

@ev-br ev-br merged commit 5119742 into Quansight:master Sep 26, 2025
8 checks passed
@ev-br ev-br added the bug Something isn't working label Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant