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:
When running the test suite for NetSerializer, a serializer library, mono crashes in a GC.Collect() call.
NetSerializer can be found from git://github.com/tomba/netserializer.git and the HEAD I was using for tests is ffbf94fcc15686f8eadec3f2c5b10a8a92127057
I'm running Ubuntu 11.04, kernel is:
Linux deskari 2.6.38-13-generic #57-Ubuntu SMP Mon Mar 5 18:29:54 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Mono I'm using is:
Mono JIT compiler version 2.11 (tarball Fri Mar 23 09:52:17 EET 2012)
Copyright (C) 2002-2011 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
LLVM: supported, not enabled.
GC: Included Boehm (with typed GC and Parallel Mark)
Steps to reproduce the problem:
1. Compile NetSerializer: xbuild /p:Configuration=Release
2. Run: mono ./Test/bin/Release/Test.exe
3. Repeat a few times, until crashes
== 5000 ByteArrayMessage ==
NetSerializer | MemStream Serialize | 380 | 0 0 0 | 251267200 |
NetSerializer | MemStream Deserialize | 83 | 0 0 0 | |
at <unknown> <0xffffffff>
at (wrapper managed-to-native) System.GC.InternalCollect (int) <0xffffffff>
at System.GC.Collect () <0x00010>
at Test.Program.Test (Test.IMemStreamTest,Test.MessageBase) <0x00044>
at Test.Program.RunTests (System.Type,int) <0x000e7>
at Test.Program.Main (string) <0x0020f>
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>
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: Operation not permitted.
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
How often does this happen?
Sometimes. Perhaps 1/10 of the test runs. It seems to always happen at the same spot, in ByteArrayMessage test.
I can't reproduce this with trunk.
Can you repro with 2.12.1.
Where can I find 2.12.1? Latest I can find is 2.11.2.
Sorry, I mean 2.11.2.
I can reproduce this with 2.11.2 (HEAD today, 8960ec52a54a884c9bc00c181984e1cc0c925777). I needed perhaps 5 runs of the test suite to get the crash.