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
segfault in optimize_code() #43043
Comments
The function optimize_code() is called, for example This is because of code such as: tgt can in this case easily be some nonsense and My particular patch is this:
#define CHECK_I(i) do {if ((i)<0 || (i)>=codelen)
goto exitError;}while(0)
#define CHECKARG(i) do {CHECK_I(i+1); CHECK_I(i+2);}
while(0)
#define CHECKJUMPTGT(i) do{CHECKARG(i); CHECK_I(i);}
while(0) then, adding tests such as Also, this function needs to be able to raise an Finally, this is also an issue in 2.3 (actually, I |
Logged In: YES I don't *think* optimize_code is called for unmarshalled code objects any more If not, and so optimize_code is only called with code freshly generated from the |
Logged In: YES For 2.4, Michael is correct and the optimizer only applied Also, FWIW, in Py2.5, I'm planning to move the optimizer Also, discussions on python-dev have noted that there are |
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: