gmcs fails with an Unhandled Exception

Bug #87736 reported by Chris Halse Rogers
4
Affects Status Importance Assigned to Milestone
mono
Invalid
Unknown
mono (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: mono-gmcs

Version: 1.2.3.1-0ubuntu1

Attempting to compile the mono component of compiz-sharp results in the following exceptions:

chris@Burninator:~/Devel/compiz-sharp/src$ make
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
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]
make: *** [compiz-sharp.dll] Error 1

Revision history for this message
Chris Halse Rogers (raof) wrote :
description: updated
Revision history for this message
Sebastian Dröge (slomo) wrote :
Changed in mono:
status: Unconfirmed → Confirmed
Changed in mono:
status: Unknown → Rejected
Revision history for this message
Sebastian Dröge (slomo) wrote :

Ok, this is fixed upstream now... if someone can identify which SVN revision fixes this I'll backport the patch, otherwise we have to wait until the next mono release.

Changed in mono:
status: Confirmed → Fix Committed
Revision history for this message
Chris Halse Rogers (raof) wrote :

SVN log tells me that the fix is in:
r73375 | marek | 2007-02-24 05:59:02 +1100 (Sat, 24 Feb 2007) | 5 lines

2007-02-23 Marek Safar <email address hidden>

        A fix for bug #80878
        * class.cs, cs-parser.jay: Event property can host anonymous methods.

Sebastian Dröge (slomo)
Changed in mono:
importance: Undecided → Medium
Revision history for this message
Chris Halse Rogers (raof) wrote :

Is the "fix committed" status of this bug an indication that you've got a fixed package waiting for a couple of extra patches before it gets uploaded? It has been a month, and the current mono-gmcs (1.2.3.1-1ubuntu1) still has the same bug.

Would it be useful for me to backport the patch and attach a debdiff to this bug? I'd really quite like to be able to build compiz-sharp sometime :)

Revision history for this message
Chris Halse Rogers (raof) wrote :

In case it makes it any easier, here's a debdiff that applies the patch from SVN.

It doesn't seem to break anything for me, and allows gmcs to build the files in the tarball.

Revision history for this message
Chris Halse Rogers (raof) wrote :

I've done some more testing of the debdiff'd package, if it helps at all. They successfully build banshee, f-spot, and beagle.

Changed in mono:
assignee: nobody → ubuntu-main-sponsors
Revision history for this message
William Grant (wgrant) wrote : Re: [Bug 87736] Re: gmcs fails with an Unhandled Exception

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris Halse Rogers wrote:
> ** Changed in: mono (Ubuntu)
> Assignee: (unassigned) => Ubuntu Sponsors for main

You're meant to subscribe, not assign, ubuntu-main-sponsors. I've done
so here.

  assignee nobody
  subscribe ubuntu-main-sponsors

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGD1IIAc+S8KckfcURAqZTAJwLZPnIIHgW5O77IN6FCqoV13EwOQCeMxb6
TfwN6VpLCIzyQV841z6UQ7c=
=ShEH
-----END PGP SIGNATURE-----

William Grant (wgrant)
Changed in mono:
assignee: ubuntu-main-sponsors → nobody
Revision history for this message
Chris Halse Rogers (raof) wrote :

The mono-gmcs 1.2.4-3ubuntu1 package now correctly compiles this code (previous packages of this new upstream version probably did too). Marking as fix released.

Changed in mono:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.