Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dump collection on runtime test timeouts does not work anymore #80170

Open
SingleAccretion opened this issue Jan 4, 2023 · 4 comments
Open
Assignees
Labels
area-Diagnostics-coreclr untriaged New issue has not been triaged by the area owner

Comments

@SingleAccretion
Copy link
Contributor

Sample log:

Invoking: C:\h\w\B0990A36\p\createdump.exe --name "C:\cores\crashdump_4900.dmp" 4900 --withheap
createdump stdout:

createdump stderr:
[createdump] The pid argument is no longer supported

Failed to collect crash dump
    JIT\Regression\clr-x64-JIT\v4.0\devdiv374539\DevDiv_374539\DevDiv_374539.cmd [FAIL]

This is done by code here:

string coreRoot = Environment.GetEnvironmentVariable("CORE_ROOT");
string createdumpPath = Path.Combine(coreRoot, "createdump");
string arguments = $"--name \"{path}\" {process.Id} --withheap";
Process createdump = new Process();

Which evidently does not work anymore.

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Jan 4, 2023
@ghost
Copy link

ghost commented Jan 4, 2023

Tagging subscribers to this area: @hoyosjs
See info in area-owners.md if you want to be subscribed.

Issue Details

Sample log:

Invoking: C:\h\w\B0990A36\p\createdump.exe --name "C:\cores\crashdump_4900.dmp" 4900 --withheap
createdump stdout:

createdump stderr:
[createdump] The pid argument is no longer supported

Failed to collect crash dump
    JIT\Regression\clr-x64-JIT\v4.0\devdiv374539\DevDiv_374539\DevDiv_374539.cmd [FAIL]

This is done by code here:

string coreRoot = Environment.GetEnvironmentVariable("CORE_ROOT");
string createdumpPath = Path.Combine(coreRoot, "createdump");
string arguments = $"--name \"{path}\" {process.Id} --withheap";
Process createdump = new Process();

Which evidently does not work anymore.

Author: SingleAccretion
Assignees: -
Labels:

area-Infrastructure-coreclr

Milestone: -

@jkotas
Copy link
Member

jkotas commented Jan 4, 2023

The pid argument is no longer supported

Introduced by #68877 . cc @mikem8361

Copy link
Contributor

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

@mikem8361
Copy link
Member

We changed createdump a long time ago (.NET 3.1 I think) to only dump it's parent process on Windows only for security reasons. Linux/MacOS still take a pid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Diagnostics-coreclr untriaged New issue has not been triaged by the area owner
Projects
Status: No status
Development

No branches or pull requests

4 participants