[Mono-bugs] [Bug 559369] New: Unmanaged stack overflow for generic virtual calls

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 30 18:36:10 EST 2009



           Summary: Unmanaged stack overflow for generic virtual calls
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: Dax at daxxfiles.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Description of Problem:

Some cases of generic inheritance and virtual calls produce unmanaged stack
overflows at creation time of these inherited objects.

Steps to reproduce the problem:


class Program {
static void Main() { var x = new holderJ(); }

class holderJ {
    public virtual TValue Value<TKey, TValue>() {
        return target.Value<TKey, TValue>();

    holderJ target = new actualHolderJ<int>();

    class actualHolderJ<T> : holderJ {
        struct holder<TKey, TValue> {
            public static TValue Val;

        public override TValue Value<TKey, TValue>() {
            return actualHolderJ<T>.holder<TKey, TValue>.Val;

Actual Results:

Unmanaged stack overflows

Expected Results:

no output, no error

How often does this happen? 

every time

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

More information about the mono-bugs mailing list