[Mono-bugs] [Bug 666008] [Regression] Banshee-1 crashes with a stack overflow on opensuse-11.3-x86_64
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Feb 4 07:23:41 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=666008
https://bugzilla.novell.com/show_bug.cgi?id=666008#c13
--- Comment #13 from Zoltan Varga <vargaz at gmail.com> 2011-02-04 12:23:40 UTC ---
This is a runtime bug, testcase:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
using System;
abstract class Foo<T>
{
public virtual void OnReloaded () {
Console.WriteLine ("HIT!");
}
}
class Bar<T> : Foo<T>
{
public void DoIt (Action a) {
a ();
}
public override void OnReloaded () {
DoIt (base.OnReloaded);
}
}
public class Tests
{
public static void Main (String[] args) {
var b = new Bar<string> ();
b.OnReloaded ();
}
}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
This is caused by this code in mini-trampolines.c:
if (delegate->target && method->flags & METHOD_ATTRIBUTE_VIRTUAL &&
method->klass->flags & TYPE_ATTRIBUTE_ABSTRACT) {
method = mono_object_get_virtual_method (delegate->target, method);
enable_caching = FALSE;
}
Rodrigo ?
--
Configure bugmail: https://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