[Mono-dev] JIT compiler crashes application

Rodrigo Kumpera kumpera at gmail.com
Thu Dec 6 17:57:34 UTC 2012

On Thu, Dec 6, 2012 at 12:38 PM, Andrii Nakryiko
<andrii.nakryiko at gmail.com>wrote:

> It's not about that particular method, we got earlier same kind of crashes
> on different methods, for
> instance, ProtoBuf.Serializers.ArrayDecorator:Write ()
> If I remember correctly, I got this crash even for some method on List<T>,
> though I can't locate that log quickly. If I get it, will post here.
> Also, this bug manifests on different versions of Mono (< 3.0).

So the problem is not miscompilation. It might be memory corruption
related. Can you try running it under valgrind or any other malloc debug
Does it always crash on that particular g_assert? If it does, it's a matter
of augmenting it to produce a better crash message.

> This behavior is very randomly reproducible. To give you some context, we
> constantly run "test scenarios" where we start our TestClient in a loop.
> TestClient does some work and then exits. Then our shell script starts
> TestClient again. And sometimes TestClient crashes with error I described.
> What is interesting, crash mostly occurs not on first run of TestClient
> during this test scenario. Maybe that can help somehow.

Then please try to reduce it to a test case that is small enough so we can
work on.

Can using LLVM back-end help to mitigate this?

I have no reason to believe that the LLVM backend would help here.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20121206/bf732c28/attachment.html>

More information about the Mono-devel-list mailing list