[Mono-bugs] [Bug 560325] [verifier] abort in find_method on bad assembly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Dec 11 09:14:18 EST 2009


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

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


--- Comment #1 from Sebastien Pouliot <spouliot at novell.com> 2009-12-11 14:14:17 UTC ---
Created an attachment (id=332190)
 --> (http://bugzilla.novell.com/attachment.cgi?id=332190)
second test case

Another test case. This is using System.Windows.dll from 2.1 (Moonlight, not
the 4.0 class libs)

MONO_PATH=/opt/mono/lib/moonlight/plugin/ gdb --args mono --security=core-clr
--compile-all System.Windows.unknown.22130.dll 

** ERROR:(loader.c:663):find_method: assertion failed:
(from_class->interface_offsets_count == in_class->interface_offsets_count)

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x414e5950 (LWP 15585)]
0x00007f1b374d65c5 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00007f1b374d65c5 in raise () from /lib64/libc.so.6
#1  0x00007f1b374d7bb3 in abort () from /lib64/libc.so.6
#2  0x00007f1b383042c7 in g_assertion_message () from
/usr/lib64/libglib-2.0.so.0
#3  0x00007f1b38304762 in g_assertion_message_expr () from
/usr/lib64/libglib-2.0.so.0
#4  0x00000000005cbff9 in find_method (in_class=0xaeca88, ic=0x0,
name=0x7f1b37482cf1 "add_ItemsChanged", sig=0xb8e940, from_class=0xb71630) at
loader.c:663
#5  0x00000000005cb122 in method_from_memberref (image=0x9d3380, idx=<value
optimized out>, typespec_context=0x0, used_context=<value optimized out>)
    at loader.c:958
#6  0x00000000005cb2a5 in mono_get_method_from_token (image=0x3cde,
token=167772684, klass=0x0, context=0x0, used_context=0xffffffffffffffff) at
loader.c:1478
#7  0x00000000005cb8ba in mono_get_method_full (image=0x9d3380,
token=167772684, klass=0x0, context=0x0) at loader.c:1592
#8  0x000000000057e81a in verifier_load_method (ctx=0x414e38b0,
token=167772684, opcode=0x6b627d "callvirt") at verify.c:862
#9  0x00000000005861b5 in do_invoke_method (ctx=0x414e38b0,
method_token=167772684, virtual=1) at verify.c:3373
#10 0x00000000005921a0 in mono_method_verify (method=0xb8e838, level=48) at
verify.c:5405
#11 0x00000000005958b7 in mono_method_verify_with_current_settings
(method=0xb8e838, skip_visibility=0) at verify.c:6079
#12 0x000000000041a9b2 in mini_method_verify (cfg=0xb48a00, method=0xb8e838) at
mini.c:1249
#13 0x00000000004510eb in mono_method_to_ir (cfg=0xb48a00, method=0xb8e838,
start_bblock=0x0, end_bblock=0x0, return_var=0x0, dont_inline=0x0,
inline_args=0x0, 
    inline_offset=0, is_virtual_call=0) at method-to-ir.c:5403
#14 0x000000000041f7bd in mini_method_compile (method=0xb8e838, opts=55667199,
domain=0x7f1b3881adb0, run_cctors=0, compile_aot=0, parts=0) at mini.c:3402
#15 0x00000000004a382e in compile_all_methods_thread_main (args=0x7fff40988500)
at driver.c:881
#16 0x00000000005aef56 in start_wrapper (data=0xa26550) at threads.c:662
#17 0x0000000000656cb3 in thread_start_routine (args=0x9f9c30) at
wthreads.c:286
#18 0x000000000066fece in GC_start_routine (arg=0x7f1b3881be70) at
pthread_support.c:1390
#19 0x00007f1b37a5a040 in start_thread () from /lib64/libpthread.so.0
#20 0x00007f1b3757708d in clone () from /lib64/libc.so.6
#21 0x0000000000000000 in ?? ()
(gdb) up 4
#4  0x00000000005cbff9 in find_method (in_class=0xaeca88, ic=0x0,
name=0x7f1b37482cf1 "add_ItemsChanged", sig=0xb8e940, from_class=0xb71630) at
loader.c:663
663            g_assert (from_class->interface_offsets_count ==
in_class->interface_offsets_count);
(gdb) p from_class->interface_offsets_count
$1 = 0
(gdb) p in_class->interface_offsets_count
$2 = 8

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