[Mono-bugs] [Bug 80960][Maj] New - NullReferenceException while compiling compiz-sharp

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Feb 25 21:40:53 EST 2007


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 slomo at ubuntu.com.

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

--- shadow/80960	2007-02-25 21:40:53.000000000 -0500
+++ shadow/80960.tmp.29620	2007-02-25 21:40:53.000000000 -0500
@@ -0,0 +1,81 @@
+Bug#: 80960
+Product: Mono: Compilers
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: slomo at ubuntu.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: NullReferenceException while compiling compiz-sharp
+
+Hi,
+when compiling compiz-sharp with gmcs from mono 1.2.3.1 one gets a
+NullReferenceException...
+
+Tarball of sources is at:
+http://librarian.launchpad.net/6527002/gmcs-fails.tar.gz
+
+Can be compiled with:
+gmcs -debug -d:TRACE -unsafe -out:compiz-sharp.dll -t:library Display.cs
+Icon.cs Option.cs Plugin.cs PluginLoader.cs Screen.cs Texture.cs Window.cs
+Image.cs
+
+Output:
+Exception caught by the compiler while compiling:
+   Block that caused the problem begin at: Screen.cs(173,45):
+                     Block being compiled: [Screen.cs(178,9):,Internal(1,1):]
+System.NullReferenceException: Object reference not set to an instance of
+an object
+Exception caught by the compiler while compiling:
+   Block that caused the problem begin at: Screen.cs(166,4):
+                     Block being compiled: [Screen.cs(173,7):,Internal(1,1):]
+System.NullReferenceException: Object reference not set to an instance of
+an object
+
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+  at Mono.CSharp.ScopeInfo.CreateScope (Mono.CSharp.Block block) [0x00000] 
+  at Mono.CSharp.Block.CreateScopeInfo () [0x00000] 
+  at Mono.CSharp.LocalVariableReference.DoResolveBase
+(Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.LocalVariableReference.DoResolve (Mono.CSharp.EmitContext
+ec) [0x00000] 
+  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec,
+ResolveFlags flags) [0x00000] 
+  at Mono.CSharp.SimpleName.DoSimpleNameResolve (Mono.CSharp.EmitContext
+ec, Mono.CSharp.Expression right_side, Boolean intermediate) [0x00000] 
+  at Mono.CSharp.SimpleName.SimpleNameResolve (Mono.CSharp.EmitContext ec,
+Mono.CSharp.Expression right_side, Boolean intermediate) [0x00000] 
+  at Mono.CSharp.SimpleName.DoResolve (Mono.CSharp.EmitContext ec, Boolean
+intermediate) [0x00000] 
+  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec,
+ResolveFlags flags) [0x00000] 
+  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Assign.DoResolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec,
+ResolveFlags flags) [0x00000] 
+  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.ExpressionStatement.ResolveStatement
+(Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.StatementExpression.Resolve (Mono.CSharp.EmitContext ec)
+[0x00000] 
+  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Unsafe.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.EmitContext.ResolveTopBlock (Mono.CSharp.EmitContext
+anonymous_method_host, Mono.CSharp.ToplevelBlock block,
+Mono.CSharp.Parameters ip, IMethodData md, System.Boolean& unreachable)
+[0x00000]
+
+Bye
+
+Ubuntu Bug: https://launchpad.net/ubuntu/+source/mono/+bug/87736


More information about the mono-bugs mailing list