[Mono-bugs] [Bug 558741] [verifier] SIGSEGV in mono_type_get_basic_type_from_generic on a bad assembly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Nov 26 11:36:26 EST 2009


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

http://bugzilla.novell.com/show_bug.cgi?id=558741#c1


--- Comment #1 from Sebastien Pouliot <spouliot at novell.com> 2009-11-26 16:36:23 UTC ---
(gdb) up 1
#1  0x0000000000417eee in mono_class_layout_fields (class=0x8aaaa0) at
class.c:1445
1445                ftype = mono_type_get_basic_type_from_generic (ftype);
(gdb) p class->name
$1 = 0x7f2dce8954fa "UriFormatException"
(gdb) p field->type
$2 = (MonoType *) 0x8aac70
(gdb) p *field->type
$3 = {data = {klass = 0x8a88e8, type = 0x8a88e8, array = 0x8a88e8, method =
0x8a88e8, generic_param = 0x8a88e8, generic_class = 0x8a88e8}, attrs = 32854,
type = MONO_TYPE_VALUETYPE, num_mods = 0, byref = 0, 
  pinned = 0, modifiers = 0x8aac7c}
(gdb) p field->type->data.klass->name
$4 = 0x7f2dce8954f0 "UriFormat"
(gdb) p field->type->data.klass->element_class
$5 = (MonoClass *) 0x8a88e8
(gdb) p field->type->data.klass
$6 = (MonoClass *) 0x8a88e8

^

MonoType*
mono_class_enum_basetype (MonoClass *klass)
{
    if (klass->element_class == klass)
        /* SRE */
        return NULL;
..

Looks like this should be spotted/reported in mono_class_setup_fields

-- 
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