[Mono-bugs] [Bug 387615] New: NRE in VariableReference.EmitLoad

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed May 7 05:33:06 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=387615


           Summary: NRE in VariableReference.EmitLoad
           Product: Mono: Compilers
           Version: 1.9.0
          Platform: 32bit
        OS/Version: Ubuntu
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: porges+novell at porg.es
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Here’s two different stack traces, showing different compiles but crashing in
the same place:



Internal compiler error at Mathematics.Matrix.cs(64,39):: exception caught
while emitting MethodBuilder [<>c__CompilerGenerated21::<op_Multiply>c__23]

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at Mono.CSharp.VariableReference.EmitLoad (Mono.CSharp.EmitContext ec)
[0x0000b] in /build/buildd/mono-1.2.6+dfsg/mcs/mcs/expression.cs:3533 
  at Mono.CSharp.VariableReference.Emit (Mono.CSharp.EmitContext ec, Boolean
leave_copy) [0x00000] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/expression.cs:3541 
  at Mono.CSharp.VariableReference.Emit (Mono.CSharp.EmitContext ec) [0x00000]
in /build/buildd/mono-1.2.6+dfsg/mcs/mcs/expression.cs:3520 
  at Mono.CSharp.Argument.Emit (Mono.CSharp.EmitContext ec) [0x00018] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/expression.cs:4078 
  at Mono.CSharp.Invocation.EmitArguments (Mono.CSharp.EmitContext ec,
System.Reflection.MethodBase mb, System.Collections.ArrayList arguments,
Boolean dup_args, Mono.CSharp.LocalTemporary this_arg) [0x00126] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/expression.cs:4374 
  at Mono.CSharp.Invocation.EmitCall (Mono.CSharp.EmitContext ec, Boolean
is_base, Mono.CSharp.Expression instance_expr, System.Reflection.MethodBase
method, System.Collections.ArrayList Arguments, Location loc, Boolean dup_args,
Boolean omit_args) [0x00266] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/expression.cs:4572 
  at Mono.CSharp.IndexerAccess.EmitAssign (Mono.CSharp.EmitContext ec,
Mono.CSharp.Expression source, Boolean leave_copy, Boolean prepare_for_load)
[0x0001a] in /build/buildd/mono-1.2.6+dfsg/mcs/mcs/expression.cs:7767 
  at Mono.CSharp.Assign.Emit (Mono.CSharp.EmitContext ec, Boolean is_statement)
[0x00082] in /build/buildd/mono-1.2.6+dfsg/mcs/mcs/assign.cs:571 
  at Mono.CSharp.Assign.EmitStatement (Mono.CSharp.EmitContext ec) [0x00000] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/assign.cs:587 
  at Mono.CSharp.StatementExpression.DoEmit (Mono.CSharp.EmitContext ec)
[0x00000] in /build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:697 
  at Mono.CSharp.Statement.Emit (Mono.CSharp.EmitContext ec) [0x0000d] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:87 
  at Mono.CSharp.Block.DoEmit (Mono.CSharp.EmitContext ec) [0x00019] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:2256 
  at Mono.CSharp.Block.Emit (Mono.CSharp.EmitContext ec) [0x0006f] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:2276 
  at Mono.CSharp.For.DoEmit (Mono.CSharp.EmitContext ec) [0x00083] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:635 
  at Mono.CSharp.Statement.Emit (Mono.CSharp.EmitContext ec) [0x0000d] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:87 
  at Mono.CSharp.Block.DoEmit (Mono.CSharp.EmitContext ec) [0x00019] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:2256 
  at Mono.CSharp.Block.Emit (Mono.CSharp.EmitContext ec) [0x0006f] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:2276 
  at Mono.CSharp.Block.DoEmit (Mono.CSharp.EmitContext ec) [0x00019] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:2256 
  at Mono.CSharp.Block.Emit (Mono.CSharp.EmitContext ec) [0x0006f] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:2276 
  at Mono.CSharp.For.DoEmit (Mono.CSharp.EmitContext ec) [0x00083] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:635 
  at Mono.CSharp.Statement.Emit (Mono.CSharp.EmitContext ec) [0x0000d] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:87 
  at Mono.CSharp.Block.DoEmit (Mono.CSharp.EmitContext ec) [0x00019] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:2256 
  at Mono.CSharp.Block.Emit (Mono.CSharp.EmitContext ec) [0x0006f] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:2276 
  at Mono.CSharp.Block.DoEmit (Mono.CSharp.EmitContext ec) [0x00019] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:2256 
  at Mono.CSharp.Block.Emit (Mono.CSharp.EmitContext ec) [0x0006f] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:2276 
  at Mono.CSharp.EmitContext.EmitResolvedTopBlock (Mono.CSharp.ToplevelBlock
block, Boolean unreachable) [0x00006] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/codegen.cs:799 
  at Mono.CSharp.EmitContext.EmitTopBlock (IMethodData md,
Mono.CSharp.ToplevelBlock block) [0x00037] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/codegen.cs:707 
  at Mono.CSharp.MethodData.Emit (Mono.CSharp.DeclSpace parent) [0x0009e] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/class.cs:5454 
  at Mono.CSharp.Method.Emit () [0x0005e] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/class.cs:4565 



