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

Rodrigo Kumpera kumpera at gmail.com
Fri Jul 22 10:16:21 EDT 2011

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

> Hi,
> 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20110722/c8b12f88/attachment.html 

More information about the Mono-devel-list mailing list