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
SystemError: excessive stack use when compiling a large function #94329
Comments
This is a bug. Thanks for the report. |
|
@markshannon This seems to have been back ported to all relevant versions in #94448, #94446 and #94421 I think it can be closed! |
|
I guess since this is immediately fixed on relevant branches and #94445 is the continuation issue to look for a better long term fix then this can be closed. |
Bug report
This comes from a recently discovered SymPy issue: sympy/sympy#23690
The following code fails in CPython 3.10 or newer for large N apparently due to the changes in #25403 (CC @markshannon):
In CPython 3.9 or older this can run fine albeit slow for large values of
N(I tested 100000).With CPython 3.10 or current main (3.11b3) this will fail with SystemError for any
Ngreater than 3000:I wasn't sure that this was a deliberate effect of the changes or if it should definitely be considered a bug but the comment added in #25403 indicates that it should be:
cpython/Python/compile.c
Lines 49 to 71 in c0453a4
Your environment
Tested on Ubuntu with a range of Python versions.
The text was updated successfully, but these errors were encountered: