[Mono-bugs] [Bug 594942] New: ** ERROR **: compute_class_bitmap: Invalid type 13 for field C`1[T]:Target

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Apr 8 14:33:47 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=594942

http://bugzilla.novell.com/show_bug.cgi?id=594942#c0


           Summary: ** ERROR **: compute_class_bitmap: Invalid type 13 for
                    field C`1[T]:Target
    Classification: Mono
           Product: Mono: Runtime
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: JIT
        AssignedTo: lupus at novell.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Compile & Run

using System;
using System.Reflection;

class C<T>
{
    public T Target;
    public const int val = 2;
}

class MyClass
{
    public static void Main()
    {
        FieldInfo myf = typeof(C<>).GetField("val");
        Console.WriteLine(myf.GetValue(null));
    }
}


** ERROR **: compute_class_bitmap: Invalid type 13 for field C`1[T]:Target

aborting...
Stacktrace:

  at (wrapper managed-to-native) System.Reflection.MonoField.GetValueInternal
(System.Reflection.MonoField*,object) <0x00004>
  at (wrapper managed-to-native) System.Reflection.MonoField.GetValueInternal
(System.Reflection.MonoField*,object) <0x00004>
  at System.Reflection.MonoField.GetValue (object) <0x0004b>
  at MyClass.Main () <0x00032>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0x0003a>

Native stacktrace:

    mono [0x80d9314]
    [0xe0a410]
    /lib/tls/i686/cmov/libc.so.6(abort+0x182) [0x1f9932]
    /lib/libglib-2.0.so.0 [0x55a046]
    /lib/libglib-2.0.so.0(g_log+0x26) [0x55a076]
    mono [0x8141a29]
    mono [0x8142908]
    mono [0x8142cf1]
    mono [0x81c21f4]
    [0xfad7bc]
    [0xfad6a4]
    [0xfad1c3]
    [0xfad22b]
    mono [0x8064721]
    mono(mono_runtime_invoke+0x40) [0x8140b70]
    mono(mono_runtime_exec_main+0xd6) [0x8144246]
    mono(mono_runtime_run_main+0x112) [0x8147c62]
    mono(mono_main+0x1971) [0x80b6b41]
    mono [0x805b565]
    /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x1e2b56]
    mono [0x805b4a1]

-- 
Configure bugmail: http://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