Bug 2594 - Assertion in GC.Collect()
Summary: Assertion in GC.Collect()
Alias: None
Product: Android
Classification: Xamarin
Component: Mono runtime / AOT Compiler ()
Version: 4.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2011-12-21 02:45 UTC by Nikita Kareev
Modified: 2012-07-01 16:53 UTC (History)
3 users (show)

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 Developer Community or GitHub 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:

Description Nikita Kareev 2011-12-21 02:45:41 UTC
There is an assertion occurs when calling GC.Collect():

12-20 11:15:22.719: A/(23074): * Assertion: should not be reached at ../../../../mono/metadata/sgen-marksweep.c:279

12-20 10:51:39.609: I/mono(22753): Stacktrace:
12-20 10:51:39.609: I/mono(22753):   at System.Collections.Generic.List`1.AsReadOnly () <0x00023>
Comment 1 Rodrigo Kumpera 2011-12-21 19:02:14 UTC
Please provide a test case that shows it.
Comment 2 Jonathan Pryor 2012-07-01 16:53:53 UTC
Closing, as reported fixed in Bug 2593 Comment #2.