Skip to content
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

PGO build on Windows: test_datetime crashs with: Windows fatal exception: access violation #121048

Closed
vstinner opened this issue Jun 26, 2024 · 2 comments
Labels
OS-windows tests Tests in the Lib/test dir type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@vstinner
Copy link
Member

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

cc @ericsnowcurrently

@picnixz picnixz added tests Tests in the Lib/test dir OS-windows type-crash A hard crash of the interpreter, possibly with a core dump labels Sep 1, 2024
@picnixz
Copy link
Contributor

picnixz commented Sep 1, 2024

I think this has been resolved somehow (can someone check it?). But we are seeing other issues with the datetime module and year 2k.

@vstinner
Copy link
Member Author

vstinner commented Sep 1, 2024

I close the issue.

@vstinner vstinner closed this as completed Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-windows tests Tests in the Lib/test dir type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

2 participants