Internal compiler error: exception caught while emitting MethodBuilder

Bug #883817 reported by Someone561 on 2011-10-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mono (Ubuntu)
Undecided
Unassigned

Bug Description

If I run command

/usr/bin/dmcs /noconfig "/out:Test.exe" "/r:/usr/lib/mono/4.0/System.dll" "/r:/usr/lib/mono/4.0/System.Core.dll" /nologo /warn:4 /debug:+ /debug:full /optimize- /codepage:utf8 /platform:x86 "/define:DEBUG" /t:exe Main.cs

with the attached Main.cs I get

Internal compiler error at Main.cs(8,36):: exception caught while emitting MethodBuilder [MainClass::Main]

Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
Parameter name: typeArguments
  at System.Type.MakeGenericType (System.Type[] typeArguments) [0x00000] in <filename unknown>:0
  at Mono.CSharp.InflatedTypeSpec.CreateMetaInfo (Mono.CSharp.TypeParameterMutator mutator) [0x00000] in <filename unknown>:0
  at Mono.CSharp.InflatedTypeSpec.GetMetaInfo () [0x00000] in <filename unknown>:0
  at Mono.CSharp.EmitContext.DeclareLocal (Mono.CSharp.TypeSpec type, Boolean pinned) [0x00000] in <filename unknown>:0
  at Mono.CSharp.LocalVariable.CreateBuilder (Mono.CSharp.EmitContext ec) [0x00000] in <filename unknown>:0
  at Mono.CSharp.BlockVariableDeclaration.DoEmit (Mono.CSharp.EmitContext ec) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Statement.Emit (Mono.CSharp.EmitContext ec) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Block.DoEmit (Mono.CSharp.EmitContext ec) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Block.Emit (Mono.CSharp.EmitContext ec) [0x00000] in <filename unknown>:0
  at Mono.CSharp.ExplicitBlock.Emit (Mono.CSharp.EmitContext ec) [0x00000] in <filename unknown>:0
  at Mono.CSharp.ToplevelBlock.Emit (Mono.CSharp.EmitContext ec) [0x00000] in <filename unknown>:0
  at Mono.CSharp.MethodData.Emit (Mono.CSharp.DeclSpace parent) [0x00000] in <filename unknown>:0
  at Mono.CSharp.MethodOrOperator.Emit () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Method.Emit () [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentNullException: Argument cannot be null.
Parameter name: typeArguments
  at System.Type.MakeGenericType (System.Type[] typeArguments) [0x00000] in <filename unknown>:0
  at Mono.CSharp.InflatedTypeSpec.CreateMetaInfo (Mono.CSharp.TypeParameterMutator mutator) [0x00000] in <filename unknown>:0
  at Mono.CSharp.InflatedTypeSpec.GetMetaInfo () [0x00000] in <filename unknown>:0
  at Mono.CSharp.EmitContext.DeclareLocal (Mono.CSharp.TypeSpec type, Boolean pinned) [0x00000] in <filename unknown>:0
  at Mono.CSharp.LocalVariable.CreateBuilder (Mono.CSharp.EmitContext ec) [0x00000] in <filename unknown>:0
  at Mono.CSharp.BlockVariableDeclaration.DoEmit (Mono.CSharp.EmitContext ec) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Statement.Emit (Mono.CSharp.EmitContext ec) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Block.DoEmit (Mono.CSharp.EmitContext ec) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Block.Emit (Mono.CSharp.EmitContext ec) [0x00000] in <filename unknown>:0
  at Mono.CSharp.ExplicitBlock.Emit (Mono.CSharp.EmitContext ec) [0x00000] in <filename unknown>:0
  at Mono.CSharp.ToplevelBlock.Emit (Mono.CSharp.EmitContext ec) [0x00000] in <filename unknown>:0
  at Mono.CSharp.MethodData.Emit (Mono.CSharp.DeclSpace parent) [0x00000] in <filename unknown>:0
  at Mono.CSharp.MethodOrOperator.Emit () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Method.Emit () [0x00000] in <filename unknown>:0

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: mono-dmcs 2.10.5-1
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Sun Oct 30 13:00:20 2011
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: mono
UpgradeStatus: Upgraded to oneiric on 2011-10-17 (12 days ago)

Someone561 (someone561) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers