Assertion at object.c:2189, condition 'vt' not met` (source line has a comment that says it needs to be fixed).
Full log/stacktrace: https://gist.github.com/garuma/164e025c549a80696e25
Mono JIT compiler version 4.2.1 (explicit/3ddba85 Mon Dec 7 17:52:50 EST 2015)
Manually built a 3ddba85, so far not able to reproduce. Still trying to figure out if my build options were the same.
Also not reproducing for me yet with the tarball Jérémie is running.
Created attachment 14249 [details]
Crash on tip of Mono 4.3.1
The problem here is ves_icall_Remoting_RealProxy_GetTransparentProxy . mono_remote_class_vtable expects the MonoRemoteClass it receives to be valid, and in particular, mono_class_proxy_vtable which it calls will assert if exception_type is set on the MonoRemoteClass's 'proxy_class' field. However ves_icall_Remoting_RealProxy_GetTransparentProxy can, with specific incorrect inputs, construct a MonoRemoteClass object with a bad proxy_class. I expect that either Xamarin Studio is passing in bad inputs of this type, or something is messed up with DLLs on Jeremie's computer.
The fix is for the icall to check before calling mono_remote_class_vtable if proxy_class failed and throw a nice managed exception. (This means things will still be failing on Jeremie's computer, but we will know why.)
(Note there is some question about whether we are handling this in the right place: there is a very old comment 'properly handle failure' on the mono_class_proxy_vtable assert, and Rodrigo was initially uncertain whether something in the icall should have been catching on the failure earlier.)
Pushed a commit to master and 4.3.1 that causes this failure to emit an exception instead of an assert crash.