Created attachment 164 [details]
This crashes the runtime in various ways at least on Linux/AMD64 (it's ok if it throws InvalidOperationException).
When running on SGen it happens now and then that an object's vtable pointer appears to be overwritten. In those cases, however, the value in memory is often correct at the point of crash, but the value that was read from memory is faulty. The lower 32 bits of the read value are usually correct as well, though.
In other cases it asserts in mono_arch_find_jit_info() in exceptions-amd64.c because an LMF's previous_lmf field has the 2 bit set even though the soft debug code is never called. Setting a watchpoint to catch an offending write to the mono_lmf TLS variable makes it not happen.
Sometimes it crashes by jumping to non-code.
This test will fail because suspend/resume/abort are not synchronous in mono so you can't safely pair Suspend/Resume and expect it to work.
I cannot reproduce with Mono 18.104.22.1686 (master/117468d740a)