[Mono-bugs] [Bug 621585] New: Crash with generics sharing

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jul 12 08:34:00 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=621585

http://bugzilla.novell.com/show_bug.cgi?id=621585#c0


           Summary: Crash with generics sharing
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: generics
        AssignedTo: mprobst at novell.com
        ReportedBy: rkvinge at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Test case:

using System;
using System.Collections.Generic;
using System.Linq;

public class Test {
    public static void Main () {
        var dic = new Dictionary<object, object>();

        dic [new object () ] = new object ();

        foreach (var kvp in dic.OrderBy (pp => 1)) {
            Console.WriteLine (kvp.Key);
        }
    }
}

dmcs test.cs -r:System.Xml.Linq.dll && mono test.exe

ends up crashing
Note that running with MONO_GENERIC_SHARING=none also crashes, but differently.

Though if I compile with smcs and run with the moonlight class libs I get the
same crash with generics sharing enabled, but no crash without.

We're running into this in quite a few tests we got from MS, so I'm setting
severity to Major.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list