[Mono-bugs] [Bug 536593] MCS cannot compile field assignment to class with multiple fields with the same name

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Dec 10 11:10:56 EST 2009



Ted Unangst <tedu at fogcreek.com> changed:

           What    |Removed                     |Added
                 CC|                            |tedu at fogcreek.com

--- Comment #4 from Ted Unangst <tedu at fogcreek.com> 2009-12-10 16:10:53 UTC ---
We ran into this as well, except we didn't get an error, we got a crash.

It was indeed caused by trying to link against an obfuscated assembly.  In our
case, we took care to not have any publicly exposed classes with multiple field
names.  But this didn't help, as mono continuted looking inside the assembly
and building type info for classes that our external code didn't link against.

I just threw some try/catch blocks around the HastTable.Add calls and ignored
the issue.

(0,0) : error :   at System.Collections.Hashtable.PutImpl (System.Object key,
stem.Object value, Boolean overwrite) [0x00000] 
(0,0) : error :   at System.Collections.Hashtable.Add (System.Object key,
Object value) [0x00000] 
(0,0) : error :   at Mono.CSharp.TypeInfo+StructInfo..ctor (System.Type type)
(0,0) : error :   at Mono.CSharp.TypeInfo+StructInfo.GetStructInfo (System.Type 
type) [0x00000] 
(0,0) : error :   at Mono.CSharp.TypeInfo..ctor (System.Type type) [0x00000] 
(0,0) : error :   at Mono.CSharp.TypeInfo.GetTypeInfo (System.Type type)
(0,0) : error :   at Mono.CSharp.VariableInfo..ctor (System.String name,
Type type, Int32 offset) [0x00000] 
(0,0) : error :   at Mono.CSharp.VariableInfo..ctor (Mono.CSharp.LocalInfo
_info, Int32 offset) [0x00000] 
(0,0) : error :   at Mono.CSharp.Block.ResolveMeta (Mono.CSharp.EmitContext ec, 
Int32 offset) [0x00000] 
(0,0) : error :   at Mono.CSharp.Block.ResolveMeta (Mono.CSharp.EmitContext ec, 
Int32 offset) [0x00000] 
(0,0) : error :   at Mono.CSharp.Block.ResolveMeta (Mono.CSharp.EmitContext ec, 
Int32 offset) [0x00000] 
(0,0) : error :   at Mono.CSharp.ToplevelBlock.ResolveMeta
ext ec, Mono.CSharp.Parameters ip) [0x00000] 
(0,0) : error :   at Mono.CSharp.EmitContext.ResolveTopBlock
ntext anonymous_method_host, Mono.CSharp.ToplevelBlock block,
ters ip, IMethodData md, System.Boolean& unreachable) [0x00000]

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

More information about the mono-bugs mailing list