[Mono-bugs] [Bug 78713][Maj] New - Instancing an interface causes a unhandled compiler exception

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jun 26 16:49:16 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 spam at codecreator.net.

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

--- shadow/78713	2006-06-26 16:49:15.000000000 -0400
+++ shadow/78713.tmp.17236	2006-06-26 16:49:15.000000000 -0400
@@ -0,0 +1,67 @@
+Bug#: 78713
+Product: Mono: Compilers
+Version: 1.1
+OS: unknown
+OS Details: Gentoo, Kernel Linux 2.6.15-r1, maybe all since its the compiler
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: spam at codecreator.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Instancing an interface causes a unhandled compiler exception
+
+Description of Problem:
+
+Compiling a small 300 line sourcefile causes a unhandled exception in the compiler.
+The code tries to instance an interface (IList). Tested on 1.1.13.2 and 1.1.13.6, both fail.
+
+You can get the code and the errormessage from:
+http://www.codecreator.net/wiki/index.php?n=Main.Mono?action=print
+
+Steps to reproduce the problem:
+1. Get SmartIrc4net from http://smartirc4net.meebey.net
+2. Replace the code in examples/test/test.cs with my code from
+http://www.codecreator.net/wiki/index.php?n=Main.Mono?action=print
+3. Run make
+
+Actual Results:
+
+mcs /r:../../bin/mono/release/Meebey.SmartIrc4net.dll /out:../../bin/mono/release/test.exe 
+AssemblyInfo.cs test.cs
+Exception caught by the compiler while compiling:
+   Block that caused the problem begin at: test.cs(195,18):
+                     Block being compiled: [test.cs(221,3):,test.cs(225,3):]
+System.IndexOutOfRangeException: Array index is out of range.
+
+Unhandled Exception: System.IndexOutOfRangeException: Array index is out of range.
+in <0x00040> Mono.CSharp.AttributeTester:GetCoClassAttribute (System.Type type)
+in <0x0003b> Mono.CSharp.New:CheckComImport (Mono.CSharp.EmitContext ec)
+in <0x0024a> Mono.CSharp.New:DoResolve (Mono.CSharp.EmitContext ec)
+in <0x000e3> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec, ResolveFlags 
+flags)
+in <0x00012> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec)
+in <0x000d7> Mono.CSharp.Assign:DoResolve (Mono.CSharp.EmitContext ec)
+in <0x000e3> 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 <0x001d9> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext ec)
+in <0x00287> Mono.CSharp.If:Resolve (Mono.CSharp.EmitContext ec)
+in <0x001d9> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext ec)
+in <0x001d9> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext ec)
+in <0x001d9> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext ec)
+in <0x00122> Mono.CSharp.EmitContext:ResolveTopBlock (Mono.CSharp.EmitContext 
+anonymous_method_host, Mono.CSharp.ToplevelBlock block, Mono.CSharp.Parameters ip, 
+IMethodData md, System.Boolean unreachable)
+make: *** [release] Fehler 1
+
+How often does this happen? 
+Everytime, 100% reproducible.


More information about the mono-bugs mailing list