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
System.Runtime.InteropServices.Tests is causing large core dumps on macOS #63761
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.
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?
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.
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.
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)
Activity
akoeplinger commentedon Jan 13, 2022
No, just a Teams thread on First Responders right now.
akoeplinger commentedon Jan 13, 2022
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.
mangod9 commentedon Jan 14, 2022
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?
janvorli commentedon Jan 14, 2022
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/ParallelCrashMainThreadthat 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.
janvorli commentedon Jan 14, 2022
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.
akoeplinger commentedon Jan 14, 2022
Yeah that
baseservices/exceptions/simple/ParallelCrashMainThreadtest 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)
akoeplinger commentedon Jan 14, 2022
@mangod9 there was a single dump per workitem between 30 and 130GB in size.
Revert "Temporarily disable coredumps during library testing on macOS (…
Revert "Temporarily disable coredumps during library testing on macOS (…
`SafeFileHandle` `FileStatus` (#4)
[API Implementation]: SafeFileHandle overloads for SetCreationTime, S…