Bug 31231

Summary: Crash with generics makeref
Product: [Mono] Runtime Reporter: Marek Safar <masafa>
Component: JITAssignee: Bugzilla <bugzilla>
Severity: normal CC: mono-bugs+mono, mono-bugs+runtime, vargaz
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS   
Tags: Is this bug a regression?: ---
Last known good build:

Description Marek Safar 2015-06-18 15:44:44 UTC
using System;
    class Program
        struct S1<T>
            public T x;

            public void Assign(T i)
                x = i;

        static void Main(string[] args)
            int x = 0;
            var _ref = __makeref(x);

            S1<int> s = new S1<int>();
            _ref = __makeref(s);
            __refvalue(_ref, S1<int>).Assign(333);

When executed on Mono

Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
Comment 1 Zoltan Varga 2015-06-23 22:15:46 UTC
Fixed in master/4.2.