PR# 16356 .NET metadata constantly corrupt
Problem Report Summary
Submitter: clemahieu
Category: .NET
Priority: Medium
Date: 2009/10/12
Class: Bug
Severity: Serious
Number: 16356
Release: 6.5
Confidential: No
Status: Open
Responsible:
Environment: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 2.0.50727)
Synopsis: .NET metadata constantly corrupt
Description
When building any .NET project like the metadata consumer tool. When attaching to ecb.exe with a debugger I get a lot of TypeLoadExceptions.
C:\eiffel_src\Src\BIN\ISE_EIFFEL\studio\spec\windows\bin\ecb.exe -config c:\eiffel_src\src\dotnet\consumer\consumer.ecf -target consumer_20 -project_path C:\eiffel_src\Src\COMP -finalize -batch
[p#:1, t#:5] mdbg> go
STOP: Exception thrown
Exception=System.TypeLoadException
ClassName="G#1\&"
AssemblyName="EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Cultu
re=neutral, PublicKeyToken=def26f296efef469"
MessageArg=<null>
ResourceId=-2146233054
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message="Could not load type 'G#1\&' from assembly 'EiffelSoftware.Meta
dataConsumer, Version=6.4.7.7751, Culture=neutral, PublicKeyToken=def26f296efef4
69'."
_data=<null>
_innerException=<null>
_helpURL=<null>
_stackTrace=array [48]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0
_dynamicMethods=<null>
_HResult=-2146233054
_source=<null>
_xptrs=0
_xcode=-532459699
IP: 0 @ System.Reflection.CustomAttribute.CreateCaObject - MAPPING_APPROXIMATE
[p#:1, t#:0] mdbg> go
STOP: Exception thrown
Exception=System.TypeLoadException
ClassName="System.Guid\&"
AssemblyName="EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Cultu
re=neutral, PublicKeyToken=def26f296efef469"
MessageArg=<null>
ResourceId=-2146233054
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message="Could not load type 'System.Guid\&' from assembly 'EiffelSoftw
are.MetadataConsumer, Version=6.4.7.7751, Culture=neutral, PublicKeyToken=def26f
296efef469'."
_data=<null>
_innerException=<null>
_helpURL=<null>
_stackTrace=array [48]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0
_dynamicMethods=<null>
_HResult=-2146233054
_source=<null>
_xptrs=0
_xcode=-532459699
IP: 0 @ System.Reflection.CustomAttribute.CreateCaObject - MAPPING_APPROXIMATE
[p#:1, t#:0] mdbg> go
STOP: Exception thrown
Exception=System.TypeLoadException
ClassName="System.Windows.Forms.Message\&"
AssemblyName="EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Cultu
re=neutral, PublicKeyToken=def26f296efef469"
MessageArg=<null>
ResourceId=-2146233054
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message="Could not load type 'System.Windows.Forms.Message\&' from asse
mbly 'EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Culture=neutral, Publ
icKeyToken=def26f296efef469'."
_data=<null>
_innerException=<null>
_helpURL=<null>
_stackTrace=array [48]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0
_dynamicMethods=<null>
_HResult=-2146233054
_source=<null>
_xptrs=0
_xcode=-532459699
IP: 0 @ System.Reflection.CustomAttribute.CreateCaObject - MAPPING_APPROXIMATE
Exception=System.TypeLoadException
ClassName="System.TimeSpan\&"
AssemblyName="EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Cultu
re=neutral, PublicKeyToken=def26f296efef469"
MessageArg=<null>
ResourceId=-2146233054
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message="Could not load type 'System.TimeSpan\&' from assembly 'EiffelS
oftware.MetadataConsumer, Version=6.4.7.7751, Culture=neutral, PublicKeyToken=de
f26f296efef469'."
_data=<null>
_innerException=<null>
_helpURL=<null>
_stackTrace=array [48]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0
_dynamicMethods=<null>
_HResult=-2146233054
_source=<null>
_xptrs=0
_xcode=-532459699
IP: 0 @ System.Reflection.CustomAttribute.CreateCaObject - MAPPING_APPROXIMATE
STOP: Exception thrown
Exception=System.TypeLoadException
ClassName="System.Decimal\&"
AssemblyName="EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Cultu
re=neutral, PublicKeyToken=def26f296efef469"
MessageArg=<null>
ResourceId=-2146233054
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message="Could not load type 'System.Decimal\&' from assembly 'EiffelSo
ftware.MetadataConsumer, Version=6.4.7.7751, Culture=neutral, PublicKeyToken=def
26f296efef469'."
_data=<null>
_innerException=<null>
_helpURL=<null>
_stackTrace=array [48]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0
_dynamicMethods=<null>
_HResult=-2146233054
_source=<null>
_xptrs=0
_xcode=-532459699
IP: 0 @ System.Reflection.CustomAttribute.CreateCaObject - MAPPING_APPROXIMATE
STOP: Exception thrown
Exception=System.TypeLoadException
ClassName="System.DateTime\&"
AssemblyName="EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Cultu
re=neutral, PublicKeyToken=def26f296efef469"
MessageArg=<null>
ResourceId=-2146233054
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message="Could not load type 'System.DateTime\&' from assembly 'EiffelS
oftware.MetadataConsumer, Version=6.4.7.7751, Culture=neutral, PublicKeyToken=de
f26f296efef469'."
_data=<null>
_innerException=<null>
_helpURL=<null>
_stackTrace=array [48]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0
_dynamicMethods=<null>
_HResult=-2146233054
_source=<null>
_xptrs=0
_xcode=-532459699
IP: 0 @ System.Reflection.CustomAttribute.CreateCaObject - MAPPING_APPROXIMATE
STOP: Exception thrown
Exception=System.TypeLoadException
ClassName="System.Runtime.InteropServices.TYPEKIND\&"
AssemblyName="EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Cultu
re=neutral, PublicKeyToken=def26f296efef469"
MessageArg=<null>
ResourceId=-2146233054
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message="Could not load type 'System.Runtime.InteropServices.TYPEKIND\&
' from assembly 'EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Culture=ne
utral, PublicKeyToken=def26f296efef469'."
_data=<null>
_innerException=<null>
_helpURL=<null>
_stackTrace=array [48]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0
_dynamicMethods=<null>
_HResult=-2146233054
_source=<null>
_xptrs=0
_xcode=-532459699
IP: 0 @ System.Reflection.CustomAttribute.CreateCaObject - MAPPING_APPROXIMATE
STOP: Exception thrown
Exception=System.TypeLoadException
ClassName="System.Runtime.InteropServices.ComTypes.DISPPARAMS\&"
AssemblyName="EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Cultu
re=neutral, PublicKeyToken=def26f296efef469"
MessageArg=<null>
ResourceId=-2146233054
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message="Could not load type 'System.Runtime.InteropServices.ComTypes.D
ISPPARAMS\&' from assembly 'EiffelSoftware.MetadataConsumer, Version=6.4.7.7751,
Culture=neutral, PublicKeyToken=def26f296efef469'."
_data=<null>
_innerException=<null>
_helpURL=<null>
_stackTrace=array [48]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0
_dynamicMethods=<null>
_HResult=-2146233054
_source=<null>
_xptrs=0
_xcode=-532459699
IP: 0 @ System.Reflection.CustomAttribute.CreateCaObject - MAPPING_APPROXIMATE
STOP: Exception thrown
Exception=System.TypeLoadException
ClassName="System.Runtime.InteropServices.ComTypes.IMPLTYPEFLAGS\&"
AssemblyName="EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Cultu
re=neutral, PublicKeyToken=def26f296efef469"
MessageArg=<null>
ResourceId=-2146233054
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message="Could not load type 'System.Runtime.InteropServices.ComTypes.I
MPLTYPEFLAGS\&' from assembly 'EiffelSoftware.MetadataConsumer, Version=6.4.7.77
51, Culture=neutral, PublicKeyToken=def26f296efef469'."
_data=<null>
_innerException=<null>
_helpURL=<null>
_stackTrace=array [48]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0
_dynamicMethods=<null>
_HResult=-2146233054
_source=<null>
_xptrs=0
_xcode=-532459699
IP: 0 @ System.Reflection.CustomAttribute.CreateCaObject - MAPPING_APPROXIMATE
STOP: Exception thrown
Exception=System.TypeLoadException
ClassName="System.Runtime.InteropServices.EXCEPINFO\&"
AssemblyName="EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Cultu
re=neutral, PublicKeyToken=def26f296efef469"
MessageArg=<null>
ResourceId=-2146233054
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message="Could not load type 'System.Runtime.InteropServices.EXCEPINFO\
&' from assembly 'EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Culture=n
eutral, PublicKeyToken=def26f296efef469'."
_data=<null>
_innerException=<null>
_helpURL=<null>
_stackTrace=array [48]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0
_dynamicMethods=<null>
_HResult=-2146233054
_source=<null>
_xptrs=0
_xcode=-532459699
IP: 0 @ System.Reflection.CustomAttribute.CreateCaObject - MAPPING_APPROXIMATE
STOP: Exception thrown
Exception=System.TypeLoadException
ClassName="System.Runtime.InteropServices.DISPPARAMS\&"
AssemblyName="EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Cultu
re=neutral, PublicKeyToken=def26f296efef469"
MessageArg=<null>
ResourceId=-2146233054
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message="Could not load type 'System.Runtime.InteropServices.DISPPARAMS
\&' from assembly 'EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Culture=
neutral, PublicKeyToken=def26f296efef469'."
_data=<null>
_innerException=<null>
_helpURL=<null>
_stackTrace=array [48]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0
_dynamicMethods=<null>
_HResult=-2146233054
_source=<null>
_xptrs=0
_xcode=-532459699
IP: 0 @ System.Reflection.CustomAttribute.CreateCaObject - MAPPING_APPROXIMATE
STOP: Exception thrown
Exception=System.TypeLoadException
ClassName="EiffelSoftware.Library.Base.kernel.INTEGER_8\&"
AssemblyName="EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Cultu
re=neutral, PublicKeyToken=def26f296efef469"
MessageArg=<null>
ResourceId=-2146233054
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message="Could not load type 'EiffelSoftware.Library.Base.kernel.INTEGE
R_8\&' from assembly 'EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Cultu
re=neutral, PublicKeyToken=def26f296efef469'."
_data=<null>
_innerException=<null>
_helpURL=<null>
_stackTrace=array [48]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0
_dynamicMethods=<null>
_HResult=-2146233054
_source=<null>
_xptrs=0
_xcode=-532459699
IP: 0 @ System.Reflection.CustomAttribute.CreateCaObject - MAPPING_APPROXIMATE
STOP: Exception thrown
Exception=System.TypeLoadException
ClassName="System.Drawing.Drawing2D.LineCap\&"
AssemblyName="EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Cultu
re=neutral, PublicKeyToken=def26f296efef469"
MessageArg=<null>
ResourceId=-2146233054
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message="Could not load type 'System.Drawing.Drawing2D.LineCap\&' from
assembly 'EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Culture=neutral,
PublicKeyToken=def26f296efef469'."
_data=<null>
_innerException=<null>
_helpURL=<null>
_stackTrace=array [48]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0
_dynamicMethods=<null>
_HResult=-2146233054
_source=<null>
_xptrs=0
_xcode=-532459699
IP: 0 @ System.Reflection.CustomAttribute.CreateCaObject - MAPPING_APPROXIMATE
STOP: Exception thrown
Exception=System.TypeLoadException
ClassName="System.Runtime.InteropServices.ComTypes.DESCKIND\&"
AssemblyName="EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Cultu
re=neutral, PublicKeyToken=def26f296efef469"
MessageArg=<null>
ResourceId=-2146233054
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message="Could not load type 'System.Runtime.InteropServices.ComTypes.D
ESCKIND\&' from assembly 'EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, C
ulture=neutral, PublicKeyToken=def26f296efef469'."
_data=<null>
_innerException=<null>
_helpURL=<null>
_stackTrace=array [48]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0
_dynamicMethods=<null>
_HResult=-2146233054
_source=<null>
_xptrs=0
_xcode=-532459699
IP: 0 @ System.Reflection.CustomAttribute.CreateCaObject - MAPPING_APPROXIMATE
STOP: Exception thrown
Exception=System.TypeLoadException
ClassName="System.Runtime.InteropServices.BINDPTR\&"
AssemblyName="EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Cultu
re=neutral, PublicKeyToken=def26f296efef469"
MessageArg=<null>
ResourceId=-2146233054
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message="Could not load type 'System.Runtime.InteropServices.BINDPTR\&'
from assembly 'EiffelSoftware.MetadataConsumer, Version=6.4.7.7751, Culture=neu
tral, PublicKeyToken=def26f296efef469'."
_data=<null>
_innerException=<null>
_helpURL=<null>
_stackTrace=array [48]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0
_dynamicMethods=<null>
_HResult=-2146233054
_source=<null>
_xptrs=0
_xcode=-532459699
IP: 0 @ System.Reflection.CustomAttribute.CreateCaObject - MAPPING_APPROXIMATE
Thread [#:0]
*0. System.Reflection.CustomAttribute.CreateCaObject (source line information un
available)
1. System.Reflection.CustomAttribute.GetCustomAttributes (source line informati
on unavailable)
2. System.Reflection.CustomAttribute.GetCustomAttributes (source line informati
on unavailable)
3. System.RuntimeType.GetCustomAttributes (source line information unavailable)
4. EiffelSoftware.Library.Base.support.dotnet.Impl.INTERNAL.$$load_eiffel_type_
from_assembly (source line information unavailable)
5. EiffelSoftware.Library.Base.support.dotnet.Impl.INTERNAL.load_eiffel_type_fr
om_assembly (source line information unavailable)
6. EiffelSoftware.Library.Base.support.dotnet.Impl.INTERNAL.$$load_eiffel_types
_from_assembly (source line information unavailable)
7. EiffelSoftware.Library.Base.support.dotnet.Impl.INTERNAL.load_eiffel_types_f
rom_assembly (source line information unavailable)
8. EiffelSoftware.Library.Base.support.dotnet.Impl.INTERNAL.$$load_assemblies (
source line information unavailable)
9. EiffelSoftware.Library.Base.support.dotnet.Impl.INTERNAL.load_assemblies (so
urce line information unavailable)
10. EiffelSoftware.Library.Base.support.dotnet.Impl.INTERNAL.$$eiffel_type_from
_string (source line information unavailable)
11. EiffelSoftware.Library.Base.support.dotnet.Impl.INTERNAL.eiffel_type_from_s
tring (source line information unavailable)
12. EiffelSoftware.Library.Base.support.dotnet.Impl.INTERNAL.$$dynamic_type_fro
m_string (source line information unavailable)
13. EiffelSoftware.Library.Base.support.dotnet.Impl.INTERNAL.dynamic_type_from_
string (source line information unavailable)
14. EiffelSoftware.Library.Base.serialization.serializers.Impl.SED_INDEPENDENT_
DESERIALIZER.$$read_header (source line information unavailable)
15. EiffelSoftware.Library.Base.serialization.serializers.Impl.SED_INDEPENDENT_
DESERIALIZER.read_header (source line information unavailable)
16. EiffelSoftware.Library.Base.serialization.serializers.Impl.SED_SESSION_DESE
RIALIZER.$$decode (source line information unavailable)
17. EiffelSoftware.Library.Base.serialization.serializers.Impl.SED_INDEPENDENT_
DESERIALIZER.decode (source line information unavailable)
18. EiffelSoftware.Library.Base.serialization.utilities.Impl.SED_STORABLE_FACIL
ITIES.$$retrieved (source line information unavailable)
19. EiffelSoftware.MetadataConsumer.Impl.EIFFEL_DESERIALIZER.retrieved (source
line information unavailable)
20. EiffelSoftware.Library.Base.serialization.utilities.Impl.SED_MULTI_OBJECT_S
ERIALIZATION.$$deserialize (source line information unavailable)
21. EiffelSoftware.MetadataConsumer.Impl.EIFFEL_DESERIALIZER.deserialize (sourc
e line information unavailable)
22. EiffelSoftware.MetadataConsumer.CACHE_READER.info (source line information
unavailable)
23. EiffelSoftware.MetadataConsumer.CACHE_READER.consumed_assembly_from_path (s
ource line information unavailable)
24. EiffelSoftware.MetadataConsumer.CACHE_WRITER.add_assembly_ex (source line i
nformation unavailable)
25. EiffelSoftware.MetadataConsumer.CACHE_MANAGER.consume_assembly_from_path (s
ource line information unavailable)
26. EiffelSoftware.MetadataConsumer.Interop.MARSHAL_CACHE_MANAGER.consume_assem
bly_from_path (source line information unavailable)
27. System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage (s
ource line information unavailable)
28. System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage (sour
ce line information unavailable)
29. System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage (sour
ce line information unavailable)
30. System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMes
sage (source line information unavailable)
31. System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMe
ssage (source line information unavailable)
32. System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCall
back (source line information unavailable)
33. System.Threading.Thread.CompleteCrossContextCallback (source line informati
on unavailable)
34. System.Threading.Thread.InternalCrossContextCallback (source line informati
on unavailable)
35. System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessage (so
To Reproduce
Problem Report Interactions
If I replace the Metadata consumer and Runtime assemblies included with 80945 with the assemblies included with 80057 the metadata consumer doesn't have errors.