[Mono-bugs] [Bug 348522] SIGABRT when a custom Binder doesn' t convert parameters correctly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jan 30 10:48:42 EST 2008


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

User rkumpera at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=348522#c11





--- Comment #11 from Rodrigo Kumpera <rkumpera at novell.com>  2008-01-30 08:48:41 MST ---
I nailed down the issue with the remoting tests. I have a patch to fix it but
it looks like a big hack than a proper fix. The patch to
mono_runtime_invoke_array does the following:

+pao = mono_array_get (params, MonoObject*, i);
+pa [i] = pao;
+
+if (pao != NULL && !mono_class_is_assignable_from (par_class,
pao->vtable->klass)) {
+       if (pao->vtable->klass != mono_defaults.transparent_proxy_class ||
!mono_class_is_assignable_from (par_class,
((MonoTransparentProxy*)pao)->remote_class->proxy_class))
+               mono_raise_exception (mono_get_exception_argument ("",
"Incompatible type passed"));
+       }
+}




In some cases the object type is TransparentProxy instead of the object itself.
I'm still not sure why this happens and the way I'm handling it doesn't seen
right. I haven't been able to isolate the issue outside of running
System.Runtime.Remoting test suite.


-- 
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