Bug 13434 - * Assertion at class.c:5592, condition `!mono_loader_get_last_error ()' not met
Summary: * Assertion at class.c:5592, condition `!mono_loader_get_last_error ()' not met
Status: RESOLVED DUPLICATE of bug 13435
Alias: None
Product: Runtime
Classification: Mono
Component: Reflection ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Rodrigo Kumpera
Depends on:
Reported: 2013-07-24 07:51 UTC by Marek Safar
Modified: 2013-07-27 20:56 UTC (History)
2 users (show)

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

test file (6.00 KB, application/x-msdownload)
2013-07-24 07:51 UTC, Marek Safar

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 Marek Safar 2013-07-24 07:51:45 UTC
Created attachment 4413 [details]
test file

using System;
using System.Reflection;
using System.Collections.Generic;

namespace test5
	public class MainClass
		static CustomAttributeData FindAttribute (IList<CustomAttributeData> attributesData, string attrName, string attrNamespace)
			if (attributesData.Count == 0)
				return null;

			foreach (var attr in attributesData) {
				var dt = attr.Constructor.DeclaringType;
				if (dt.Name == attrName && dt.Namespace == attrNamespace)
					return attr;

			return null;

		public static void Main (string[] args)
			var a = Assembly.LoadFile ("test-ps-018.exe");
			var t = a.GetType ("_root.ConstantFields");
			var p = t.GetProperty ("cs9");

			var attributes = CustomAttributeData.GetCustomAttributes (p);

			var data = FindAttribute (attributes, "ConstantFieldAttribute", "PlayScript.Runtime.CompilerServices");
			if (data != null) {
				if (data.ConstructorArguments.Count == 1) {


Comment 1 Zoltan Varga 2013-07-27 20:56:17 UTC

*** This bug has been marked as a duplicate of bug 13435 ***