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.
I have been having a lot of issues with SEG Faults and crashes as the same as this bug:
The workaround in that thread suggested using the Boehm GC.
I have tried putting this flag however the flag `--gc=boehm` does not seem to work?
This is the sample console application code I'm using to detect which GC is in use:
if (GC.MaxGeneration == 0)
However when invoking this on the command line:
mono --gc=boehm test.exe
it always prints `Sgen`
My mono version is:
Mono JIT compiler version 4.0.2 (Stable 220.127.116.11/c99aa0c Wed Jun 24 10:04:37 UTC 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
LLVM: supported, not enabled.
my platform is:
Linux workstation01 3.16.0-45-generic #60~14.04.1-Ubuntu SMP Fri Jul 24 21:16:23 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Any help would be most appreciated.
Try executing 'mono-boehm' directly instead.
Many thanks for your suggestion:
I've now tried "mono-boehm" which was not installed as part of mono-complete. After installing "mono-runtime-boehm", Zoltan's suggestion worked.
I think the documentation needs to be changed as it appears that the "--gc=boehm" flag has been depreciated?
Otherwise this is fine to close this bug.
--gc=boehm option works only if mono-boehm is present. Added a warning so we don't silently fail.