[Mono-bugs] [Bug 461261] New: Runtime crash
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Dec 20 22:56:52 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=461261
Summary: Runtime crash
Product: Mono: Runtime
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: JIT
AssignedTo: lupus at novell.com
ReportedBy: miguel at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
The included program crashes the runtime like this:
System.Array.InternalEnumerator<ICode> doesn't implement interface
System.Collections.Generic.IEnumerator<System.Object>
**
** ERROR:(mini-trampolines.c:67):mono_convert_imt_slot_to_vtable_slot: code
should not be reached
Stacktrace:
at System.Linq.Enumerable.Any<object>
(System.Collections.Generic.IEnumerable`1<object>,System.Func`2<object, bool>)
<0xffffffff>
at System.Linq.Enumerable.Any<object>
(System.Collections.Generic.IEnumerable`1<object>,System.Func`2<object, bool>)
<0x0005f>
at Program.Predicate (System.Reflection.MemberInfo,string) <0x00087>
at Program/<GetMember>c__AnonStorey1.<>m__1 (System.Reflection.MemberInfo)
<0x0001f>
at System.Linq.Enumerable.Single<object>
(System.Collections.Generic.IEnumerable`1<object>,System.Func`2<object,
bool>,System.Linq.Enumerable/Fallback) <0x0007d>
at System.Linq.Enumerable.Single<object>
(System.Collections.Generic.IEnumerable`1<object>,System.Func`2<object, bool>)
<0x0003f>
at Program.GetMember (string) <0x00083>
at Program.Main () <0x0001f>
at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
using System;
using System.Linq;
using System.Reflection;
public interface ICode
{
string Code { get; }
}
public class LanguageCodeAttribute : Attribute, ICode
{
public string Code { get; private set; }
public LanguageCodeAttribute (string code)
{
Code = code;
}
}
public enum Languages
{
[LanguageCode ("en")]
English
}
static class Program
{
static bool Predicate (MemberInfo info, string code)
{
return info.GetCustomAttributes (typeof (ICode), false).
Any (x => ((ICode) x).Code == code);
}
public static void GetMember (string code)
{
MemberInfo info = typeof (Languages).GetMembers ().
Single (x => Predicate (x, code));
}
public static void Main ()
{
GetMember ("en");
}
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list