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.
Created attachment 41 [details]
ReaderWriterLockSlim(with LockRecursionPolicy.SupportsRecursion) throws an exception at:
Unhandled Exception: System.Threading.LockRecursionException: Exception of type 'System.Threading.LockRecursionException' was thrown.
at System.Threading.ReaderWriterLockSlim.CheckRecursionAuthorization (LockState ctstate, LockState desiredState) [0x00007] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.Core/System.Threading/ReaderWriterLockSlim.cs:561
at System.Threading.ReaderWriterLockSlim.CheckState (System.Threading.ThreadLockState state, Int32 millisecondsTimeout, LockState validState) [0x00074] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.Core/System.Threading/ReaderWriterLockSlim.cs:552
at System.Threading.ReaderWriterLockSlim.TryEnterWriteLock (Int32 millisecondsTimeout) [0x00007] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.Core/System.Threading/ReaderWriterLockSlim.cs:235
at System.Threading.ReaderWriterLockSlim.EnterWriteLock () [0x00000] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.Core/System.Threading/ReaderWriterLockSlim.cs:228
Seems to me, internal LockState is corrupted after
5.EnterWriteLock // causes the exception on Mono (.NET stays alive)
Fixed in master and mono-2-10. Thanks for the report!