Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Description of Problem:
ReaderWriterLockSlim reports "The current thread has not entered the lock in write mode" when it should not.
Steps to reproduce the problem:
1. Run attached code.
Actual Results: Exception
Expected Results: No Exception
How often does this happen? Always.
We started seeing these errors after building mono from this commit: e223f978bebbc0c10293dc17ff30dff26cda4358
The attached example replicates the error though not in exactly the way our code does it.
Created attachment 2713 [details]
Code to reprodce the bug
I cannot reproduce the problem with your attachment on master, it runs until the end with no exception.
Could you confirm it's still not working on your side? In that case, I may need another repro.
I pretty regularly rebuild from git. Up until a few weeks ago, I had to reject those rebuilds for this issue. But sometime in that period the issue was fixed. Sorry, I should have closed this.
No worries. Closing now.