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
Py_SAFE_DOWNCAST in FILE_TIME_to_time_t_nsec failing #48629
Comments
After releasing a Py_DEBUG build to some users who were experiencing msvcr90d!_wassert+0xb64 The only way I can see _wassert being hit in FILE_TIME_to_time_t_nsec is I can't find a way to see the actual value for "in" before the assert is |
You almost gave the answer in your question - the FILE_TIME is about to be in posixmodule.c::FILE_TIME_to_time_t_nsec(), a comment says: And indeed to reproduce the same crash it is enough to call os.stat() on a |
The attached patch corrects the problem: since VS2008 time_t is a 64bit This prevents the crash, but the functionality is far from complete: |
IIUC, the patch relies on VS 2008. So it is not a candidate for 2.5.3. |
Oh, this issue was already fixed by r87666 to fix the duplicate issue bpo-8278. |
... in py3k, and then merged into release31-maint (r87668) and release27-maint (r87669). |
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: