Skip to content

System.Runtime.InteropServices.Tests is causing large core dumps on macOS #63761

Closed

Description

@akoeplinger

This affects CI, we're temporarily disabling core dump creation with #63742

Activity

  1. ghost added
    untriaged
    on Jan 13, 2022
  2. akoeplinger commented on Jan 13, 2022

    @akoeplinger
    MemberAuthor

    No, just a Teams thread on First Responders right now.

  3. akoeplinger commented on Jan 13, 2022

    @akoeplinger
    MemberAuthor

    One suspicious change that was merged around the time when we started seeing the 40-100GB core dumps is #59283.
    Before that we still had core dumps during that test suite but only ~4GB which the system handled fine.

  4. mangod9 commented on Jan 14, 2022

    @mangod9
    Member

    Interesting, will look at this issue. Believe @janvorli was also hitting something similar? Does this mean that a single dump is 100gb in size or just that there are many of them generated?

  5. janvorli commented on Jan 14, 2022

    @janvorli
    Member

    I was hitting problem pri 1 coreclr tests on macOS getting out of disk space consistently when I ran them explicitly in my CI. The issue got triggered right after the coreclr test baseservices/exceptions/simple/ParallelCrashMainThread that intentionally causes a process crash, hence it generates a dump.
    I'll try to check it locally to see if the GC regions are possibly the culprit. Just a quick thought - I think that macOS includes all VM space in the dump, so if the regions reserve huge amount of VM (even without actually mapping them), we may end up getting a huge dump.

  6. janvorli commented on Jan 14, 2022

    @janvorli
    Member

    Hmm, I've tested the latest state of the main branch locally and I don't see growth of the core dump sizes. E.g. for the test I've mentioned, the dump was about 6GB on my Apple M1 device, like in a state a week ago. That is a usual size of a core dump on macOS.

  7. akoeplinger commented on Jan 14, 2022

    @akoeplinger
    MemberAuthor

    Yeah that baseservices/exceptions/simple/ParallelCrashMainThread test didn't see the increase in dump file size.

    According to the Kusto data it seems we only saw this with System.Runtime.InteropServices.Tests on amd64 macOS, not on arm64, so you might want to test there (with #63769 and #63742 reverted)

  8. akoeplinger commented on Jan 14, 2022

    @akoeplinger
    MemberAuthor

    @mangod9 there was a single dump per workitem between 30 and 130GB in size.

  9. added a commit that references this issue on Jan 20, 2022
    18f00d0
  10. ghost added
    in-pr
    on Jan 20, 2022
  11. added a commit that references this issue on Jan 20, 2022
    3e6eda6
  12. ghost removed
    in-pr
    on Jan 20, 2022
  13. added a commit that references this issue on Feb 1, 2022
    6a3e131
  14. ghost locked as resolved and limited conversation to collaborators on Feb 20, 2022
  15. added a commit that references this issue on Jul 12, 2022
    15cb373
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Infrastructureuntriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions