Bug 2772 - mono-sgen with --with-large-heap crashes hello world
Summary: mono-sgen with --with-large-heap crashes hello world
Alias: None
Product: Runtime
Classification: Mono
Component: GC ()
Version: unspecified
Hardware: All Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-01-08 09:24 UTC by Matt Newman
Modified: 2012-04-22 22:07 UTC (History)
4 users (show)

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

sample code for program that throws error (385 bytes, application/octet-stream)
2012-01-08 09:24 UTC, Matt Newman
Sample .exe program (11.50 KB, application/octet-stream)
2012-01-08 09:24 UTC, Matt Newman

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:

Description Matt Newman 2012-01-08 09:24:06 UTC
Created attachment 1133 [details]
sample code for program that throws error

After compiling 2.10.8 using the --with-large-heap option, the program immediately crashes with the following:

* Assertion at sgen-gc.c:2506, condition `mono_sgen_need_bridge_processing ()' not met.

This happens for any program, including hello world.  It seems to occur upon exit of the program.

We've attached a simple program that shows this error.
Comment 1 Matt Newman 2012-01-08 09:24:47 UTC
Created attachment 1134 [details]
Sample .exe program
Comment 2 Zoltan Varga 2012-01-09 13:06:17 UTC
You mean the --with-large-heap configure option ? Thats only required for Boehm GC, not sgen.
Comment 3 Zoltan Varga 2012-01-16 14:01:51 UTC
Comment 4 Matt Newman 2012-01-16 14:03:14 UTC
Sorry I thought I replied but it didn't get posted to the bug.  I guess --with-large-heap doesn't make a difference, however either way, I get the same crash listed above with mono-sgen in the latest version.
Comment 5 Zoltan Varga 2012-01-16 14:40:53 UTC
Comment 6 Zoltan Varga 2012-01-16 14:45:32 UTC
Could you try
Comment 7 Zoltan Varga 2012-01-24 00:25:44 UTC
Comment 8 Rodrigo Kumpera 2012-04-22 22:07:21 UTC
This was already fixed on 2.10.9.