[Mono-bugs] [Bug 75130][Nor] New - crash when MS.NET 1.1 binary uses ResourceManager

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jun 2 17:55:48 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by matt.hargett at logiclibrary.com.

http://bugzilla.ximian.com/show_bug.cgi?id=75130

--- shadow/75130	2005-06-02 17:55:48.000000000 -0400
+++ shadow/75130.tmp.15584	2005-06-02 17:55:48.000000000 -0400
@@ -0,0 +1,87 @@
+Bug#: 75130
+Product: Mono: Class Libraries
+Version: 1.0
+OS: SLES 9
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: matt.hargett at logiclibrary.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: crash when MS.NET 1.1 binary uses ResourceManager
+
+Description of Problem:
+Running FxCop 1.312 on itself yields a crash.
+
+Steps to reproduce the problem:
+1. copy FxCop 1.312 directory from Windows to Linux
+2. Rename Microsoft.Cci.DLL to Microsoft.Cci.dll
+3. from the FxCop directory, using current svn mono:
+mono FxCopCmd.exe /file:FxCopCmd.exe /rule:Rules/ /console
+
+
+Actual Results:
+crash. --debug --trace relevant output:
+Unhandled Exception: System.TypeInitializationException: An exception was
+thrown by the type initializer for System.Type ---> System.NullRef
+erenceException: Object reference not set to an instance of an object
+in <0x00000> <unknown method>
+in (wrapper managed-to-native)
+System.Object:__icall_wrapper_mono_delegate_ctor (object,object,intptr)
+in <0x00074> System.Type:.cctor ()--- End of inner exception stack trace ---
+
+in <0x00000> <unknown method>
+in [0x000a1] (at
+/home/bryan/work/monobuild/svn/mcs/class/corlib/System/MonoCustomAttrs.cs:128)
+System.MonoCustomAttrs:GetCustomAttributes (
+ICustomAttributeProvider obj, System.Type attributeType, Boolean inherit)
+in [0x0009c] (at
+/home/bryan/work/monobuild/svn/mcs/class/corlib/System/MonoCustomAttrs.cs:128)
+System.MonoCustomAttrs:GetCustomAttributes (
+ICustomAttributeProvider obj, System.Type attributeType, Boolean inherit)
+in [0x00003] (at
+/home/bryan/work/monobuild/svn/mcs/class/corlib/System.Reflection/Assembly.cs:201)
+System.Reflection.Assembly:GetCustomAttr
+ibutes (System.Type attributeType, Boolean inherit)
+in [0x0000c] (at
+/home/bryan/work/monobuild/svn/mcs/class/corlib/System.Resources/ResourceManager.cs:387)
+System.Resources.ResourceManager:G
+etNeutralResourcesLanguage (System.Reflection.Assembly a)
+in [0x0003e] (at
+/home/bryan/work/monobuild/svn/mcs/class/corlib/System.Resources/ResourceManager.cs:91)
+System.Resources.ResourceManager:.c
+tor (System.String baseName, System.Reflection.Assembly assembly)
+in <0x00075> Microsoft.Tools.FxCop.Command.Localized:get_ResourceManager ()
+in <0x0002b> Microsoft.Tools.FxCop.Command.Localized:get_ToolName ()
+in <0x004b0> Microsoft.Tools.FxCop.Command.FxCopCommand:Main
+(System.String[] args)
+
+without --debug --trace:
+Microsoft FxCopCmd v1.312
+Copyright (C) 1999-2004 Microsoft Corp.  All rights reserved.
+
+* Object reference not set to an instance of an object
+in <0x0007a>
+Microsoft.Tools.FxCop.Sdk.Introspection.RuleUtilities:GetFxCopSdkSuppressMessageAttribute
+()
+in <0x00185>
+Microsoft.Tools.FxCop.Sdk.Introspection.RuleUtilities:GlobalBeforeLoad
+(ICommonUtilities commonUtilities)
+in <0x00054> Microsoft.Tools.FxCop.Common.FxCopOM:Initialize ()
+in <0x015bc> Microsoft.Tools.FxCop.Command.FxCopCommand:Main
+(System.String[] args)
+
+
+Expected Results:
+Should not crash, should run to completion as it does on MS.NET v1.1.
+
+How often does this happen? 
+Every time, regardless of the binary.
+
+Additional Information:


More information about the mono-bugs mailing list