[Mono-bugs] [Bug 428309] New: SLE: System.InvalidProgramException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Sep 22 07:04:39 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=428309


           Summary: SLE: System.InvalidProgramException
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Core
        AssignedTo: jbevain at novell.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


compile & run

using System;
using System.Linq.Expressions;

class C
{
        public static void Main ()
        {
                Expression<Func<bool>> e = () => Console.WriteLine ("X") is
object;
                Console.WriteLine (e.Compile()());
        }
}


Actual result:

Unhandled Exception: System.InvalidProgramException: Invalid IL code in
(wrapper dynamic-method)
System.Runtime.CompilerServices.ExecutionScope:lambda_method
(System.Runtime.CompilerServices.ExecutionScope): IL_000a: box       0x00000005


  at (wrapper managed-to-native) System.Delegate:CreateDelegate_internal
(System.Type,object,System.Reflection.MethodInfo)
  at System.Delegate.CreateDelegate (System.Type type, System.Object
firstArgument, System.Reflection.MethodInfo method, Boolean throwOnBindFailure)
[0x00000] 
  at System.Delegate.CreateDelegate (System.Type type, System.Object
firstArgument, System.Reflection.MethodInfo method) [0x00000] 
  at System.Reflection.Emit.DynamicMethod.CreateDelegate (System.Type
delegateType, System.Object target) [0x00000] 
  at System.Linq.Expressions.EmitContext.CreateDelegate
(System.Runtime.CompilerServices.ExecutionScope scope) [0x00000] 
  at System.Linq.Expressions.CompilationContext.CreateDelegate (Int32 unit,
System.Runtime.CompilerServices.ExecutionScope scope) [0x00000] 
  at System.Linq.Expressions.CompilationContext.CreateDelegate () [0x00000] 
  at System.Linq.Expressions.LambdaExpression.Compile () [0x00000] 
  at
System.Linq.Expressions.Expression`1[System.Func`1[System.Boolean]].Compile ()
[0x00000] 
  at C.Main () [0x00000]


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