Skip to content

Use createdump to collect crash dumps where possible in runtime #65422

Open
@elinor-fung

Description

@elinor-fung

System dumps on macOS are large - uploading them has been taking down helix queues. Using the runtime's coredump features should allow for configuration such that we can get smaller and still useful dumps.

Since createdump is part of the test/payload, I think we should just be able to update the libraries runner template to set the dump configuration environment variables for DbgEnableMiniDump, DbgMiniDumpName, and DbgMiniDumpType (cc @mikem8361 @hoyosjs) instead of using ulimit:

if [[ "$(uname -s)" == "Darwin" ]]; then
# On OS X, we will enable core dump generation only if there are no core
# files already in /cores/ at this point. This is being done to prevent
# inadvertently flooding the CI machines with dumps.
if [[ ! -d "/cores" || ! "$(ls -A /cores)" ]]; then
ulimit -c unlimited
fi

See also:
#65405 (comment)
https://github.com/dotnet/core-eng/issues/15333

cc @danmoseley

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions