Skip to content

Compiler crash on MSVC when building with JIT and PGO #125217

Closed
@mdboom

Description

@mdboom

Bug report

Bug description:

Building with the JIT and PGO simultaneously causes MSVC 1941 to crash:

Merging D:\a\cpython\cpython\PCbuild\amd64\python314!1.pgc
  D:\a\cpython\cpython\PCbuild\amd64\python314!1.pgc: Used 31.3% (19698312 / 62844928) of total space reserved.  0.0% of the counts were dropped due to overflow.
    Reading PGD file 1: D:\a\cpython\cpython\PCbuild\amd64\python314.pgd
     Creating library D:\a\cpython\cpython\PCbuild\amd64\python314.lib and object D:\a\cpython\cpython\PCbuild\amd64\python314.exp
  Generating code
  
  0 of 0 ( 0.0%) original invalid call sites were matched.
  0 new call sites were added.
  291 of 16259 (  1.79%) profiled functions will be compiled for speed, and the rest of the functions will be compiled for size
D:\a\cpython\cpython\Python\ceval.c(766): fatal error C1001: Internal compiler error. [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
  (compiler file 'D:\a\_work\1\s\src\vctools\Compiler\Utc\src\p2\main.c', line 247)
   To work around this problem, try simplifying or changing the program near the locations listed above.
  If possible please provide a repro here: https://developercommunity.visualstudio.com/ 
  Please choose the Technical Support command on the Visual C++ 
   Help menu, or open the Technical Support help file for more information
    link!InvokeCompilerPass()+0xd94ce
    link!InvokeCompilerPass()+0xd94ce
    link!InvokeCompilerPass()+0xd922d
    link!InvokeCompilerPass()+0xd610c
    link!InvokeCompilerPass()+0xd6011
    link!CloseTypeServerPDB()+0x12904
    link!InvokeCompilerPassW()+0x65cd9
    link!InvokeCompilerPassW()+0x65c9c
    link!time32()+0x83
    link!BaseThreadInitThunk()+0x19
    link!RtlGetFullPathName_UEx()+0xad
    link!RtlGetFullPathName_UEx()+0x7b

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Linked PRs

Metadata

Metadata

Assignees

Labels

OS-windowstype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions