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 testhost process when child crashes #3936

Closed
nohwnd opened this issue Aug 10, 2022 · 2 comments
Closed

Dump testhost process when child crashes #3936

nohwnd opened this issue Aug 10, 2022 · 2 comments

Comments

@nohwnd
Copy link
Member

nohwnd commented Aug 10, 2022

Description

When test runs with --blame-crash, on .NET we set environment variables that use internal functionality of .NET to collect a crash dump. When a child process is started these environment variables are inherited and a child process can crash dump itself. This gives us a view of the state that the child process was in, but does not give us any idea about what state the testhost process was in (what test was running).

Maybe we could check on process exit if the process exited with 0 (or maybe there is a specific exit code for process crashed), and initiate a "hang" dump of the testhost process.

Steps to reproduce

Expected behavior

When child process of a test crashes I want to capture the state in testhost.

Actual behavior

I get child-process dump but not testhost dump.

Diagnostic logs

Environment

@nohwnd
Copy link
Member Author

nohwnd commented Aug 10, 2022

@nohwnd
Copy link
Member Author

nohwnd commented Jul 8, 2024

We don't have a way to detect this reliably.

@nohwnd nohwnd closed this as not planned Won't fix, can't repro, duplicate, stale Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant