[Mono-bugs] [Bug 671245] SRE resolves type into wrong token

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Feb 11 15:45:52 EST 2011


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

https://bugzilla.novell.com/show_bug.cgi?id=671245#c1


Zoltan Varga <vargaz at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vargaz at gmail.com

--- Comment #1 from Zoltan Varga <vargaz at gmail.com> 2011-02-11 20:45:51 UTC ---
Here is the stack trace I get:


#0  resolve_object (image=0x7ffff3f40000, obj=0x7ffff4135a80,
handle_class=0x7fffffffcb48, 
    context=0x0) at reflection.c:11775
#1  0x00000000005ff033 in mono_reflection_lookup_dynamic_token
(image=0x7ffff3f40000, token=
    33554434, valid_token=1, handle_class=0x7fffffffcb48, context=0x0) at
reflection.c:11632
#2  0x00000000006665fd in mono_lookup_dynamic_token (image=0x7ffff3f40000,
token=33554434, 
    context=0x0) at class.c:7718
#3  0x0000000000663ea6 in mono_class_get_full (image=0x7ffff3f40000,
type_token=33554434, 
    context=0x0) at class.c:6672
#4  0x0000000000664241 in mono_class_get (image=0x7ffff3f40000,
type_token=33554434)
    at class.c:6767
#5  0x0000000000664f53 in mono_class_from_name (image=0x7ffff3f40000,
name_space=0x70c03e "", 
    name=0x1a55b00 "Class1") at class.c:7134
#6  0x00000000005f1f01 in mono_reflection_get_type_internal
(rootimage=0x7ffff3f40000, image=
    0x7ffff3f40000, info=0x7fffffffd380, ignorecase=0) at reflection.c:7443
#7  0x00000000005f22a9 in mono_reflection_get_type_internal_dynamic
(rootimage=0x7ffff3f40000, 
    assembly=0x7ffff3f38f00, info=0x7fffffffd380, ignorecase=0) at
reflection.c:7544
#8  0x00000000005f23cb in mono_reflection_get_type_with_rootimage
(rootimage=0x7ffff3f40000, 
    image=0x7ffff3f40000, info=0x7fffffffd380, ignorecase=0,
type_resolve=0x7fffffffd37c)
    at reflection.c:7571
#9  0x00000000005f21e1 in mono_reflection_get_type (image=0x7ffff3f40000,
info=0x7fffffffd380, 
    ignorecase=0, type_resolve=0x7fffffffd37c) at reflection.c:7525
#10 0x00000000006796d6 in ves_icall_System_Reflection_Assembly_InternalGetType
(assembly=
    0x7ffff3f37e58, module=0x0, name=0x7ffff3f33d20, throwOnError=0 '\000',
ignoreCase=
    0 '\000') at icall.c:4152
#11 0x00000000400262ee in (wrapper managed-to-native)
System.Reflection.Assembly:InternalGetType (param0=..., param1=...,
param2="Class1", param3=false, param4=false) at xdb.il:834
---Type <return> to continue, or q <return> to quit---
#12 0x00000000400b7cf8 in System.Reflection.Emit.AssemblyBuilder:GetType
(this=..., name=
    "Class1", throwOnError=false, ignoreCase=false)
    at
/home/zovarga/git/mono/mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs:1228
#13 0x00000000400261b2 in System.Reflection.Assembly:GetType (this=...,
name="Class1")
    at
/home/zovarga/git/mono/mcs/class/corlib/System.Reflection/Assembly.cs:360
#14 0x000000004006d676 in Mono.CSharp.Evaluator:CompileBlock (host=...,
undo=..., Report=...)
    at /home/zovarga/git/mono/mcs/mcs/eval.cs:761
#15 0x0000000040051bec in Mono.CSharp.Evaluator:Compile (input="typeof(Z);",
compiled=
    140737488344952) at /home/zovarga/git/mono/mcs/mcs/eval.cs:294
#16 0x00000000400517e0 in Mono.CSharp.Evaluator:Evaluate (input="typeof(Z);",
result=
    140737488345056, result_set=140737488345071) at
/home/zovarga/git/mono/mcs/mcs/eval.cs:367
#17 0x00000000400516e0 in Mono.CSharpShell:Evaluate (this=<value optimized
out>, input=
    "typeof(Z);") at /home/zovarga/git/mono/mcs/tools/csharp/repl.cs:313
#18 0x000000004007411b in Mono.CSharpShell:ReadEvalPrintLoopWith (this=...,
readline=...)
    at /home/zovarga/git/mono/mcs/tools/csharp/repl.cs:280
#19 0x0000000040046158 in Mono.CSharpShell:ReadEvalPrintLoop (this=...)
    at /home/zovarga/git/mono/mcs/tools/csharp/repl.cs:302
#20 0x0000000040033f70 in Mono.CSharpShell:Run (this=..., startup_files=string
[0])
    at /home/zovarga/git/mono/mcs/tools/csharp/repl.cs:448
#21 0x0000000040019955 in Mono.Driver:Startup (args=string [0])
    at /home/zovarga/git/mono/mcs/tools/csharp/repl.cs:63
#22 0x0000000040013d34 in Mono.Driver:Main (args=string [0])
    at /home/zovarga/git/mono/mcs/tools/csharp/repl.cs:50
#23 0x0000000040013e3f in (wrapper runtime-invoke)
<Module>:runtime_invoke_int_object (
    param0=<value optimized out>, param1=140737488346048, param2=0,
param3=1073822768)
    at xdb.il:64
#24 0x00000000004224e6 in mono_jit_runtime_invoke (method="Mono.Driver:Main
()", obj=0x0, 
    params=0x7fffffffdbc0, exc=0x0) at mini.c:5722
#25 0x000000000062d60e in mono_runtime_invoke (method="Mono.Driver:Main ()",
obj=0x0, params=
    0x7fffffffdbc0, exc=0x0) at object.c:2730
#26 0x000000000062f9d7 in mono_runtime_exec_main (method="Mono.Driver:Main ()",
args=
    0x7ffff7e2ffc0, exc=0x0) at object.c:3905
#27 0x000000000062ee75 in mono_runtime_run_main (method="Mono.Driver:Main ()",
argc=0, argv=
    0x7fffffffe098, exc=0x0) at object.c:3535
#28 0x00000000004b3749 in mono_jit_exec (domain=0x7ffff7e50d48,
assembly=0xb13520, argc=1, 
    argv=0x7fffffffe090) at driver.c:944
#29 0x00000000004b397f in main_thread_handler (user_data=0x7fffffffddc0) at
driver.c:1003
#30 0x00000000004b5c55 in mono_main (argc=2, argv=0x7fffffffe088) at
driver.c:1848
#31 0x0000000000414a56 in mono_main_with_options (argc=2, argv=0x7fffffffe088)
at main.c:66
#32 0x0000000000414a86 in main (argc=2, argv=0x7fffffffe088) at main.c:97

so csharp calls System.Reflection.Assembly:GetType () with 'Class1' as the
argument, thats why it prints 'Class1'.

-- 
Configure bugmail: https://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