-
-
Notifications
You must be signed in to change notification settings - Fork 32k
itertools segmentation fault #116980
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
Comments
I reproduced online with the customized 3rd party ATO build, but as I expected, this code runs fine for me on Windows with 3.13.0a5 installed from python.org or with a local build of main. Did you see this behavior with any current official build? If not, this seems likely specific to ATO and whatever sandboxing code it added. You can report on ATO's github. |
@terryjreedy Not with an official build (I don't have a device for that), but I did reproduce it here in a GitHub codespace with |
GitHub codespace outputs: First code:
Second code:
|
I'm able to repro it on WSL+Ubuntu:
Seems like a gc issue with interpreter level state? I did not look deep into it as I thought @rhettinger would realize what happened much faster. However, if no one is interested, I'll try to investigate. |
There's a similar issue related to However, cannot reproduce this on current main ( |
@gaogaotiantian, can you reproduce from builds off of the current Note: there has been no 3.12 nor 3.13 release after those fixes were merged. |
@erlend-aasland you are right. My |
Great, thanks for verifying, @gaogaotiantian! Closing as already-fixed. Thanks for the report, though! |
Or closing as duplicate, if you wish :) |
Uh oh!
There was an error while loading. Please reload this page.
Crash report
What happened?
This code showing the first 20 Fibonacci numbers works fine:
Output (Attempt This Online!):
But if I keep a reference, it crashes (after successfully printing the numbers):
The error output (Attempt This Online!):
@rhettinger
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
Python 3.12.0 (main, Oct 7 2023, 10:42:35) [GCC 13.2.1 20230801]
The text was updated successfully, but these errors were encountered: