Skip to content

System.Tests.GCExtendedTests.GetAllocatedBytesForCurrentThread - Allocated too much #74388

Closed

Description

@danmoseley

Runfo in last 30 days as of 10/3

  • 5 occurrences - 1x Rolling run + 4x PR
  • As of 8/4 there was 1x Rolling run + 1x PR (it was too rare to file it back then)

Original Report

❌ System.Tests.GCExtendedTests.GetAllocatedBytesForCurrentThread(size: 1000)

Allocated too much: start: 84649544 end: 84749920 size: 1000
Expected: True
Actual:   False
Stack Trace
   at System.Tests.GCExtendedTests.GetAllocatedBytesForCurrentThread(Int32 size) in /_/src/libraries/System.Runtime/tests/System/GCTests.cs:line 798
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodInvoker.cs:line 64

Debian.10.Amd64.Open

Console log: 'System.Runtime.Tests' from job 8b265039-da4a-4577-9fe9-3ae7a32573d4 (ubuntu.1804.amd64.open.rt) using docker image mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-amd64-20220810215022-f344011 on a002IZM

https://dev.azure.com/dnceng/public/_build/results?buildId=1959322&view=ms.vss-test-web.build-test-results-tab&runId=50341050&paneView=dotnet-dnceng.dnceng-build-release-tasks.helix-test-information-tab&resultId=185272

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Aug 22, 2022
  2. removed
    untriagedNew issue has not been triaged by the area owner
    on Aug 23, 2022
  3. added this to the 7.0.0 milestone on Aug 23, 2022
  4. mangod9 commented on Aug 23, 2022

    @mangod9
    Member

    this seems to be a new failure, would be good to determine if some recent change might have affected this.

  5. danmoseley commented on Aug 23, 2022

    @danmoseley
    ContributorAuthor

    There is some slop already in the text, so apparently it's not expected to be totally deterministic?

            Assert.True((end - start) < 5 * size, $"Allocated too much: start: {start} end: {end} size: {size}");
    

    So it would allocate 1K, allow up to 5K but it was 10K

  6. modified the milestones: 7.0.0, 8.0.0 on Sep 9, 2022
  7. changed the title [-]Failure in System.Tests.GCExtendedTests.GetAllocatedBytesForCurrentThread on Debian 10[/-] [+]System.Tests.GCExtendedTests.GetAllocatedBytesForCurrentThread - Allocated too much[/+] on Oct 3, 2022
  8. karelz commented on Oct 3, 2022

    @karelz
    Member

    Happens on all platforms. Roughly 1x per week - see top post updated

  9. modified the milestones: 8.0.0, Future on Aug 2, 2023
  10. janvorli commented on Jul 9, 2026

    @janvorli
    Member

    This doesn't seem to happen anymore and the issue is ancient. Closing

  11. locked and limited conversation to collaborators on Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

  • Status
    No status

Relationships

None yet

Development

No branches or pull requests

Issue actions