Skip to content
This repository was archived by the owner on Nov 15, 2021. It is now read-only.
This repository was archived by the owner on Nov 15, 2021. It is now read-only.

Problems with profiling apps that launch processes #274

@stephentoub

Description

@stephentoub

Are there any known issues when the app having coverage profiled launches other managed processes?

The CoreFX System.Diagnostics.Process tests (https://github.com/dotnet/corefx/tree/7116584186f8f3a886616aaf8cb5d4a982c60e27/src/System.Diagnostics.Process/tests/System.Diagnostics.Process.Tests) currently have code coverage disabled because, when coverage is enabled, the testing hangs. I just looked into it briefly, and it appears that after the tests finish running, OpenCover is running an infinite loop in SaveVisitData:

while (!_messageQueue.TryDequeue(out data))

These tests launch a bunch of processes that are themselves managed apps, and because they inherit the environment variables from the parent process, the profiler is also getting hooked up to them. I'm guessing there's then some sort of issue where the host wasn't expecting data to come in from multiple profiled apps, but I've not explored the OpenCover code for this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions