[Mono-bugs] [Bug 422113] New: Segfault in Activator. CreateInstance with incomplete SRE-created type
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Sep 2 08:50:00 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=422113
Summary: Segfault in Activator.CreateInstance with incomplete
SRE-created type
Product: Mono: Runtime
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: juraj at hotfeet.ch
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=236714)
--> (https://bugzilla.novell.com/attachment.cgi?id=236714)
test case
Just compile and run the attached test case. The missing implementation of
{get,set}_RealObject leads to the crash.
Actual result:
Segfault (see below) when calling Activator.CreateInstance
Expected result:
TypeLoadException when calling TypeBulder.CreateType (that's what .NET does)
======
no implementation for interface method IActivationProxy::get_RealObject() in
class SomeNS.SomeClass
METHOD .ctor()
Stacktrace:
at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke
(object,object[],System.Exception&) <0x00004>
at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke
(object,object[],System.Exception&) <0xffffffff>
at System.Reflection.MonoCMethod.Invoke
(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
<0x000a2>
at System.Reflection.MonoCMethod.Invoke
(System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
<0x0001e>
at System.Reflection.ConstructorInfo.Invoke (object[]) <0x00036>
at System.Activator.CreateInstance (System.Type,bool) <0x000da>
at System.Activator.CreateInstance (System.Type) <0x0000c>
at Test.Main () <0x000a3>
at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
Native stacktrace:
mono [0x806cf39]
mono [0x80866ab]
[0x11040c]
mono(mono_runtime_invoke_array+0x208) [0x80b0a08]
mono [0x80c4a0f]
[0x4160d3]
[0x415de3]
[0x415d37]
[0x415cef]
[0x414d83]
[0x414c95]
[0x40f324]
[0x40f1ef]
mono(mono_runtime_exec_main+0xe6) [0x80ae926]
mono(mono_runtime_run_main+0x16d) [0x80af09d]
mono(mono_main+0x17ac) [0x805a74c]
mono [0x8058a22]
/lib/libc.so.6(__libc_start_main+0xe6) [0x6635d6]
mono [0x8058961]
--
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