-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
gh-132413: Fix crash in _datetime when used at shutdown (alt) #132665
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
f99a3d9
test
neonene f502244
Create a module at shutdown rather than import
neonene 528882d
NEWS
neonene 72991c2
Fix comment
neonene 4abbc73
Remove unused code
neonene db2cb88
Remove PyDict_Contains()
neonene 7225ec2
Add assertion in test
neonene e5900ef
Merge branch 'main' into 132413-take2
neonene 22c4764
Correct PyModule_GetDict() usage
neonene b9eaee1
Fix comment
neonene 97a6d0d
Set a spec later in set_current_module()
neonene c10d4db
Hold current module until interp-end
neonene 029a032
Merge branch 'main' into 132413-take2
neonene b7d27ea
Fix decl
neonene 3fba892
assert interp-dict has a key
neonene d5e1220
Reword
neonene c0a27eb
typo
neonene aabe338
Merge branch 'main' into 132413-take2
neonene bf3d238
Reword again
neonene 0f59936
ditto
neonene 78c762a
Check if interp-dict is empty
neonene 8503986
Correct behavior
neonene 4b92b19
Revert _datetimemodule.c to main
neonene 3d29380
Fix crash (new attempt)
neonene 26b8f51
Non-NULL check before PyType_Check()
neonene 3e2ef0d
Faster _get_current_state() by 6%-
neonene 2e1a129
Comment
neonene 3c05989
assert(!_Py_IsInterpreterFinalizing())
neonene 8eaae36
assign NULL to interp-state on error
neonene b285b46
Merge branch 'main' into 132413-take2
neonene c2758bd
Get module without interp-dict and weakref
neonene 2f8535b
Merge branch 'main' into 132413-take2
neonene 56f8a06
Add tests
neonene aa86807
Add tests
neonene 6880f34
Update and pass tests
neonene 022d4e8
Make tests realistic by using subinterp
neonene 318888a
Nit
neonene 838a2f2
Merge branch 'main' into 132413-take2
neonene 6e6c328
Make tests generic
neonene 351225e
Fix test_datetime_capi() for subinterps
neonene 419500e
Use assert_python_failure()
neonene 596007c
Add a failure test (crash)
neonene 1dd9707
Correct the previous commit
neonene fb35703
Redirect to the CapiTest method
neonene c6cc066
Merge two tests (1)
neonene cc04c6f
Merge two tests (2)
neonene 56267bd
Merge two tests (3)
neonene 063f37d
Add test cases
neonene 8a81b18
Merge branch 'main' into 132413-take2
neonene 992fd0c
Move up a few tests
neonene f0f8fa0
Update tests
neonene 7f31245
Move a repeat test to test_embed
neonene 0b01f51
Merge branch 'main' into 132413-take2
neonene d7f80dd
Restore and keep _Py_ID for now
neonene 23bdffd
Add a demonstration to test_embed
neonene 68787de
Merge branch 'main' into 132413-take2
neonene ad7dfd2
Introduce test_datetime_capi_newinterp()
neonene 37b2774
Cleanup
neonene f21f03f
Add a test to test_embed
neonene b009033
Merge branch 'main' into 132413-take2
neonene 6a83ad7
Merge branch 'main' into 132413-take2
neonene 2b6c12a
Decref the module explicitly on exec error
neonene 8d94b2f
Focus on main interp's issue
neonene e1c9cdf
Tweak 2b6c12a
neonene 5ed5e69
Smaller patch for tests
neonene d9121b1
Merge branch 'main' into 132413-take2
neonene f22edc1
minimize test
neonene 7b417a3
Merge branch 'main' into 132413-take2
neonene File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove PyDict_Contains()
- Loading branch information
commit db2cb883806b84b0116c9e6f2b38695cb39e417b
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.