build `v3.13.0rc1` on windows failed with `-1073741819` error code.
Bug report
Bug description:
I tried to build 3.13.0rc1 on windows via call Tools\msi\buildrelease.bat -x86 -b. But it failed with the following error messages.
"D:\code\python\windows-python-installer\cpython\Tools\msi\bundle\releaselocal.wixproj" (Rebuild target) (1) -> "D:\code\python\windows-python-installer\cpython\Tools\msi\tcltk\tcltk.wixproj" (Rebuild target) (17) -> D:\code\python\windows-python-installer\cpython\Tools\msi\tcltk\tcltk.wxs(47): warning LGHT1076: ICE69: Mismatched component reference. Entry 'IDLE ' of the Shortcut table belongs to component 'idle_shortcut'. However, the formatted string in column 'Arguments' references file 'Lib_idlelib_idle.p yw' which belongs to component 'Lib_idlelib_idle.pyw'. Components are in the same feature. [D:\code\python\windows-python-installer\cpython\Tools\msi \tcltk\tcltk.wixproj] D:\code\python\windows-python-installer\cpython\Tools\msi\tcltk\tcltk.wxs(32): warning LGHT1076: ICE69: Mismatched component reference. Entry 'reg7 7D28402A0186ED8B2B0155EF0F6CA8B' of the Registry table belongs to component 'idle_reg'. However, the formatted string in column 'Value' references fi le 'Lib_idlelib_idle.pyw' which belongs to component 'Lib_idlelib_idle.pyw'. Components are in the same feature. [D:\code\python\windows-python-insta ller\cpython\Tools\msi\tcltk\tcltk.wixproj] 5 Warning(s) 0 Error(s) Time Elapsed 00:03:18.29 MSBuild version 17.11.2+c078802d4 for .NET Framework Build started 2024/8/28 12:05:56. Project "D:\code\python\windows-python-installer\cpython\Tools\msi\make_zip.proj" on node 1 (Build target(s)). _Build: setlocal set PYTHONPATH=D:\code\python\windows-python-installer\cpython\Lib rmdir /q/s "D:\code\python\windows-python-installer\cpython\PCbuild\obj\\313win32_Release\msi_python\zip_win32" "D:\code\python\windows-python-installer\cpython\Tools\msi\..\..\PCbuild\\win32\python.exe" "D:\code\python\windows-python-installer\cpython\PC\lay out" -b "D:\code\python\windows-python-installer\cpython\Tools\msi\..\..\PCbuild\\win32" -s "D:\code\python\windows-python-installer\cpython" -t "D :\code\python\windows-python-installer\cpython\PCbuild\obj\\313win32_Release\msi_python\zip_win32" --zip "D:\code\python\windows-python-installer\c python\Tools\msi\..\..\PCbuild\win32\en-us\python-3.13.0rc1-embed-win32.zip" --precompile --zip-lib --include-underpth --include-stable --flat-dlls The system cannot find the file specified. D:\code\python\windows-python-installer\cpython\Tools\msi\make_zip.proj(27,9): error MSB3073: The command "setlocal D:\code\python\windows-python-installer\cpython\Tools\msi\make_zip.proj(27,9): error MSB3073: D:\code\python\windows-python-installer\cpython\Tools\msi\make_zip.proj(27,9): error MSB3073: set PYTHONPATH=D:\code\python\windows-python-installer\ cpython\Lib D:\code\python\windows-python-installer\cpython\Tools\msi\make_zip.proj(27,9): error MSB3073: rmdir /q/s "D:\code\python\windows-python-installer\cpy thon\PCbuild\obj\\313win32_Release\msi_python\zip_win32" D:\code\python\windows-python-installer\cpython\Tools\msi\make_zip.proj(27,9): error MSB3073: "D:\code\python\windows-python-installer\cpython\Tools\ msi\..\..\PCbuild\\win32\python.exe" "D:\code\python\windows-python-installer\cpython\PC\layout" -b "D:\code\python\windows-python-installer\cpython\ Tools\msi\..\..\PCbuild\\win32" -s "D:\code\python\windows-python-installer\cpython" -t "D:\code\python\windows-python-installer\cpython\PCbuild\obj\ \313win32_Release\msi_python\zip_win32" --zip "D:\code\python\windows-python-installer\cpython\Tools\msi\..\..\PCbuild\win32\en-us\python-3.13.0rc1-e Tools\msi\..\..\PCbuild\\win32" -s "D:\code\python\windows-python-installer\cpython" -t "D:\code\python\windows-python-installer\cpython\PCbuild\obj\ \313win32_Release\msi_python\zip_win32" --zip "D:\code\python\windows-python-installer\cpython\Tools\msi\..\..\PCbuild\win32\en-us\python-3.13.0rc1-e \313win32_Release\msi_python\zip_win32" --zip "D:\code\python\windows-python-installer\cpython\Tools\msi\..\..\PCbuild\win32\en-us\python-3.13.0rc1-e mbed-win32.zip" --precompile --zip-lib --include-underpth --include-stable --flat-dlls" exited with code -1073741819. Done Building Project "D:\code\python\windows-python-installer\cpython\Tools\msi\make_zip.proj" (Build target(s)) -- FAILED. Build FAILED. "D:\code\python\windows-python-installer\cpython\Tools\msi\make_zip.proj" (Build target) (1) -> (_Build target) -> D:\code\python\windows-python-installer\cpython\Tools\msi\make_zip.proj(27,9): error MSB3073: The command "setlocal D:\code\python\windows-python-installer\cpython\Tools\msi\make_zip.proj(27,9): error MSB3073: D:\code\python\windows-python-installer\cpython\Tools\msi\make_zip.proj(27,9): error MSB3073: set PYTHONPATH=D:\code\python\windows-python-installer\ cpython\Lib D:\code\python\windows-python-installer\cpython\Tools\msi\make_zip.proj(27,9): error MSB3073: rmdir /q/s "D:\code\python\windows-python-installer\cpy thon\PCbuild\obj\\313win32_Release\msi_python\zip_win32" D:\code\python\windows-python-installer\cpython\Tools\msi\make_zip.proj(27,9): error MSB3073: "D:\code\python\windows-python-installer\cpython\Tools\ msi\..\..\PCbuild\\win32\python.exe" "D:\code\python\windows-python-installer\cpython\PC\layout" -b "D:\code\python\windows-python-installer\cpython\ Tools\msi\..\..\PCbuild\\win32" -s "D:\code\python\windows-python-installer\cpython" -t "D:\code\python\windows-python-installer\cpython\PCbuild\obj\ \313win32_Release\msi_python\zip_win32" --zip "D:\code\python\windows-python-installer\cpython\Tools\msi\..\..\PCbuild\win32\en-us\python-3.13.0rc1-e mbed-win32.zip" --precompile --zip-lib --include-underpth --include-stable --flat-dlls" exited with code -1073741819. 0 Warning(s) 1 Error(s) Time Elapsed 00:00:00.75
I found the following errors on Event Viewer.
Faulting application name: python.exe, version: 3.13.121.1013, time stamp: 0x66cea10b
Faulting module name: python313.dll, version: 3.13.121.1013, time stamp: 0x66cea0dc
Exception code: 0xc0000005
Fault offset: 0x00218da3
Faulting process id: 0x6358
Faulting application start time: 0x1DAF91189CEC6D0
Faulting application path: D:\code\python\windows-python-installer\cpython\PCbuild\win32\python.exe
Faulting module path: D:\code\python\windows-python-installer\cpython\PCbuild\win32\python313.dll
Report Id: ba1d8871-b397-4bd6-9cf4-525e16ce1260
Faulting package full name:
Faulting package-relative application ID:
I found it's the "D:\code\python\windows-python-installer\cpython\Tools\msi....\PCbuild\win32\python.exe" binary could not run. And if I replace python313.dll with the offical one, then it worked.
It's really strange. I didn't change any lines of code of v3.13.0rc1 tag.
CPython versions tested on:
3.13
Operating systems tested on:
Windows
