-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
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
[Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash. #87754
Comments
use static module variable under building Python with --with-experimental-isolated-subinterpreters cause crash.
compiler_mod(struct compiler *c, mod_ty mod)
{
PyCodeObject *co;
int addNone = 1;
static PyObject *module;
if (!module) {
module = PyUnicode_InternFromString("<module>");
if (!module)
return NULL;
}
...
} |
43551 [Subinterpreters]: PyImport_Import use static silly_list under building Python with --with-experimental-isolated-subinterpreters share silly_list in multi subinterpreters cause crash. |
grep -E 'static (\w+) \(\w+) =' $(find . -name "*.c") | wc -l |
fix |
Oh. I didn't expect so many "static" variables. I suggest to wait until a PEP is accepted for running multiple interpreters in parallel. |
Okay, I will fix these problems first. (Need for your own project) |
-> Okay, I will fix these problems first. (Need for my own project) |
I will fix the static variable problem of frequently used code |
Please wait your patch until the PEP is approved. |
Until the PEP is accepted, you can start working on a branch if you want. You can post the link to your branch. |
About PEP |
So far, no PEP has been written. |
Most of the static variables were removed by #31366 so I closed those PRs as they were outdated, however some static variable still exist. |
Kumar, I think you linked to the incorrect issue or PR. Would you mind updating it with the correct number? |
Good catch Erlend! Thanks I updated the PR number, I wonder if it was a C&P error on my end or the Github migration caused it. |
The configuration was removed by @ericsnowcurrently |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: