Closed
Description
test_datetime does crash on Python 3.13 on Windows during PGO build.
Example on Windows 32-bit build: https://github.com/python/cpython/actions/runs/9600594562/job/26477522603
Running PGInstrument|Win32 interpreter...
Using random seed: 311271863
0:00:00 Run 44 tests sequentially
(...)
0:00:55 load avg: 0.00 [13/44] test_datetime
Windows fatal exception: access violation
Thread 0x00000c28 (most recent call first):
File "D:\a\cpython\cpython\Lib\test\libregrtest\win_utils.py", line 47 in _update_load
Current thread 0x00001b10 (most recent call first):
File "D:\a\cpython\cpython\Lib\test\datetimetester.py", line 5979 in test_utcoffset
File "D:\a\cpython\cpython\Lib\unittest\case.py", line 606 in _callTestMethod
File "D:\a\cpython\cpython\Lib\unittest\case.py", line 651 in run
(...)
It seems like the crash started to occur since the 3.13 change: #120518
Example of Windows 64-bit build: https://github.com/python/cpython/actions/runs/9586196224/job/26433837475
Running PGInstrument|x64 interpreter...
Using random seed: 1695046406
0:00:00 Run 44 tests sequentially
(...)
0:00:45 load avg: 0.01 [11/44] test_complex
0:00:47 load avg: 0.01 [12/44] test_dataclasses
0:00:50 load avg: 0.01 [13/44] test_datetime
Windows fatal exception: access violation
Thread 0x00000750 (most recent call first):
File "D:\a\cpython\cpython\Lib\test\libregrtest\win_utils.py", line 47 in _update_load
Current thread 0x000017c0 (most recent call first):
File "D:\a\cpython\cpython\Lib\linecache.py", line 100 in updatecache
File "D:\a\cpython\cpython\Lib\linecache.py", line 41 in getlines
File "D:\a\cpython\cpython\Lib\linecache.py", line 25 in getline
File "D:\a\cpython\cpython\Lib\traceback.py", line 350 in _set_lines
File "D:\a\cpython\cpython\Lib\traceback.py", line 369 in line
File "D:\a\cpython\cpython\Lib\traceback.py", line 492 in _extract_from_extended_frame_gen
File "D:\a\cpython\cpython\Lib\traceback.py", line 1042 in __init__
File "D:\a\cpython\cpython\Lib\traceback.py", line 154 in format_exception
File "D:\a\cpython\cpython\Lib\test\libregrtest\testresult.py", line 97 in __makeErrorDict