[Mono-bugs] [Bug 567679] New: [verifier] abort in count_virtual_methods on bad assembly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Dec 30 10:34:13 EST 2009


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

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


           Summary: [verifier] abort in count_virtual_methods on bad
                    assembly
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.6.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: verifier
        AssignedTo: rkumpera at novell.com
        ReportedBy: spouliot at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=334607)
 --> (http://bugzilla.novell.com/attachment.cgi?id=334607)
assembly to reproduce abort

Another "known" case
        g_assert (!class->exception_type); /*FIXME do proper error handling*/

MONO_PATH=/opt/mono/lib/moonlight/plugin/ gdb --args pedump --verify all
System.sigabrt.95933.dll

** ERROR:(class.c:2676):count_virtual_methods: assertion failed:
(!class->exception_type)
[New Thread 0x7f42d024a710 (LWP 4218)]

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7f42d024a710 (LWP 4218)]
0x00007f42cedb75c5 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00007f42cedb75c5 in raise () from /lib64/libc.so.6
#1  0x00007f42cedb8bb3 in abort () from /lib64/libc.so.6
#2  0x00007f42cfbe52c7 in g_assertion_message () from
/usr/lib64/libglib-2.0.so.0
#3  0x00007f42cfbe5762 in g_assertion_message_expr () from
/usr/lib64/libglib-2.0.so.0
#4  0x000000000041b7d9 in count_virtual_methods (class=0x87c0a0) at
class.c:2676
#5  0x000000000041bc70 in setup_interface_offsets (class=0x888290, cur_slot=0)
at class.c:2786
#6  0x000000000041fc4b in mono_class_init (class=0x888290) at class.c:4329
#7  0x000000000041a887 in collect_implemented_interfaces_aux (klass=0x88a630,
res=0x7fffd8268af8) at class.c:2330
#8  0x000000000041a8cb in mono_class_get_implemented_interfaces
(klass=0x88a630) at class.c:2341
#9  0x000000000041cd1a in mono_class_setup_vtable_general (class=0x88a630,
overrides=0x0, onum=0) at class.c:3374
#10 0x000000000041c4f8 in mono_class_setup_vtable (class=0x88a630) at
class.c:2977
#11 0x000000000041fc02 in mono_class_init (class=0x88a630) at class.c:4326
#12 0x000000000040eb23 in verify_image_file (fname=0x7fffd826b28e
"System.sigabrt.95933.dll") at pedump.c:475
#13 0x000000000040f376 in main (argc=4, argv=0x7fffd82690b8) at pedump.c:692
(gdb) up 4
#4  0x000000000041b7d9 in count_virtual_methods (class=0x87c0a0) at
class.c:2676
warning: Source file is more recent than executable.
2676            g_assert (!class->exception_type); /*FIXME do proper error
handling*/
(gdb) p class->name
$1 = 0x7f42d01cd1fa "IEnumerator"
(gdb) p class->name_space
$2 = 0x7f42d01ccf70 "System.Collections"
(gdb) p class->exception_type
$3 = 5 '\005'

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