[Mono-bugs] [Bug 75628][Nor] New - Compiler crash on error.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Jul 24 18:56:59 EDT 2005


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 miguel at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=75628

--- shadow/75628	2005-07-24 18:56:59.000000000 -0400
+++ shadow/75628.tmp.20685	2005-07-24 18:56:59.000000000 -0400
@@ -0,0 +1,76 @@
+Bug#: 75628
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: miguel at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Compiler crash on error.
+
+The compiler crashes when compiling this buggy program:
+
+using System;
+
+namespace System.Web.Configuration
+{
+	class MachineKeyConfig
+	{
+		static MachineKeyConfig ()
+		{
+			autogenerated = new byte [64];
+			RNGCryptoServiceProvider cp = new RNGCryptoServiceProvider ();
+			cp.GetBytes (autogenerated);
+		}
+	}
+}
+
+It produces:
+/tmp/aa.cs(11) error CS0246: The type or namespace name
+`RNGCryptoServiceProvider' could not be found. Are you missing a using
+directive or an assembly reference?
+/tmp/aa.cs(10) error CS0246: The type or namespace name `autogenerated'
+could not be found. Are you missing a using directive or an assembly reference?
+/tmp/aa.cs(10) error CS0103: The name `autogenerated' does not exist in the
+context of `System.Web.Configuration.MachineKeyConfig'
+/tmp/aa.cs(11) error CS0246: The type or namespace name
+`RNGCryptoServiceProvider' could not be found. Are you missing a using
+directive or an assembly reference?
+Exception caught by the compiler while compiling:
+   Block that caused the problem begin at: /tmp/aa.cs: (8)
+                     Block being compiled: [/tmp/aa.cs: (11),Internal: (1)]
+System.ArgumentNullException: null key
+Parameter name: key
+
+Unhandled Exception: System.ArgumentNullException: null key
+Parameter name: key
+in <0x00158> System.Collections.Hashtable:get_Item (System.Object key)
+in <0x00030> Mono.CSharp.AttributeTester:GetObsoleteAttribute (System.Type
+type)
+in <0x0000f> Mono.CSharp.Expression:CheckObsoleteAttribute (System.Type type)
+in <0x0003c> Mono.CSharp.LocalVariableReference:DoResolveLValue
+(Mono.CSharp.EmitContext ec, Mono.CSharp.Expression right_side)
+in <0x00022> Mono.CSharp.Expression:ResolveLValue (Mono.CSharp.EmitContext
+ec, Mono.CSharp.Expression right_side, Location loc)
+in <0x0011c> Mono.CSharp.Assign:DoResolve (Mono.CSharp.EmitContext ec)
+in <0x000c4> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec,
+ResolveFlags flags)
+in <0x00012> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec)
+in <0x00013> Mono.CSharp.ExpressionStatement:ResolveStatement
+(Mono.CSharp.EmitContext ec)
+in <0x0001f> Mono.CSharp.StatementExpression:Resolve
+(Mono.CSharp.EmitContext ec)
+in <0x0014b> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext ec)
+in <0x0014b> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext ec)
+in <0x00111> Mono.CSharp.EmitContext:ResolveTopBlock
+(Mono.CSharp.EmitContext anonymous_method_host, Mono.CSharp.ToplevelBlock
+block, Mono.CSharp.InternalParameters ip, IMethodData md, System.Boolean
+unreachable)


More information about the mono-bugs mailing list