[Mono-dev] Segfault in JIT - How to fix?

Mirko Wischer Mirko.Wischer at sma.de
Mon Jul 25 01:44:40 EDT 2011


I forgot to mention, that the second check is needed because it's also possible, that
the call to "mono_find_jit_opcode_emulation" returns null in a little different setup.
But I just saw that Zoltan closed and fixed (or vice versa :)) the bug with a fix similar to what you suggested.

And yes I also thing that this is a nicer fix ;-)

Thanks a lot for your replies and the fast fixing on this issue.


Von: Rodrigo Kumpera [mailto:kumpera at gmail.com]
Gesendet: Freitag, 22. Juli 2011 16:16
An: Mirko Wischer
Cc: mono-devel-list at lists.ximian.com
Betreff: Re: [Mono-dev] Segfault in JIT - How to fix?

On Fri, Jul 22, 2011 at 7:51 AM, Mirko Wischer <Mirko.Wischer at sma.de<mailto:Mirko.Wischer at sma.de>> wrote:

I tried to make a patch that fixes the problem - see attached file.
My example code now works without problems. I also attached
the patch to novell-mono-bugzilla, but I'm not really sure if that's
the right place.

Bye Mirko

You don't need the second check. The assert is there to make sure we have everything in sync.

I believe a nicer fix would be to do something like " if (!ins->next) { ins->next = OP_NOP; break; }" only
as it would reduce the diff size and nesting levels.

The best way to get the fix in is to fork mono from github and make a pull request. Reference the bug number on it
and we'll take care of the rest.

Thanks a lot for working on this.


SMA Solar Technology AG
Aufsichtsrat: Guenther Cramer (Vorsitzender)
Vorstand: Juergen Dolle, Roland Grebe, Uwe Hertel, Pierre-Pascal Urbon, Marko Werner
Handelsregister: Amtsgericht Kassel HRB 3972
Sitz der Gesellschaft: 34266 Niestetal
USt-ID-Nr. DE 113 08 59 54
WEEE-Reg.-Nr. DE 95881150
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20110725/fcd3109c/attachment.html 

More information about the Mono-devel-list mailing list