Bug 4095 - * Assertion at class.c:7879, condition `ac->rank' not met
Summary: * Assertion at class.c:7879, condition `ac->rank' not met
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: JIT ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-03-26 09:56 UTC by Sebastien Pouliot
Modified: 2012-03-28 06:09 UTC (History)
3 users (show)

Tags:
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 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:
Status:
RESOLVED FIXED

Description Sebastien Pouliot 2012-03-26 09:56:54 UTC
Using Mono 'master' try to run the unit tests for Mono.Security, e.g.

% cd mcs/class/Mono.Security
% make run-test

...

NUnit version 2.4.8
Copyright (C) 2002-2007 Charlie Poole.
Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.

Runtime Environment - 
   OS Version: Unix 3.0.0.16
  CLR Version: 4.0.30319.17020 ( 2.11 (master/a5f5025 Mon Mar 26 09:24:28 EDT 2012) )

Excluded categories: NotWorking,ValueAdd,CAS,InetAccess
.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N...........................................................................................................................................................................................................................................................N.N.....N...N......N.N..............N..N.N.N.N.N.N.N.............................................................* Assertion at class.c:7879, condition `ac->rank' not met

Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Array.ClearInternal (System.Array,int,int) <IL 0x00023, 0xffffffff>
  at System.Array.Clear (System.Array,int,int) [0x0005b] in /home/user/git/mono/mcs/class/corlib/System/Array.cs:910
  at Mono.Security.Authenticode.PrivateKey.Save (string,string) [0x0011e] in /home/user/git/mono/mcs/class/Mono.Security/Mono.Security.Authenticode/PrivateKey.cs:209
  at MonoTests.Mono.Security.Authenticode.PrivateKeyTest.ConvertToPasswordWeak () [0x00023] in /home/user/git/mono/mcs/class/Mono.Security/Test/Mono.Security.Authenticode/PrivateKeyTest.cs:163
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <IL 0x0004e, 0xffffffff>
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <IL 0x00030, 0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) [0x000d5] in /home/user/git/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:227
  at System.Reflection.MethodBase.Invoke (object,object[]) [0x00000] in /home/user/git/mono/mcs/class/corlib/System.Reflection/MethodBase.cs:101
  at NUnit.Core.Reflect.InvokeMethod (System.Reflection.MethodInfo,object,object[]) [0x0000c] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/Reflect.cs:412
  at NUnit.Core.Reflect.InvokeMethod (System.Reflection.MethodInfo,object) [0x00000] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/Reflect.cs:397
  at NUnit.Core.TestMethod.RunTestMethod (NUnit.Core.TestCaseResult) [0x00000] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/TestMethod.cs:254
  at NUnit.Core.TestMethod.doTestCase (NUnit.Core.TestCaseResult) [0x00000] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/TestMethod.cs:237
  at NUnit.Core.TestMethod.doRun (NUnit.Core.TestCaseResult) [0x00028] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/TestMethod.cs:195
  at NUnit.Core.TestMethod.Run (NUnit.Core.TestCaseResult) [0x00077] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/TestMethod.cs:164
  at NUnit.Core.NUnitTestMethod.Run (NUnit.Core.TestCaseResult) [0x00000] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/NUnitTestMethod.cs:32
  at NUnit.Core.TestCase.Run (NUnit.Core.EventListener) [0x0004f] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/TestCase.cs:58
  at NUnit.Core.TestCase.Run (NUnit.Core.EventListener,NUnit.Core.ITestFilter) [0x00000] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/TestCase.cs:42
  at NUnit.Core.TestSuite.RunAllTests (NUnit.Core.TestSuiteResult,NUnit.Core.EventListener,NUnit.Core.ITestFilter) [0x00071] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/TestSuite.cs:288
  at NUnit.Core.TestSuite.Run (NUnit.Core.EventListener,NUnit.Core.ITestFilter) [0x0008c] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/TestSuite.cs:166
  at NUnit.Core.TestFixture.Run (NUnit.Core.EventListener,NUnit.Core.ITestFilter) [0x00016] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/TestFixture.cs:35
  at NUnit.Core.TestSuite.RunAllTests (NUnit.Core.TestSuiteResult,NUnit.Core.EventListener,NUnit.Core.ITestFilter) [0x00071] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/TestSuite.cs:288
  at NUnit.Core.TestSuite.Run (NUnit.Core.EventListener,NUnit.Core.ITestFilter) [0x0008c] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/TestSuite.cs:166
  at NUnit.Core.TestSuite.RunAllTests (NUnit.Core.TestSuiteResult,NUnit.Core.EventListener,NUnit.Core.ITestFilter) [0x00071] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/TestSuite.cs:288
  at NUnit.Core.TestSuite.Run (NUnit.Core.EventListener,NUnit.Core.ITestFilter) [0x0008c] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/TestSuite.cs:166
  at NUnit.Core.TestSuite.RunAllTests (NUnit.Core.TestSuiteResult,NUnit.Core.EventListener,NUnit.Core.ITestFilter) [0x00071] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/TestSuite.cs:288
  at NUnit.Core.TestSuite.Run (NUnit.Core.EventListener,NUnit.Core.ITestFilter) [0x0008c] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/TestSuite.cs:166
  at NUnit.Core.TestSuite.RunAllTests (NUnit.Core.TestSuiteResult,NUnit.Core.EventListener,NUnit.Core.ITestFilter) [0x00071] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/TestSuite.cs:288
  at NUnit.Core.TestSuite.Run (NUnit.Core.EventListener,NUnit.Core.ITestFilter) [0x0008c] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/TestSuite.cs:166
  at NUnit.Core.TestSuite.RunAllTests (NUnit.Core.TestSuiteResult,NUnit.Core.EventListener,NUnit.Core.ITestFilter) [0x00071] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/TestSuite.cs:288
  at NUnit.Core.TestSuite.Run (NUnit.Core.EventListener,NUnit.Core.ITestFilter) [0x0008c] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/TestSuite.cs:166
  at NUnit.Core.SimpleTestRunner.Run (NUnit.Core.EventListener,NUnit.Core.ITestFilter) [0x0002d] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/SimpleTestRunner.cs:145
  at NUnit.Core.TestRunnerThread.TestRunnerThreadProc () [0x00000] in /home/user/git/mono/mcs/nunit24/NUnitCore/core/TestRunnerThread.cs:153
  at System.Threading.Thread.StartInternal () [0x00016] in /home/user/git/mono/mcs/class/corlib/System.Threading/Thread.cs:780
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <IL 0x0004e, 0xffffffff>

Native stacktrace:

	/home/user/git/mono/mono/mini/mono() [0x80e8f54]
	[0x4002040c]
	[0x40020416]
	/lib/i386-linux-gnu/libc.so.6(gsignal+0x4f) [0x400b3c8f]
	/lib/i386-linux-gnu/libc.so.6(abort+0x175) [0x400b72b5]
	/home/user/git/mono/mono/mini/mono() [0x822d72d]
	/home/user/git/mono/mono/mini/mono() [0x822d7b3]
	/home/user/git/mono/mono/mini/mono() [0x8142c98]
	/home/user/git/mono/mono/mini/mono() [0x816b66b]
	[0x4148841c]
	[0x41488310]
	[0x41b7e544]
	[0x41b81b70]
	[0x4148c1f9]
	/home/user/git/mono/mono/mini/mono() [0x80655cc]

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.
No threads.

=================================================================
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.
=================================================================


This used to work (no recent source changes in the code/tests). The above was executed on Linux but it crash too on OSX (but the assert text is not printed).
Comment 1 Zoltan Varga 2012-03-28 06:09:37 UTC
Fixed in master.