[Mono-bugs] [Bug 78156][Nor] New - [GMCS] Crash with anonymous
methods and out parameters
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Apr 21 09:25:07 EDT 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by vargaz at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78156
--- shadow/78156 2006-04-21 09:25:07.000000000 -0400
+++ shadow/78156.tmp.9656 2006-04-21 09:25:07.000000000 -0400
@@ -0,0 +1,78 @@
+Bug#: 78156
+Product: Mono: Compilers
+Version: 1.0
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: vargaz at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [GMCS] Crash with anonymous methods and out parameters
+
+Testcase:
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+using System;
+
+public class Tests {
+
+ public delegate bool FilterStackFrame(object o);
+
+ public static void DumpException(FilterStackFrame fsf) {
+ }
+
+ public static void foo (out bool continueInteraction) {
+ continueInteraction = false;
+
+ try {
+ }
+ catch (Exception ex) {
+ DumpException(delegate(object o) {
+ return true;
+ });
+ }
+ }
+
+ public static void Main (String[] args) {
+ bool b;
+
+ foo (out b);
+ }
+}
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+
+Result:
+Exception caught by the compiler while compiling:
+ Block that caused the problem begin at: bug.cs(10,21):
+ Block being compiled: [bug.cs(10,56):,bug.cs(20,2):]
+System.NullReferenceException: A null value was found where an object
+instance was required.
+
+Unhandled Exception: System.NullReferenceException: A null value was found
+where an object instance was required.
+in <0x0000d> Mono.CSharp.MyBitVector:Or (Mono.CSharp.MyBitVector new_vector)
+in <0x00033> Mono.CSharp.FlowBranching+UsageVector:MergeFinally
+(Mono.CSharp.UsageVector f_origins, Mono.CSharp.MyBitVector f_params)
+in <0x00059> Mono.CSharp.FlowBranching+UsageVector:MergeFinally
+(Mono.CSharp.UsageVector f_vector, Mono.CSharp.UsageVector f_origins)
+in <0x00023> Mono.CSharp.FlowBranchingException:Merge ()
+in <0x00011> Mono.CSharp.FlowBranching+UsageVector:MergeChild
+(Mono.CSharp.FlowBranching branching)
+in <0x0001a> Mono.CSharp.FlowBranching:MergeChild
+(Mono.CSharp.FlowBranching child)
+in <0x00021> Mono.CSharp.EmitContext:DoEndFlowBranching ()
+in <0x0000e> Mono.CSharp.EmitContext:EndFlowBranching ()
+in <0x0066b> Mono.CSharp.Try:Resolve (Mono.CSharp.EmitContext ec)
+in <0x001cc> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext ec)
+in <0x00145> Mono.CSharp.EmitContext:ResolveTopBlock
+(Mono.CSharp.EmitContext anonymous_method_host, Mono.CSharp.ToplevelBlock
+block, Mono.CSharp.Parameters ip, IMethodData md, System.Boolean unreachable)
+
+
+This prevents IronPython 1.0 Beta 6 from compiling with gmcs.
More information about the mono-bugs
mailing list