Internal compiler error at Mathematics.Matrix.cs(64,39):: exception caught
while emitting MethodBuilder [<>c__CompilerGenerated21::<op_Multiply>c__23]

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at Mono.CSharp.VariableReference.EmitLoad (Mono.CSharp.EmitContext ec)
[0x0000b] in /build/buildd/mono-1.2.6+dfsg/mcs/mcs/expression.cs:3533 
  at Mono.CSharp.VariableReference.Emit (Mono.CSharp.EmitContext ec, Boolean
leave_copy) [0x00000] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/expression.cs:3541 
  at Mono.CSharp.VariableReference.Emit (Mono.CSharp.EmitContext ec) [0x00000]
in /build/buildd/mono-1.2.6+dfsg/mcs/mcs/expression.cs:3520 
  at Mono.CSharp.Argument.Emit (Mono.CSharp.EmitContext ec) [0x00018] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/expression.cs:4078 
  at Mono.CSharp.Invocation.EmitArguments (Mono.CSharp.EmitContext ec,
System.Reflection.MethodBase mb, System.Collections.ArrayList arguments,
Boolean dup_args, Mono.CSharp.LocalTemporary this_arg) [0x00126] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/expression.cs:4374 
  at Mono.CSharp.Invocation.EmitCall (Mono.CSharp.EmitContext ec, Boolean
is_base, Mono.CSharp.Expression instance_expr, System.Reflection.MethodBase
method, System.Collections.ArrayList Arguments, Location loc, Boolean dup_args,
Boolean omit_args) [0x00266] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/expression.cs:4572 
  at Mono.CSharp.IndexerAccess.EmitAssign (Mono.CSharp.EmitContext ec,
Mono.CSharp.Expression source, Boolean leave_copy, Boolean prepare_for_load)
[0x0001a] in /build/buildd/mono-1.2.6+dfsg/mcs/mcs/expression.cs:7767 
  at Mono.CSharp.Assign.Emit (Mono.CSharp.EmitContext ec, Boolean is_statement)
[0x00082] in /build/buildd/mono-1.2.6+dfsg/mcs/mcs/assign.cs:571 
  at Mono.CSharp.Assign.EmitStatement (Mono.CSharp.EmitContext ec) [0x00000] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/assign.cs:587 
  at Mono.CSharp.StatementExpression.DoEmit (Mono.CSharp.EmitContext ec)
[0x00000] in /build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:697 
  at Mono.CSharp.Statement.Emit (Mono.CSharp.EmitContext ec) [0x0000d] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:87 
  at Mono.CSharp.Block.DoEmit (Mono.CSharp.EmitContext ec) [0x00019] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:2256 
  at Mono.CSharp.Block.Emit (Mono.CSharp.EmitContext ec) [0x0006f] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:2276 
  at Mono.CSharp.For.DoEmit (Mono.CSharp.EmitContext ec) [0x00083] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:635 
  at Mono.CSharp.Statement.Emit (Mono.CSharp.EmitContext ec) [0x0000d] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:87 
  at Mono.CSharp.Block.DoEmit (Mono.CSharp.EmitContext ec) [0x00019] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:2256 
  at Mono.CSharp.Block.Emit (Mono.CSharp.EmitContext ec) [0x0006f] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:2276 
  at Mono.CSharp.Block.DoEmit (Mono.CSharp.EmitContext ec) [0x00019] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:2256 
  at Mono.CSharp.Block.Emit (Mono.CSharp.EmitContext ec) [0x0006f] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:2276 
  at Mono.CSharp.For.DoEmit (Mono.CSharp.EmitContext ec) [0x00083] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:635 
  at Mono.CSharp.Statement.Emit (Mono.CSharp.EmitContext ec) [0x0000d] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:87 
  at Mono.CSharp.Block.DoEmit (Mono.CSharp.EmitContext ec) [0x00019] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:2256 
  at Mono.CSharp.Block.Emit (Mono.CSharp.EmitContext ec) [0x0006f] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:2276 
  at Mono.CSharp.Block.DoEmit (Mono.CSharp.EmitContext ec) [0x00019] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:2256 
  at Mono.CSharp.Block.Emit (Mono.CSharp.EmitContext ec) [0x0006f] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/statement.cs:2276 
  at Mono.CSharp.EmitContext.EmitResolvedTopBlock (Mono.CSharp.ToplevelBlock
block, Boolean unreachable) [0x00006] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/codegen.cs:799 
  at Mono.CSharp.EmitContext.EmitTopBlock (IMethodData md,
Mono.CSharp.ToplevelBlock block) [0x00037] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/codegen.cs:707 
  at Mono.CSharp.MethodData.Emit (Mono.CSharp.DeclSpace parent) [0x0009e] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/class.cs:5454 
  at Mono.CSharp.Method.Emit () [0x0005e] in
/build/buildd/mono-1.2.6+dfsg/mcs/mcs/class.cs:4565


-- 
Configure bugmail: https://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