Skip to content
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

Test failure Interop\\COM\\ComWrappers\\GlobalInstance\\GlobalInstanceMarshallingTestsBuiltInComDisabled\\GlobalInstanceMarshallingTestsBuiltInComDisabled.cmd #53160

Closed
VincentBu opened this issue May 24, 2021 · 2 comments · Fixed by #52771

Comments

@VincentBu
Copy link
Contributor

Run: runtime-coreclr gcstress0x3-gcstress0xc 20210523.1

Failed test:

CoreCLR windows x64 Checked gcstress0x3 @ Windows.10.Amd64.Open

- Interop\\COM\\ComWrappers\\GlobalInstance\\GlobalInstanceMarshallingTestsBuiltInComDisabled\\GlobalInstanceMarshallingTestsBuiltInComDisabled.cmd

Error message:

Assert failure(PID 2672 [0x00000a70], Thread: 5016 [0x1398]): Consistency check failed: AV in clr at this callstack:
CORECLR! anonymous namespace'::WalkExternalTrackerObjects + 0xC6 (0x00007ffb2d79f53e)
CORECLR! TrackerObjectManager::BeginReferenceTracking + 0xF3 (0x00007ffb2d79f163) CORECLR! InteropLib::Com::BeginExternalObjectReferenceTracking + 0x9 (0x00007ffb2d79da09)
CORECLR! ComWrappersNative::OnFullGCStarted + 0x145 (0x00007ffb2d4d0719) CORECLR! Interop::OnGCStarted + 0xB5 (0x00007ffb2d4c1969)
CORECLR! GCToEEInterface::GcStartWork + 0xC7 (0x00007ffb2d2eb3a7) CORECLR! WKS::gc_heap::garbage_collect + 0x22E (0x00007ffb2d60d40a)
CORECLR! WKS::GCHeap::GarbageCollectGeneration + 0x292 (0x00007ffb2d5f897e) CORECLR! WKS::GCHeap::GarbageCollect + 0x11E (0x00007ffb2d5f869e)
CORECLR! WKS::GCHeap::StressHeap + 0x4F3 (0x00007ffb2d5fb1a3) CORECLR! Thread::PerformPreemptiveGC + 0x339 (0x00007ffb2d4840f1)
CORECLR! Thread::RareEnablePreemptiveGC + 0x13F (0x00007ffb2d484903) CORECLR! Thread::EnablePreemptiveGC + 0x11A (0x00007ffb2cf6e4c6)
CORECLR! FinalizerThread::FinalizerThreadWorker + 0xE1 (0x00007ffb2d2e7c91) CORECLR! ManagedThreadBase_DispatchInner + 0xB9 (0x00007ffb2d1e1089)
CORECLR! ManagedThreadBase_DispatchMiddle + 0xBF (0x00007ffb2d1e1193) CORECLR! ``ManagedThreadBase_DispatchOuter'::11'::__Body::Run'::5'::__Body::Run + 0x77 (0x00007ffb2d1e377f)
CORECLR! ManagedThreadBase_DispatchOuter'::11'::__Body::Run + 0x83 (0x00007ffb2d1e3a43) CORECLR! ManagedThreadBase_DispatchOuter + 0xE2 (0x00007ffb2d1e12aa)
.AV on tid=0x1398 (5016), cxr=00000042005FE580, exr=00000042005FEA70
FAILED: false

CORECLR! CHECK::Trigger + 0x2C9 (0x00007ffb2d6610b9) CORECLR! CLRVectoredExceptionHandlerPhase3 + 0x2B6 (0x00007ffb2d080882)
CORECLR! CLRVectoredExceptionHandlerPhase2 + 0x97 (0x00007ffb2d08033b) CORECLR! CLRVectoredExceptionHandler + 0x215 (0x00007ffb2d080281)
CORECLR! CLRVectoredExceptionHandlerShim + 0x1AA (0x00007ffb2d080b0a) NTDLL! RtlInitializeCriticalSection + 0x190 (0x00007ffb59d16b30)
NTDLL! RtlImageNtHeaderEx + 0x17B (0x00007ffb59ce46bb) NTDLL! KiUserExceptionDispatcher + 0x3A (0x00007ffb59d5987a)
CORECLR! anonymous namespace'::WalkExternalTrackerObjects + 0xC6 (0x00007ffb2d79f53e)
CORECLR! TrackerObjectManager::BeginReferenceTracking + 0xF3 (0x00007ffb`2d79f163)
File: D:\workspace_work\1\s\src\coreclr\vm\excep.cpp Line: 7502
Image: C:\h\w\B3CA0974\p\corerun.exe

Return code:      1
Raw output file:      C:\h\w\B3CA0974\w\9CF408E9\e\Interop\COM\Reports\Interop.COM\ComWrappers\GlobalInstance\GlobalInstanceMarshallingTestsBuiltInComDisabled\GlobalInstanceMarshallingTestsBuiltInComDisabled.output.txt
Raw output:
BEGIN EXECUTION
Copying 'C:\h\w\B3CA0974\p\CoreShim.dll'...
1 file(s) copied.
"C:\h\w\B3CA0974\p\corerun.exe" -p "System.Runtime.InteropServices.BuiltInComInterop.IsSupported=false" GlobalInstanceMarshallingTestsBuiltInComDisabled.dll
Built-in COM Disabled?: True
Running ValidateRegisterForMarshalling...
Running ValidateMarshalAPIs: use registered wrapper...
-- Validate Marshal.GetIUnknownForObject...
-- Validate Marshal.GetIDispatchForObject...
-- Validate Marshal.GetIDispatchForObject != Marshal.GetIUnknownForObject...
-- Validate Marshal.GetObjectForIUnknown...
-- Validate Marshal.GetUniqueObjectForIUnknown...
Running ValidatePInvokes: use registered wrapper...
-- Validate MarshalAs IUnknown...
-- Validate MarshalAs IDispatch...
-- Validate MarshalAs Interface...
Running ValidateNotRegisteredForTrackerSupport...
Running ValidateRegisterForTrackerSupport...
Expected: 100
Actual: -1073740286
END EXECUTION - FAILED
FAILED
Test Harness Exitcode is : 1
To run the test:

set CORE_ROOT=C:\h\w\B3CA0974\p
C:\h\w\B3CA0974\w\9CF408E9\e\Interop\COM\ComWrappers\GlobalInstance\GlobalInstanceMarshallingTestsBuiltInComDisabled\GlobalInstanceMarshallingTestsBuiltInComDisabled.cmd
Expected: True
Actual:


Stack trace
   at Interop_COM._ComWrappers_GlobalInstance_GlobalInstanceMarshallingTestsBuiltInComDisabled_GlobalInstanceMarshallingTestsBuiltInComDisabled_._ComWrappers_GlobalInstance_GlobalInstanceMarshallingTestsBuiltInComDisabled_GlobalInstanceMarshallingTestsBuiltInComDisabled_cmd()
@dotnet-issue-labeler dotnet-issue-labeler bot added area-Interop-coreclr untriaged New issue has not been triaged by the area owner labels May 24, 2021
@jkoritzinsky
Copy link
Member

cc: @AaronRobinsonMSFT @LakshanF

@AaronRobinsonMSFT AaronRobinsonMSFT removed the untriaged New issue has not been triaged by the area owner label May 24, 2021
@AaronRobinsonMSFT
Copy link
Member

Real issue. I will fold this into other fixes I have for the ComWrappers API.

See #52771

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label May 24, 2021
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label May 25, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jun 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants