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.
Description of Problem:
Mono crashes very fast when trying to create AppDomains in parallel using Parallel.For
It may have the same underlying cause as 13813.
Steps to reproduce the problem:
Parallel.For(0, 10000, i =>
System.Console.WriteLine("\n\nIteration " + i);
AppDomain ad = AppDomain.CreateDomain("ChildDomain");
It crashes quite fast:
Debug info from gdb:
Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operação não permitida.
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
It should terminate properly...
How often does this happen?
Mono JIT compiler version 4.1.0 (master/199cc80 Dom Abr 5 11:19:29 WEST 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
LLVM: supported, not enabled.
The fix to this is part of this PR: https://github.com/mono/mono/pull/1654