[Mono-bugs] [Bug 31815][Nor] New - mcs crashes on this example with "params"

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
6 Oct 2002 04:05:58 -0000


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 a.guru@sympatico.ca.

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

--- shadow/31815	Sun Oct  6 00:05:58 2002
+++ shadow/31815.tmp.10774	Sun Oct  6 00:05:58 2002
@@ -0,0 +1,61 @@
+Bug#: 31815
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: a.guru@sympatico.ca               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs crashes on this example with "params"
+
+The source file is from some tutorial on C#.  Mono 0.15 had the same
+problem.  I will attach the file to the bug report.
+
+
+bash$ rpm -q mono mono-devel libgc libgc-devel
+mono-0.16-1
+mono-devel-0.16-1
+libgc-6.1-1
+libgc-devel-6.1-1
+bash$ uname -a
+Linux localhost.localdomain 2.4.19 #2 Mon Aug 26 15:01:53 EDT 2002 i686 unknown
+bash$ head -1 /etc/issue
+Red Hat Linux release 7.3 (Valhalla)
+bash$ mcs MethodParams.cs
+
+Unhandled Exception: System.NullReferenceException: A null value was found
+where an object instance was required
+in <0x00058> 00 Mono.CSharp.FlowBranching:SetParameterAssigned (int,string)
+in <0x0007c> 00 Mono.CSharp.ParameterReference:SetFieldAssigned
+(Mono.CSharp.EmitContext,string)
+in <0x00074> 00 Mono.CSharp.FieldExpr:DoResolveLValue
+(Mono.CSharp.EmitContext,Mono.CSharp.Expression)
+in <0x007a2> 00 Mono.CSharp.MemberAccess:DoResolve
+(Mono.CSharp.EmitContext,Mono.CSharp.Expression,Mono.CSharp.ResolveFlags)
+in <0x00019> 00 Mono.CSharp.MemberAccess:DoResolveLValue
+(Mono.CSharp.EmitContext,Mono.CSharp.Expression)
+in <0x00026> 00 Mono.CSharp.Expression:ResolveLValue
+(Mono.CSharp.EmitContext,Mono.CSharp.Expression)
+in <0x002aa> 00 Mono.CSharp.Assign:DoResolve (Mono.CSharp.EmitContext)
+in <0x00150> 00 Mono.CSharp.Expression:Resolve
+(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags)
+in <0x00019> 00 Mono.CSharp.StatementExpression:Resolve
+(Mono.CSharp.EmitContext)
+in <0x00118> 00 Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext)
+in <0x00100> 00 Mono.CSharp.EmitContext:EmitTopBlock
+(Mono.CSharp.Block,Mono.CSharp.InternalParameters,Mono.CSharp.Location)
+in <0x005c5> 00 Mono.CSharp.MethodData:Emit
+(Mono.CSharp.TypeContainer,Mono.CSharp.Block,object)
+in <0x0001f> 00 Mono.CSharp.Method:Emit (Mono.CSharp.TypeContainer)
+in <0x0027b> 00 Mono.CSharp.TypeContainer:Emit ()
+in <0x004da> 00 Mono.CSharp.RootContext:EmitCode ()
+in <0x00732> 00 Mono.CSharp.Driver:MainDriver (string[])
+in <0x0000b> 00 Mono.CSharp.Driver:Main (string[])