[Mono-bugs] [Bug 352168] New: InternalErrorException: try/catch/ throw inside anonymous delegate
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Jan 7 17:23:14 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=352168
Summary: InternalErrorException: try/catch/throw inside anonymous
delegate
Product: Mono: Compilers
Version: 1.2.6
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at ximian.com
ReportedBy: wasabi at larvalstage.net
QAContact: mono-bugs at ximian.com
Found By: ---
using System;
namespace MonoTest
{
public class MainClass
{
public static void Main(string[] args)
{
Do(delegate ()
{
try
{
}
catch (Exception e)
{
throw;
}
});
}
public static object Do(DoIt d)
{
return d(o);
}
public delegate bool DoIt();
}
}
Exception caught by the compiler while compiling:
Block that caused the problem begin at:
/home/jhaltom/MonoTest/Main.cs(7,36):
Block being compiled:
[/home/jhaltom/MonoTest/Main.cs(8,17):,/home/jhaltom/MonoTest/Main.cs(19,17):]
Mono.CSharp.InternalErrorException: /home/jhaltom/MonoTest/Main.cs(9,28):
Internal compiler error at /home/jhaltom/MonoTest/Main.cs(7,36):: exception
caught while emitting MethodBuilder [MainClass::Main]
Unhandled Exception: Mono.CSharp.InternalErrorException:
/home/jhaltom/MonoTest/Main.cs(9,28): ---> System.NullReferenceException:
Object reference not set to an instance of an object
at Mono.CSharp.Throw.CloneTo (Mono.CSharp.CloneContext clonectx,
Mono.CSharp.Statement t) [0x00000]
at Mono.CSharp.Statement.Clone (Mono.CSharp.CloneContext clonectx) [0x00000]
at Mono.CSharp.Block.CloneTo (Mono.CSharp.CloneContext clonectx,
Mono.CSharp.Statement t) [0x00000]
at Mono.CSharp.ExplicitBlock.CloneTo (Mono.CSharp.CloneContext clonectx,
Mono.CSharp.Statement t) [0x00000]
at Mono.CSharp.Statement.Clone (Mono.CSharp.CloneContext clonectx) [0x00000]
at Mono.CSharp.CloneContext.LookupBlock (Mono.CSharp.Block from) [0x00000]
at Mono.CSharp.Block.CloneTo (Mono.CSharp.CloneContext clonectx,
Mono.CSharp.Statement t) [0x00000]
at Mono.CSharp.ExplicitBlock.CloneTo (Mono.CSharp.CloneContext clonectx,
Mono.CSharp.Statement t) [0x00000]
at Mono.CSharp.Statement.Clone (Mono.CSharp.CloneContext clonectx) [0x00000]
at Mono.CSharp.CloneContext.LookupBlock (Mono.CSharp.Block from) [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.
You are the assignee for the bug.
More information about the mono-bugs
mailing list