[Mono-bugs] [Bug 602842] New: exception caught while emitting MethodBuilder

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed May 5 09:29:20 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=602842

http://bugzilla.novell.com/show_bug.cgi?id=602842#c0


           Summary: exception caught while emitting MethodBuilder
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: 64bit
        OS/Version: RHEL 5
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: srfcanada at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64;
Trident/4.0)

the given source compiles on windows .net and mono 2.4.2 but not on the current
source. I think it started failing in mono 2.6

Run gmcs monofail5.cs on this source:

monofail5.cs:
using System;
using System.Collections.Generic;

   public class TestClass1
   {

      private void CantCompileMethod()
      {
     double[] zCoords =
            new double[8 * 3]
               {
                  4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0,
                  2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0,
                  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
               };

      }      
   }

Generates the following error:
Internal compiler error at monofail5.cs(7,20):: exception caught while emitting
MethodBuilder [TestClass1::GetSession]

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at Mono.CSharp.Convert.ImplicitConversionStandard (Mono.CSharp.ResolveContext
ec, Mono.CSharp.Expression expr, Mono.CSharp.TypeSpec target_type, Location
loc, Boolean explicit_cast) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Convert.ImplicitConversionStandard (Mono.CSharp.ResolveContext
ec, Mono.CSharp.Expression expr, Mono.CSharp.TypeSpec target_type, Location
loc) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Convert.ImplicitConversion (Mono.CSharp.ResolveContext ec,
Mono.CSharp.Expression expr, Mono.CSharp.TypeSpec target_type, Location loc)
[0x00000] in <filename unknown>:0
  at Mono.CSharp.Expression.ConvertExpressionToArrayIndex
(Mono.CSharp.ResolveContext ec, Mono.CSharp.Expression source) [0x00000] in
<filename unknown>:0
  at Mono.CSharp.ArrayCreation.DoResolve (Mono.CSharp.ResolveContext ec)
[0x00000] in <filename unknown>:0
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext ec,
ResolveFlags flags) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext rc) [0x00000]
in <filename unknown>:0
  at Mono.CSharp.Assign.DoResolve (Mono.CSharp.ResolveContext ec) [0x00000] in
<filename unknown>:0
  at Mono.CSharp.SimpleAssign.DoResolve (Mono.CSharp.ResolveContext ec)
[0x00000] in <filename unknown>:0
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext ec,
ResolveFlags flags) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext rc) [0x00000]
in <filename unknown>:0
  at Mono.CSharp.ExpressionStatement.ResolveStatement (Mono.CSharp.BlockContext
ec) [0x00000] in <filename unknown>:0
  at Mono.CSharp.StatementExpression.Resolve (Mono.CSharp.BlockContext ec)
[0x00000] in <filename unknown>:0
  at Mono.CSharp.Block.Resolve (Mono.CSharp.BlockContext ec) [0x00000] in
<filename unknown>:0
  at Mono.CSharp.ToplevelBlock.Resolve (Mono.CSharp.FlowBranching parent,
Mono.CSharp.BlockContext rc, Mono.CSharp.ParametersCompiled ip, IMethodData md)
[0x00000] in <filename unknown>:0





Reproducible: Always

Steps to Reproduce:
1.
2.
3.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list