-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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. |
…94421) (cherry picked from commit b152bf4) Co-authored-by: Mark Shannon <[email protected]>
@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. |
``` $ git log --oneline 26db9f6 (HEAD -> tokenizer-overhaul-step2) `test_edge_subsets` passing 64dd2ff wip `test_edge_subsets` 973df5a Made method skeleton for `EdgeGrouping` and `AdjListTokenizer.to_tokens`. c4253ec `test_edge_subsets` passing 00bd0a7 `test_manhattan_distance` passing 9a52cc7 Updated poetry.lock f77f077 Bug in CPython raises exception when building `constants._VOCAB_BASE` since it's a large dataclass. python/cpython#94329. Raise Python version requirement to require a version with this bugfix. fa58ef5 Updated .gitignore for pyenv environment file ba6404a (origin/tokenizer-overhaul-step2) `AllLatticeEdges.get_edges` written, not tested ```
… since it's a large dataclass. python/cpython#94329. Raise Python version requirement to require a version with this bugfix.
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
N
greater 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: