Skip to content

Compilation on Windows fails with assert in generated_cases.c.h #131987

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
sergey-miryanov opened this issue Apr 1, 2025 · 5 comments
Closed
Labels
type-bug An unexpected behavior, bug, or error

Comments

@sergey-miryanov
Copy link
Contributor

sergey-miryanov commented Apr 1, 2025

Bug report

Bug description:

Command line: .\PCBuild\build.bat -p x64 -d -r

  python.c
  python.vcxproj -> D:\Sources\_pythonish\cpython\PCbuild\amd64\python_d.exe
  Assertion failed: WITHIN_STACK_BOUNDS(), file D:\Sources\_pythonish\cpython\Python\generated_cases.c.h, line 11092
  
D:\Sources\_pythonish\cpython\PCbuild\python.vcxproj(134,5): warning MSB3073: The command "setlocal
D:\Sources\_pythonish\cpython\PCbuild\python.vcxproj(134,5): warning MSB3073: set PYTHONPATH=D:\Sources\_pythonish\cpython\Lib
D:\Sources\_pythonish\cpython\PCbuild\python.vcxproj(134,5): warning MSB3073: "D:\Sources\_pythonish\cpython\PCbuild\amd64\python_d.exe" "D:\Sources\_pythonish\cpython\PC\validate_ucrtbase.py" ucrtbased" exited with code 3.
  Wrote D:\Sources\_pythonish\cpython\PCbuild\amd64\LICENSE.txt
  WinMain.c
  pythonw.vcxproj -> D:\Sources\_pythonish\cpython\PCbuild\amd64\pythonw_d.exe

Build succeeded.

D:\Sources\_pythonish\cpython\PCbuild\python.vcxproj(134,5): warning MSB3073: The command "setlocal
D:\Sources\_pythonish\cpython\PCbuild\python.vcxproj(134,5): warning MSB3073: set PYTHONPATH=D:\Sources\_pythonish\cpython\Lib
D:\Sources\_pythonish\cpython\PCbuild\python.vcxproj(134,5): warning MSB3073: "D:\Sources\_pythonish\cpython\PCbuild\amd64\python_d.exe" "D:\Sources\_pythonish\cpython\PC\validate_ucrtbase.py" ucrtbased" exited with code 3.
    1 Warning(s)
    0 Error(s)

Time Elapsed 00:01:06.65

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Linked PRs

@sergey-miryanov sergey-miryanov added the type-bug An unexpected behavior, bug, or error label Apr 1, 2025
@sergey-miryanov
Copy link
Contributor Author

sergey-miryanov commented Apr 1, 2025

It compiles fine without 053c285

ping @mpage

@mpage
Copy link
Contributor

mpage commented Apr 1, 2025

I can't reproduce the error that you're seeing when I build from a clean checkout of cpython at c2ac662f284b7c3f0701173f2467bf1e18aad2e2. I'm using:

  • Windows Standard 2025
  • Visual Studio Community 2022
  • .\PCBuild\build.bat -p x64 -d -r

@Fidget-Spinner
Copy link
Member

@mpage I think we might've forgotten to bump the pycore magic number in that PR. So the OP might be loading stale bytecode.

@mpage
Copy link
Contributor

mpage commented Apr 1, 2025

I think we might've forgotten to bump the pycore magic number in that PR. So the OP might be loading stale bytecode.

Ugh, I thought I did that. Maybe it got blown away in a merge. That's probably what's happening. Thanks!

mpage added a commit that referenced this issue Apr 1, 2025
This should have been done as part of 053c285 but got blown away
in a merge.
@sergey-miryanov
Copy link
Contributor Author

Thanks for quick fix!

seehwan pushed a commit to seehwan/cpython that referenced this issue Apr 16, 2025
This should have been done as part of 053c285 but got blown away
in a merge.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants