-
Notifications
You must be signed in to change notification settings - Fork 36
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
"System.InvalidProgramException : Common Language Runtime detected an invalid program." when running some tests #80
Comments
@bhugot I can't share the actual code generating this but I can try to come up with a reproduction. |
would be very helpfull |
I tried to write a new minimal test case based on one of our failing tests, but I could not get it to fail. So, I've taken one of our internal solutions, pared it down, and made some naming modifications. It's probably not as small as it could be but it does reproduce a failing test. See saxonww/minicover-failure for the project. I can build this project in VS2017 and run the test with no errors. I can run dotnet test on the test project with no errors. But if I run dotnet test while instrumenting with minicover, I get a CLR failure. Note that I don't think this code would actually work, it just compiles and the test completes successfully (or not). The original project does work and produces output that is in active use; the exception and stack trace are the same in the original vs. this altered version so hopefully it's a good indicator for what's going on with minicover. |
Hello thanks for sharing, your problem was fixed with the last version |
Hi! I have the same problem in my CI-pipeline (I assume that this is due to the fact that the command |
@bhugot I've verified that all of our tests work with 2.0.0-ci-20180329054201. Thanks for looking at this! |
@Valeriy1991 |
I also am experiencing this issue with 20180329054201, but NOT with 20180328123752. I can't share the code under test, sorry. |
I have the same issue for both versions. After some digging, I noticed this only happens if I provide --configuration release setting to dotnet build. with --configuration debug, or with no configuration setting at all, it works okay. Also another weird issue is, the coverage report differs for different dotnet versions. 2.1.4 and 2.1.101 respectively. The same files are listed with same number of lines but number of covered lines are quite different. Edit: Different coverage reports are not caused by different dotnet versions. On a regular Ubuntu 16.04 both versions create the same result. But somehow, on Microsoft provided VSTS build agent Docker container (also Ubuntu 16.04) the results are different with dotnet 2.1.101. |
@saxonww @Valeriy1991 @SapientGuardian |
I do not have the issue with 2.0.0-ci-20180517205544 |
I'm seeing errors similar to this one since 2.0.0-ci-20180325225037:
I'm not sure if it helps, but every failure is with something working with System.Collections.Generic.List or System.Linq.Enumerable.
My development environment is Windows 10/WSL with an up-to-date Ubuntu 16.04 installation. I'm using .NET Core 2.0.0.
The text was updated successfully, but these errors were encountered: