Skip to content

Conversation

charris
Copy link
Member

@charris charris commented May 6, 2025

Backport of #28898.

When running the scipy 1.15 test suite test
signal/tests/test_signaltools.py::test_lfilter_bad_object, with Python built in debug mode, we see the following error:

Fatal Python error: _Py_CheckSlotResult: Slot * of type float succeeded with an exception set

None ends up as the first argument to dot, and this triggers an error from PyFloat_Multiply. Once an error has occurred, we must avoid calling multiply again, since it asserts that PyErr_Occurred() is false if the output is a non-error, which will fail if an error was set at entry.

…umpy#28898)

When running the scipy 1.15 test suite test
signal/tests/test_signaltools.py::test_lfilter_bad_object, with Python
built in debug mode, we see the following error:

```
Fatal Python error: _Py_CheckSlotResult: Slot * of type float succeeded with an exception set
```

`None` ends up as the first argument to `dot`, and this triggers an
error from PyFloat_Multiply. Once an error has occurred, we must avoid
calling multiply again, since it asserts that PyErr_Occurred() is false
if the output is a non-error, which will fail if an error was set at
entry.
@charris charris added this to the 2.2.6 release milestone May 6, 2025
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels May 6, 2025
@charris charris merged commit 4277e7c into numpy:maintenance/2.2.x May 6, 2025
70 checks passed
@charris charris deleted the backport-28898 branch May 6, 2025 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
00 - Bug 08 - Backport Used to tag backport PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants