[Mono-bugs] [Bug 34048][Maj] New - mcs crashing

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
15 Nov 2002 00:50:08 -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 fgonthier@hermes.usherb.ca.

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

--- shadow/34048	Thu Nov 14 19:50:08 2002
+++ shadow/34048.tmp.16993	Thu Nov 14 19:50:08 2002
@@ -0,0 +1,81 @@
+Bug#: 34048
+Product: Mono/MCS
+Version: unspecified
+OS: Debian Woody
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: fgonthier@hermes.usherb.ca               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs crashing
+
+Description of Problem:
+
+I get this huge error compiling simple code:
+
+Unhandled Exception: System.NullReferenceException: A null value was found 
+where an object instance was required
+in (unmanaged) 06 System.Reflection.MonoField:GetValueInternal (object)
+in <0x00004> 06 System.Reflection.MonoField:GetValueInternal (object)
+in <0x00011> 00 System.Reflection.MonoField:GetValue (object)
+in <0x003bd> 00 Mono.CSharp.MemberAccess:ResolveMemberAccess 
+(Mono.CSharp.EmitContext,Mono.CSharp.Expression,Mono.CSharp.Expression,Mono
+.CSharp.Location,Mono.CSharp.Expression)
+in <0x0075b> 00 Mono.CSharp.MemberAccess:DoResolve 
+(Mono.CSharp.EmitContext,Mono.CSharp.Expression,Mono.CSharp.ResolveFlags)
+in <0x0001b> 00 Mono.CSharp.MemberAccess:DoResolve 
+(Mono.CSharp.EmitContext)
+in <0x00150> 00 Mono.CSharp.Expression:Resolve 
+(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags)
+in <0x00021> 00 Mono.CSharp.Cast:DoResolve (Mono.CSharp.EmitContext)
+in <0x00150> 00 Mono.CSharp.Expression:Resolve 
+(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags)
+in <0x00132> 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 <0x0025d> 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 <0x005e9> 00 Mono.CSharp.MethodData:Emit 
+(Mono.CSharp.TypeContainer,Mono.CSharp.Block,object)
+in <0x0001f> 00 Mono.CSharp.Method:Emit (Mono.CSharp.TypeContainer)
+in <0x00299> 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[])
+
+
+** ERROR **: file exception.c: line 398 (arch_handle_exception): assertion 
+failed: (end_of_stack)
+aborting...
+/home/neumann/monocvs/install/bin/mcs: line 2:  9804 
+Aborted                 /home/neumann/monocvs/install/bin/mono /home/neuman
+n/monocvs/install/bin/mcs.exe "$@"
+
+Steps to reproduce the problem:
+
+Compile this with 
+
+mcs -r System.Windows.Forms.dll [...]
+
+using System;
+using System.Windows.Forms;
+
+public class HelloWorld {
+	public static void Main(string[] args) {
+		CreateParams cp = new CreateParams();
+		
+		cp.Style = (int) (Win32.WS_VSCROLL);
+	}
+}
+
+This thing compiled few days ago.  Now it fails every single time.