Skip to content

AccessViolation in crossgen Microsoft.CSharp.dll #9651

@eerhardt

Description

@eerhardt

See dotnet/core-setup#3662 (comment)

This is blocking taking new coreclr bits into core-setup.

To repro: checkout @dotnet-maestro-bot's change in that PR, and "build.cmd/sh".

The command that is failing is:

F:\git\core-setup\packages\transport.runtime.win-x64.microsoft.netcore.runtime.coreclr\2.1.0-preview2-26202-06\tools\crossgen.exe
-readytorun
-platform_assemblies_paths F:\git\core-setup\Bin/win-x64.Debug\\crossgen/Microsoft.NETCore.App/win-x64/runtimes/win-x64/lib/netcoreapp2.1/;F:\git\core-setup\packages\transport.runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR\2.1.0-preview2-26202-06\runtimes\win-x64\native\
-CreatePDB
F:\git\core-setup\Bin/win-x64.Debug/symbols//Microsoft.NETCore.App/runtimes/win-x64/lib/netcoreapp2.1
F:\git\core-setup\Bin/win-x64.Debug\\crossgen/Microsoft.NETCore.App/win-x64/runtimes/win-x64/lib/netcoreapp2.1/Microsoft.CSharp.dll

I attached WinDBG to this process and I'm getting:

(1178f4.119378): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
crossgen!EECodeInfo::GetMethodRegionInfo+0x7 [inlined in crossgen!NGenModulePdbWriter::WriteMethodPDBData+0x72]:
00007ff7`2188a25e 488b07          mov     rax,qword ptr [rdi] ds:00000000`00000000=????????????????

crossgen!EECodeInfo::GetMethodRegionInfo + 0x7
crossgen!NGenModulePdbWriter::WriteMethodPDBData + 0x72
crossgen!NGenModulePdbWriter::WritePDBData + 0x97c
crossgen!NGenPdbWriter::WritePDBDataForModule + 0x1e3
crossgen!CreatePdb + 0x186
crossgen!Zapper::CreatePdbInCurrentDomain + 0x278
crossgen!`Zapper::CreatePdb'::`2'::Callback::doCallback + 0x29
crossgen!Zapper::InvokeDomainCallback + 0xa
crossgen!Zapper::CreatePdb + 0x65
crossgen!CreatePDBWorker + 0x20e
crossgen!wmain + 0x99f
crossgen!invoke_main + 0x22
crossgen!__scrt_common_main_seh + 0x11d
KERNEL32!BaseThreadInitThunk + 0x14
ntdll!RtlUserThreadStart + 0x21

/cc @RussKeldorph @sergiy-k @jkotas

Metadata

Metadata

Assignees

Labels

blockingMarks issues that we want to fast track in order to unblock other important work

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions