[Mono-bugs] [Bug 655514] New: gmcs fails compile/load proper types/methods

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 23 09:48:35 EST 2010


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

https://bugzilla.novell.com/show_bug.cgi?id=655514#c0


           Summary: gmcs fails compile/load proper types/methods
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: msafar at novell.com
        ReportedBy: piotr.wysocki at secpl.cs.put.poznan.pl
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12)
Gecko/20101027 Ubuntu/10.10 (maverick) Firefox/3.6.12

mono --debug gmcs.exe /noconfig /debug:full /debug+ /optimize- /out:something
/target:library /define:DEBUG /warn:4 manyreferences_and_sources

outputs:

Unhandled Exception: Mono.CSharp.InternalErrorException:
./somePath/SomeFile.cs(10,26): someNamespace.SomeObjectType --->
Mono.CSharp.InternalErrorException: ../somePath/SomeFile.cs(41,16):
someNamespace.SomeObjectType.SomeObjectType(someTypeX, someOtherArgs) --->
Mono.CSharp.InternalErrorException: Could not import type
`someNamespace.someTypeX' from `someAssemblyName, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null' ---> System.TypeLoadException: Could not
load type 'someNamespace.someTypeX' from assembly 'someAssemblyName,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
  at (wrapper managed-to-native) System.MonoType:GetMethodsByName
(System.MonoType*,string,System.Reflection.BindingFlags,bool,System.Type)
  at System.MonoType.GetMethods (BindingFlags bindingAttr) [0x00000] in
/home/wysek/src/mono-git/mono/mcs/class/corlib/System/MonoType.cs:211 
  at System.Type.FindMembers (MemberTypes memberType, BindingFlags bindingAttr,
System.Reflection.MemberFilter filter, System.Object filterCriteria) [0x0000e]
in /home/wysek/src/mono-git/mono/mcs/class/corlib/System/Type.cs:1225 
  at System.MonoType.GetMembers (BindingFlags bindingAttr) [0x00000] in
/home/wysek/src/mono-git/mono/mcs/class/corlib/System/MonoType.cs:203 
  at Mono.CSharp.ImportedTypeDefinition.LoadMembers (Mono.CSharp.TypeSpec
declaringType, Boolean onlyTypes, Mono.CSharp.MemberCache& cache) [0x00033] in
/home/wysek/src/mono-git/mono/mcs/mcs/import.cs:1584 
  --- End of inner exception stack trace ---
  at Mono.CSharp.ImportedTypeDefinition.LoadMembers (Mono.CSharp.TypeSpec
declaringType, Boolean onlyTypes, Mono.CSharp.MemberCache& cache) [0x00044] in
/home/wysek/src/mono-git/mono/mcs/mcs/import.cs:1586 
  at Mono.CSharp.TypeSpec.InitializeMemberCache (Boolean onlyTypes) [0x00000]
in /home/wysek/src/mono-git/mono/mcs/mcs/typespec.cs:323 
  at Mono.CSharp.TypeSpec.get_MemberCacheTypes () [0x0000b] in
/home/wysek/src/mono-git/mono/mcs/mcs/typespec.cs:206 
  at Mono.CSharp.MemberCache.FindNestedType (Mono.CSharp.TypeSpec container,
System.String name, Int32 arity) [0x0001b] in
/home/wysek/src/mono-git/mono/mcs/mcs/membercache.cs:426 
  at Mono.CSharp.TypeContainer.LookupNestedTypeInHierarchy (System.String name,
Int32 arity) [0x00021] in /home/wysek/src/mono-git/mono/mcs/mcs/class.cs:2139 
  at Mono.CSharp.TypeContainer.LookupNamespaceOrType (System.String name, Int32
arity, Location loc, Boolean ignore_cs0104) [0x0005c] in
/home/wysek/src/mono-git/mono/mcs/mcs/class.cs:2105 
  at Mono.CSharp.MemberCore.LookupNamespaceOrType (System.String name, Int32
arity, Location loc, Boolean ignore_cs0104) [0x00000] in
/home/wysek/src/mono-git/mono/mcs/mcs/decl.cs:695 
  at Mono.CSharp.SimpleName.ResolveAsTypeStep (IMemberContext ec, Boolean
silent) [0x00011] in /home/wysek/src/mono-git/mono/mcs/mcs/ecore.cs:2246 
  at Mono.CSharp.Expression.ResolveAsTypeTerminal (IMemberContext ec, Boolean
silent) [0x00011] in /home/wysek/src/mono-git/mono/mcs/mcs/ecore.cs:202 
  at Mono.CSharp.Parameter.Resolve (IMemberContext rc, Int32 index) [0x0002a]
in /home/wysek/src/mono-git/mono/mcs/mcs/parameter.cs:387 
  at Mono.CSharp.ParametersCompiled.Resolve (IMemberContext ec) [0x0002f] in
/home/wysek/src/mono-git/mono/mcs/mcs/parameter.cs:1142 
  at Mono.CSharp.InterfaceMemberBase.DefineParameters
(Mono.CSharp.ParametersCompiled parameters) [0x00000] in
/home/wysek/src/mono-git/mono/mcs/mcs/class.cs:3158 
  at Mono.CSharp.Constructor.CheckBase () [0x00046] in
/home/wysek/src/mono-git/mono/mcs/mcs/method.cs:1406 
  at Mono.CSharp.Constructor.Define () [0x00055] in
/home/wysek/src/mono-git/mono/mcs/mcs/method.cs:1443 
  at Mono.CSharp.TypeContainer.DefineContainerMembers (IList mcal) [0x0001a] in
/home/wysek/src/mono-git/mono/mcs/mcs/class.cs:1579 
  --- End of inner exception stack trace ---
  at Mono.CSharp.TypeContainer.DefineContainerMembers (IList mcal) [0x00027] in
/home/wysek/src/mono-git/mono/mcs/mcs/class.cs:1581 
  at Mono.CSharp.Class.DefineContainerMembers (IList list) [0x00012] in
/home/wysek/src/mono-git/mono/mcs/mcs/class.cs:2433 
  at Mono.CSharp.TypeContainer.DoDefineMembers () [0x002a2] in
/home/wysek/src/mono-git/mono/mcs/mcs/class.cs:1556 
  at Mono.CSharp.ClassOrStruct.DoDefineMembers () [0x00006] in
/home/wysek/src/mono-git/mono/mcs/mcs/class.cs:2304 
  at Mono.CSharp.Class.DoDefineMembers () [0x00096] in
/home/wysek/src/mono-git/mono/mcs/mcs/class.cs:2486 
  at Mono.CSharp.TypeContainer.Define () [0x00012] in
/home/wysek/src/mono-git/mono/mcs/mcs/class.cs:1462 
  at Mono.CSharp.ModuleContainer.Define () [0x000f9] in
/home/wysek/src/mono-git/mono/mcs/mcs/roottypes.cs:250 
  --- End of inner exception stack trace ---
  at Mono.CSharp.ModuleContainer.Define () [0x00108] in
/home/wysek/src/mono-git/mono/mcs/mcs/roottypes.cs:252 
  at Mono.CSharp.Driver.Compile () [0x00194] in
/home/wysek/src/mono-git/mono/mcs/mcs/driver.cs:1746 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x0003c] in
/home/wysek/src/mono-git/mono/mcs/mcs/driver.cs:298


I cannot provide my sources. 
However, I can try to create a standalone testcase if necessary, but
it's quite some work, so I ask you to try to solve the bug using this
stacktrace and I will retry the build using git-master again.

Reproducible: Always

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list