Skip to content

[Crossgen2] AV in Loader\classloader\generics\Instantiation\Positive\NestedInterface07 #52483

@trylek

Description

@trylek

Example run: https://dev.azure.com/dnceng/public/_build/results?buildId=1127214&view=ms.vss-test-web.build-test-results-tab

OS: All
Architecture: All (at least x64 and arm64 are demonstrated by the example run)

Diagnostic info:

(75e0.6a68): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
*** WARNING: Unable to verify checksum for D:\git\runtime2\artifacts\tests\coreclr\windows.x64.Debug\Tests\Core_Root\System.Private.CoreLib.dll
*** WARNING: Unable to verify checksum for D:\git\runtime2\artifacts\tests\coreclr\windows.x64.Release\Loader\classloader\generics\Instantiation\Positive\NestedInterface07\NestedInterface07.dll
CLRStub[VSD_ResolveStub]@7ffcf627b170:
00007ffc`f627b170 488b01          mov     rax,qword ptr [rcx] ds:00000000`00000001=????????????????
0:000> k
*** WARNING: Unable to verify checksum for D:\git\runtime2\artifacts\tests\coreclr\windows.x64.Debug\Tests\Core_Root\coreclr.dll
 # Child-SP          RetAddr               Call Site
00 000000e0`fa17d2c8 00007ffd`56ba4630     CLRStub[VSD_ResolveStub]@7ffcf627b170
01 000000e0`fa17d2d0 00007ff6`8cbf21b5     System_Private_CoreLib!System.Type.Equals(System.Type)+0x30 [D:\git\runtime2\src\libraries\System.Private.CoreLib\src\System\Type.cs @ 542] 
02 000000e0`fa17d310 00007ff6`8cbf1e22     NestedInterface07!Gen`1[[System.__Canon, System.Private.CoreLib]].InstVerify(System.Type)+0x35 [D:\git\runtime2\src\tests\Loader\classloader\generics\Instantiation\Positive\NestedInterface07.cs @ 45] 
03 000000e0`fa17d360 00007ffd`551cf463     NestedInterface07!Test.Main()+0x1d2 [D:\git\runtime2\src\tests\Loader\classloader\generics\Instantiation\Positive\NestedInterface07.cs @ 88] 
04 000000e0`fa17d400 00007ffd`54beb89e     coreclr!CallDescrWorkerInternal+0x83
05 000000e0`fa17d440 00007ffd`54bec554     coreclr!CallDescrWorkerWithHandler+0x12e [D:\git\runtime2\src\coreclr\vm\callhelpers.cpp @ 74] 
06 000000e0`fa17d4a0 00007ffd`54793baa     coreclr!MethodDescCallSite::CallTargetWorker+0xca4 [D:\git\runtime2\src\coreclr\vm\callhelpers.cpp @ 550] 
07 000000e0`fa17dd00 00007ffd`547a2096     coreclr!MethodDescCallSite::Call_RetArgSlot+0x11a [D:\git\runtime2\src\coreclr\vm\callhelpers.h @ 458] 
08 000000e0`fa17de60 00007ffd`547a1a59     coreclr!RunMainInternal+0x296 [D:\git\runtime2\src\coreclr\vm\assembly.cpp @ 1481] 
09 000000e0`fa17e060 00007ffd`547a1b51     coreclr!``RunMain'::`30'::__Body::Run'::`5'::__Body::Run+0x59 [D:\git\runtime2\src\coreclr\vm\assembly.cpp @ 1549] 
0a 000000e0`fa17e0b0 00007ffd`547a1d81     coreclr!`RunMain'::`30'::__Body::Run+0xa1 [D:\git\runtime2\src\coreclr\vm\assembly.cpp @ 1551] 
0b 000000e0`fa17e150 00007ffd`5479792d     coreclr!RunMain+0x1c1 [D:\git\runtime2\src\coreclr\vm\assembly.cpp @ 1551] 
0c 000000e0`fa17e250 00007ffd`548a8b0d     coreclr!Assembly::ExecuteMainMethod+0x50d [D:\git\runtime2\src\coreclr\vm\assembly.cpp @ 1661] 
0d 000000e0`fa17e880 00007ffd`55508a68     coreclr!CorHost2::ExecuteAssembly+0x60d [D:\git\runtime2\src\coreclr\vm\corhost.cpp @ 384] 
0e 000000e0`fa17ed80 00007ff7`3ad5428e     coreclr!coreclr_execute_assembly+0x138 [D:\git\runtime2\src\coreclr\dlls\mscoree\unixinterface.cpp @ 446] 
0f 000000e0`fa17ee70 00007ff7`3ad57ea8     corerun!run+0xfee [D:\git\runtime2\src\coreclr\hosts\corerun\corerun.cpp @ 371] 
10 000000e0`fa17f910 00007ff7`3ad591c9     corerun!wmain+0x108 [D:\git\runtime2\src\coreclr\hosts\corerun\corerun.cpp @ 553] 
11 000000e0`fa17fa30 00007ff7`3ad5906e     corerun!invoke_main+0x39 [d:\agent\_work\49\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 91] 
12 000000e0`fa17fa80 00007ff7`3ad58f2e     corerun!__scrt_common_main_seh+0x12e [d:\agent\_work\49\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288] 
13 000000e0`fa17faf0 00007ff7`3ad5925e     corerun!__scrt_common_main+0xe [d:\agent\_work\49\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 331] 
14 000000e0`fa17fb20 00007ffd`d08b7034     corerun!wmainCRTStartup+0xe [d:\agent\_work\49\s\src\vctools\crt\vcstartup\src\startup\exe_wmain.cpp @ 17] 
15 000000e0`fa17fb50 00007ffd`d0a62651     KERNEL32!BaseThreadInitThunk+0x14 [clientcore\base\win32\client\thread.c @ 64] 
16 000000e0`fa17fb80 00000000`00000000     ntdll!RtlUserThreadStart+0x21 [minkernel\ntdll\rtlstrt.c @ 1153] 

I have locally verified that the test passes with a rollback of #52210. @AndyAyersMS, do we need to make changes to the JIT interface matching your JIT change?

Thanks

Tomas

cc @dotnet/crossgen-contrib, @dotnet/jit-contrib

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions