[Mono-bugs] [Bug 653842] New: A case that runtime crashed if startup --llvm --gc=sgen, using generic and struct.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 16 01:05:57 EST 2010


https://bugzilla.novell.com/show_bug.cgi?id=653842

https://bugzilla.novell.com/show_bug.cgi?id=653842#c0


           Summary: A case that runtime crashed if startup --llvm
                    --gc=sgen, using generic and struct.
    Classification: Mono
           Product: Mono: Runtime
           Version: unspecified
          Platform: x86-64
        OS/Version: RHEL 5
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: GC
        AssignedTo: lupus at novell.com
        ReportedBy: mailing at mono.developer.kr
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7

Alwasy crashed. Sample code below.



using System;
using System.Collections.Generic;

namespace MyTest
{
    class Daemon
    {
        [STAThread]
        static void Main(string[] args)
        {
            var crash = new MyTest.Crash();
            crash.Crack();
        }
    }
}

namespace MyTest
{
    public class Crash
    {
        public Dictionary<uint, TestStruct> _dict;

        public Crash()
        {
            _dict = new Dictionary<uint, TestStruct>();
        }

        public void Crack()
        {
            for (uint i = 1; i < 1000000; i++) {
                var groupStatus = new TestStruct();
                groupStatus.SN = i;
                groupStatus.Status = i.ToString();
                _dict.Add(groupStatus.SN, groupStatus);

            }

        }

    }

    public struct TestStruct
    {
        public uint SN;
        public string Status;
    }
}

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

-- 
Configure bugmail: https://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