Bug 33508 - MONO_GC_PARAMS='major=marksweep-conc' causes ObjectDisposedException
Summary: MONO_GC_PARAMS='major=marksweep-conc' causes ObjectDisposedException
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: GC ()
Version: 4.0.0
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-08-31 11:07 UTC by henrik
Modified: 2016-09-23 17:26 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
RESOLVED FIXED

Description henrik 2015-08-31 11:07:32 UTC
Unhandled Exception:
System.ObjectDisposedException: The object was used after being disposed.
  at System.Threading.WaitHandle.CheckDisposed () [0x00016] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/corlib/System.Threading/WaitHandle.cs:426 
  at System.Threading.EventWaitHandle.Reset () [0x0000c] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/corlib/System.Threading/EventWaitHandle.cs:196 
  at (wrapper remoting-invoke-with-check) System.Threading.EventWaitHandle:Reset ()
  at System.Runtime.Caching.MemoryCacheStore.BlockInsert () [0x00000] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/external/referencesource/System.Runtime.Caching/System/Caching/MemoryCacheStore.cs:174 
  at System.Runtime.Caching.CacheEntryCollection.FlushItems (DateTime limit, CacheEntryRemovedReason reason, Boolean blockInsert, Int32 count) [0x00008] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/System.Runtime.Caching/ReferenceSources/CacheEntryCollection.cs:65 
  at System.Runtime.Caching.CacheExpires.FlushExpiredItems (Boolean blockInsert) [0x00000] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/System.Runtime.Caching/ReferenceSources/CacheExpires.cs:78 
  at System.Runtime.Caching.CacheExpires.<EnableExpirationTimer>m__0 (System.Object o) [0x00000] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/System.Runtime.Caching/ReferenceSources/CacheExpires.cs:69 
  at System.Threading.Timer+Scheduler.TimerCB (System.Object o) [0x00007] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/corlib/System.Threading/Timer.cs:327 


Was running EventStore ClientAPI nuget trying to reconnect to a server.
Comment 1 Vlad Brezae 2016-09-23 17:26:46 UTC
A very similar crash in EventWaitHandle was fixed on 4.6. Please let us know if you run into it again. Marking as fixed for now.