[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


           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
** ERROR:(mini-trampolines.c:67):mono_convert_imt_slot_to_vtable_slot: code
should not be reached

  at System.Linq.Enumerable.Any<object>
(System.Collections.Generic.IEnumerable`1<object>,System.Func`2<object, bool>)
  at System.Linq.Enumerable.Any<object>
(System.Collections.Generic.IEnumerable`1<object>,System.Func`2<object, bool>)
  at Program.Predicate (System.Reflection.MemberInfo,string) <0x00087>
  at Program/<GetMember>c__AnonStorey1.<>m__1 (System.Reflection.MemberInfo)
  at System.Linq.Enumerable.Single<object>
bool>,System.Linq.Enumerable/Fallback) <0x0007d>
  at System.Linq.Enumerable.Single<object>
(System.Collections.Generic.IEnumerable`1<object>,System.Func`2<object, bool>)
  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")]

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