[Mono-bugs] [Bug 529238] New: SIGABRT after WARNING **: unknown token type 0

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Aug 7 11:51:04 EDT 2009


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


           Summary: SIGABRT after WARNING **: unknown token type 0
    Classification: Mono
           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: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


1. Compile using dmcs (v4.0)

using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;

    class CConvert {
        static public void Main() {
            Expression MyConvert = Expression.Convert(
                                        Expression.Constant(5.5),
                                        typeof(Int16)
                                    );

            //Should print "Int16".
           
Console.WriteLine(Expression.Lambda<Func<Type>>(Expression.Call(MyConvert,typeof(object).GetMethod("GetType"))).Compile().Invoke().Name);

            if (Expression.Lambda<Func<Type>>(Expression.Call(MyConvert,
typeof(object).GetMethod("GetType"))).Compile().Invoke() != typeof(Int16))
throw new Exception("");
        }
    }

2. mono bug-mono.exe

** (bug-mono.exe:23602): WARNING **: unknown token type 0
**
ERROR:class.c:5501:mono_class_get_full: code should not be reached
Stacktrace:

  at (wrapper managed-to-native) System.Delegate.CreateDelegate_internal
(System.Type,object,System.Reflection.MethodInfo,bool) <0x00004>
  at (wrapper managed-to-native) System.Delegate.CreateDelegate_internal
(System.Type,object,System.Reflection.MethodInfo,bool) <0xffffffff>
  at System.Delegate.CreateDelegate
(System.Type,object,System.Reflection.MethodInfo,bool) <0x0055b>
  at System.Delegate.CreateDelegate
(System.Type,object,System.Reflection.MethodInfo) <0x00015>
  at System.Reflection.Emit.DynamicMethod.CreateDelegate (System.Type,object)
<0x0002a>
  at System.Dynamic.Utils.TypeExtensions.CreateDelegate
(System.Reflection.MethodInfo,System.Type,object) <0x0003d>
  at System.Linq.Expressions.Compiler.LambdaCompiler.CreateDelegate ()
<0x00068>
  at System.Linq.Expressions.Compiler.LambdaCompiler.Compile
(System.Linq.Expressions.LambdaExpression,System.Runtime.CompilerServices.DebugInfoGenerator)
<0x00070>
  at System.Linq.Expressions.Expression`1<object>.Compile () <0x00013>
  at CConvert.Main () <0x000ae>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

    mono [0x80d6032]
    [0xb80a8410]
    /lib/tls/i686/cmov/libc.so.6(abort+0x188) [0xb7e4d098]
    /usr/lib/libglib-2.0.so.0(g_assertion_message+0x123) [0xb8031263]
    mono(mono_class_get_full+0xcc) [0x81105ec]
    mono [0x807a6ae]
    mono [0x806112a]
    mono [0x8062a44]
    mono [0x80633af]
    mono [0x81a9310]
    [0xb6ad9cbd]
    [0xb6ad9894]
    [0xb6ad9326]
    [0xb6ad8f13]
    [0xb6ad8eae]
    [0xb6ad8e01]
    [0xb7201311]
    [0xb7201264]
    [0xb71fc527]
    [0xb71fc1da]
    mono [0x8063495]
    mono(mono_runtime_exec_main+0xe5) [0x8128a05]
    mono(mono_runtime_run_main+0x16b) [0x81291ab]
    mono(mono_main+0x19a5) [0x80b6d95]
    mono [0x805b581]
    /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7e36775]
    mono [0x805b4b1]

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