Bug 1292 - Compiler crash
Summary: Compiler crash
Status: RESOLVED NORESPONSE
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2011-10-05 23:48 UTC by Darren Kopp
Modified: 2012-02-04 07:39 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description Darren Kopp 2011-10-05 23:48:44 UTC
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type, Mono.CSharp.TypeSpec declaringType, DynamicTypeReader dtype, Boolean canImportBaseType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type, DynamicTypeReader dtype, Boolean canImportBaseType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateTypeParameter (System.Type type, Mono.CSharp.TypeSpec declaringType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type, Mono.CSharp.TypeSpec declaringType, DynamicTypeReader dtype, Boolean canImportBaseType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type, DynamicTypeReader dtype, Boolean canImportBaseType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateGenericParameters (Int32 first, System.Type[] tparams) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateGenericParameters (System.Type type, Mono.CSharp.TypeSpec declaringType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type, Mono.CSharp.TypeSpec declaringType, DynamicTypeReader dtype, Boolean canImportBaseType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateNestedType (System.Type type, Mono.CSharp.TypeSpec declaringType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.ImportedTypeDefinition.LoadMembers (Mono.CSharp.TypeSpec declaringType, Boolean onlyTypes, Mono.CSharp.MemberCache& cache) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeSpec.InitializeMemberCache (Boolean onlyTypes) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeSpec.get_MemberCacheTypes () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MemberCache.FindNestedType (Mono.CSharp.TypeSpec container, System.String name, Int32 arity) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MemberAccess.ResolveNamespaceOrType (IMemberContext rc, Boolean silent) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MemberAccess.ResolveAsTypeStep (IMemberContext ec, Boolean silent) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Expression.ResolveAsTypeTerminal (IMemberContext ec, Boolean silent) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.ResolveBaseTypes (Mono.CSharp.TypeExpr& base_class) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Class.ResolveBaseTypes (Mono.CSharp.TypeExpr& base_class) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.DefineBaseTypes () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.DefineType () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.ModuleContainer.Define () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type, Mono.CSharp.TypeSpec declaringType, DynamicTypeReader dtype, Boolean canImportBaseType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type, DynamicTypeReader dtype, Boolean canImportBaseType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateTypeParameter (System.Type type, Mono.CSharp.TypeSpec declaringType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type, Mono.CSharp.TypeSpec declaringType, DynamicTypeReader dtype, Boolean canImportBaseType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type, DynamicTypeReader dtype, Boolean canImportBaseType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateGenericParameters (Int32 first, System.Type[] tparams) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateGenericParameters (System.Type type, Mono.CSharp.TypeSpec declaringType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type, Mono.CSharp.TypeSpec declaringType, DynamicTypeReader dtype, Boolean canImportBaseType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateNestedType (System.Type type, Mono.CSharp.TypeSpec declaringType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.ImportedTypeDefinition.LoadMembers (Mono.CSharp.TypeSpec declaringType, Boolean onlyTypes, Mono.CSharp.MemberCache& cache) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeSpec.InitializeMemberCache (Boolean onlyTypes) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeSpec.get_MemberCacheTypes () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MemberCache.FindNestedType (Mono.CSharp.TypeSpec container, System.String name, Int32 arity) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MemberAccess.ResolveNamespaceOrType (IMemberContext rc, Boolean silent) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MemberAccess.ResolveAsTypeStep (IMemberContext ec, Boolean silent) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Expression.ResolveAsTypeTerminal (IMemberContext ec, Boolean silent) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.ResolveBaseTypes (Mono.CSharp.TypeExpr& base_class) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Class.ResolveBaseTypes (Mono.CSharp.TypeExpr& base_class) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.DefineBaseTypes () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.DefineType () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.ModuleContainer.Define () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0 



Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type, Mono.CSharp.TypeSpec declaringType, DynamicTypeReader dtype, Boolean canImportBaseType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type, DynamicTypeReader dtype, Boolean canImportBaseType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateTypeParameter (System.Type type, Mono.CSharp.TypeSpec declaringType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type, Mono.CSharp.TypeSpec declaringType, DynamicTypeReader dtype, Boolean canImportBaseType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type, DynamicTypeReader dtype, Boolean canImportBaseType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateGenericParameters (Int32 first, System.Type[] tparams) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateGenericParameters (System.Type type, Mono.CSharp.TypeSpec declaringType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type, Mono.CSharp.TypeSpec declaringType, DynamicTypeReader dtype, Boolean canImportBaseType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateNestedType (System.Type type, Mono.CSharp.TypeSpec declaringType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.ImportedTypeDefinition.LoadMembers (Mono.CSharp.TypeSpec declaringType, Boolean onlyTypes, Mono.CSharp.MemberCache& cache) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeSpec.InitializeMemberCache (Boolean onlyTypes) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeSpec.get_MemberCacheTypes () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MemberCache.FindNestedType (Mono.CSharp.TypeSpec container, System.String name, Int32 arity) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MemberAccess.ResolveNamespaceOrType (IMemberContext rc, Boolean silent) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MemberAccess.ResolveAsTypeStep (IMemberContext ec, Boolean silent) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Expression.ResolveAsTypeTerminal (IMemberContext ec, Boolean silent) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.ResolveBaseTypes (Mono.CSharp.TypeExpr& base_class) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Class.ResolveBaseTypes (Mono.CSharp.TypeExpr& base_class) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.DefineBaseTypes () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.DefineType () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.ModuleContainer.Define () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type, Mono.CSharp.TypeSpec declaringType, DynamicTypeReader dtype, Boolean canImportBaseType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type, DynamicTypeReader dtype, Boolean canImportBaseType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateTypeParameter (System.Type type, Mono.CSharp.TypeSpec declaringType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type, Mono.CSharp.TypeSpec declaringType, DynamicTypeReader dtype, Boolean canImportBaseType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type, DynamicTypeReader dtype, Boolean canImportBaseType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateGenericParameters (Int32 first, System.Type[] tparams) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateGenericParameters (System.Type type, Mono.CSharp.TypeSpec declaringType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateType (System.Type type, Mono.CSharp.TypeSpec declaringType, DynamicTypeReader dtype, Boolean canImportBaseType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MetadataImporter.CreateNestedType (System.Type type, Mono.CSharp.TypeSpec declaringType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.ImportedTypeDefinition.LoadMembers (Mono.CSharp.TypeSpec declaringType, Boolean onlyTypes, Mono.CSharp.MemberCache& cache) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeSpec.InitializeMemberCache (Boolean onlyTypes) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeSpec.get_MemberCacheTypes () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MemberCache.FindNestedType (Mono.CSharp.TypeSpec container, System.String name, Int32 arity) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MemberAccess.ResolveNamespaceOrType (IMemberContext rc, Boolean silent) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MemberAccess.ResolveAsTypeStep (IMemberContext ec, Boolean silent) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Expression.ResolveAsTypeTerminal (IMemberContext ec, Boolean silent) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.ResolveBaseTypes (Mono.CSharp.TypeExpr& base_class) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Class.ResolveBaseTypes (Mono.CSharp.TypeExpr& base_class) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.DefineBaseTypes () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.DefineType () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.ModuleContainer.Define () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0 
Build complete -- 1 error, 0 warnings
Comment 1 Marek Safar 2011-10-06 04:48:43 UTC
Could you provide steps how to reproduce the issue?
Comment 2 Darren Kopp 2011-10-06 11:25:45 UTC
Not exactly... If you could provide me with clues as to where this might be happening / what file it's in then yes, but right now I don't know what's causing it therefore I can't really provide steps to reproduce. All I do is build the solution and it crashes on 1 project.
Comment 3 Marek Safar 2011-10-07 05:16:57 UTC
Try with master, it should help you to pinpoint the source of the crash easier
Comment 4 Marek Safar 2012-02-04 07:39:43 UTC
No response