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

Enable legacyCorruptedStateExceptionsPolicy #660

Merged
merged 1 commit into from
Jul 4, 2019

Conversation

jnm2
Copy link
Collaborator

@jnm2 jnm2 commented Jul 2, 2019

Fixes #336.

Also, in order to fix the intermittent test run hangs investigated at nunit/nunit#3295, at least one of the following things must happen:

@ChrisMaddock
Copy link
Member

I agree with your conclusions here - I'd like to hear @rprouse opinion before we merge though. 🙂

@jnm2 jnm2 force-pushed the corrupted_state_exceptions branch from 5224101 to 3bc2e88 Compare July 2, 2019 12:08
@jnm2 jnm2 force-pushed the corrupted_state_exceptions branch from 3bc2e88 to c3cb282 Compare July 2, 2019 12:09
@jnm2
Copy link
Collaborator Author

jnm2 commented Jul 2, 2019

Awesome! I fixed typos. Guess I was up too late.

Copy link
Member

@rprouse rprouse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. I know some of our users still have partial trust issues tests, so dropping support for it isn't an option right now.

@KirillOsenkov
Copy link

Hi @jnm2 would you happen to remember a link to

Microsoft ports the .NET Core fix to .NET Framework 4.7 and 4.8 to fix the race condition that causes stack traces to throw AccessViolationException

We're hitting an AccessViolationException here:
microsoft/vstest#3543 (comment)

and I feel like under some circumstances Assembly.LoadFrom() on .NET Framework can throw AccessViolationException but I can find almost no information about it anywhere, grasping at the straws here

@jnm2
Copy link
Collaborator Author

jnm2 commented Aug 24, 2024

@KirillOsenkov Yes, see nunit/nunit#3295 (comment)

@KirillOsenkov
Copy link

Nice, thanks! Looks like it's a different one from ours, ours is in Assembly.LoadFrom(). Also the stack trace one was (fortunately!) fixed for .NET Framework (in fact I think I remember how we fixed it a few years back).

@jnm2
Copy link
Collaborator Author

jnm2 commented Aug 24, 2024

It does look different. Not sure what to make of this one. Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should legacyCorruptedStateExceptionsPolicy enabled=true in nunit3-console.exe.config?
4 participants