-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
curses.napms()
aborts with a SystemError
#126313
Comments
Ah I can see what happened. The macro returns 0 so that it can be used as a substitute for NULL in most of the functions it's being used but if (!_PyCursesStatefulCheckFunction(module,
curses_initscr_called,
"initscr")) {
return -1;
} I think it should suffice. I won't make a PR on Saturday (UTC+2) but probably on Sunday. |
curses.napms(37)
aborts with a SystemError
curses.napms()
aborts with a SystemError
Fixed by change 19d9358. |
The fix was not backported yet. |
Update: No need for a 3.12 backport because the implementation returns a |
I merged the 3.13 backport. |
Crash report
What happened?
The abort happens on normal and no-gil debug builds, release builds also hit the
SystemError
.Error is:
Found using fusil by @vstinner.
CPython versions tested on:
3.13, 3.14, CPython main branch
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
Python 3.14.0a1+ experimental free-threading build (heads/main:d467d9246c, Nov 1 2024, 09:05:56) [GCC 11.4.0]
Linked PRs
curse.napms
due to incorrect error handling #126351The text was updated successfully, but these errors were encountered: