Skip to content

monotouch-test: random CoreCLR GC crash (maybe in MonoTouchFixtures.CoreAnimation.LayerTest?) #25171

Description

@rolfbjarne

Thread stack for the crashing thread:

Thread 43 Crashed:
0   ???                           	               0x0 ???
1   libxamarin-dotnet-coreclr-debug.dylib	       0x100ac2c24 xamarin_coreclr_reference_tracking_is_referenced_callback + 116
2   libcoreclr.dylib              	       0x101777d18 ObjCMarshalNative::IsTrackedReference(Object*, bool*) + 96
3   libcoreclr.dylib              	       0x1016dd7ec GCToEEInterface::RefCountedHandleCallbacks(Object*) + 76
4   libcoreclr.dylib              	       0x1017904d4 PromoteRefCounted(Object**, unsigned long*, unsigned long, unsigned long) + 96
5   libcoreclr.dylib              	       0x10178e5fc BlockScanBlocksWithoutUserData(TableSegment*, unsigned int, unsigned int, ScanCallbackInfo*) + 116
6   libcoreclr.dylib              	       0x10178ff1c TableScanHandles(HandleTable*, unsigned int const*, unsigned int, TableSegment* (*)(HandleTable*, TableSegment*, Holder<CrstBase*, &CrstBase::AcquireLock(CrstBase*), &CrstBase::ReleaseLock(CrstBase*), 0ul, &int CompareDefault<CrstBase*>(CrstBase*, CrstBase*), true>*), void (*)(TableSegment*, unsigned int, unsigned int, ScanCallbackInfo*), ScanCallbackInfo*, Holder<CrstBase*, &CrstBase::AcquireLock(CrstBase*), &CrstBase::ReleaseLock(CrstBase*), 0ul, &int CompareDefault<CrstBase*>(CrstBase*, CrstBase*), true>*) + 392
7   libcoreclr.dylib              	       0x10178b014 HndScanHandlesForGC(HandleTable*, void (*)(Object**, unsigned long*, unsigned long, unsigned long), unsigned long, unsigned long, unsigned int const*, unsigned int, unsigned int, unsigned int, unsigned int) + 372
8   libcoreclr.dylib              	       0x101791b74 Ref_TraceNormalRoots(unsigned int, unsigned int, ScanContext*, void (*)(Object**, ScanContext*, unsigned int)) + 600
9   libcoreclr.dylib              	       0x1017f82a0 WKS::gc_heap::mark_phase(int) + 1124
10  libcoreclr.dylib              	       0x101810c28 WKS::gc_heap::gc1() + 840
11  libcoreclr.dylib              	       0x1017eb92c WKS::gc_heap::garbage_collect(int) + 1804
12  libcoreclr.dylib              	       0x1017eaee0 WKS::GCHeap::GarbageCollectGeneration(unsigned int, gc_reason) + 980
13  libcoreclr.dylib              	       0x1017ea980 WKS::GCHeap::GarbageCollect(int, bool, int) + 444
14  libcoreclr.dylib              	       0x1016bcbc0 GCInterface_Collect + 184
15  monotouchtest                 	       0x1060f0494 S_P_CoreLib_System_GC__Collect_0 + 116

Full crash report: https://gist.github.com/rolfbjarne/0909e427b8eb228da56bd88dcf6342af

This is what the test run was doing:

[...]
MonoTouchFixtures.CoreAnimation.LayerTest
	[PASS] AddAnimation
	[PASS] CAActionTest
	[PASS] ConvertPoint
	[PASS] ConvertRect
	[PASS] ConvertTime
	[PASS] Mask

Full output log: https://gist.github.com/rolfbjarne/741fda3807e021b9a5ff7b709a4c6537

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsAnything related to tests

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions