[Mono-bugs] [Bug 561728] New: [verifier] SIGSEGV in find_method_in_metadata on a bad assembly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Dec 8 15:54:14 EST 2009


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

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


           Summary: [verifier] SIGSEGV in find_method_in_metadata on a 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=331633)
 --> (http://bugzilla.novell.com/attachment.cgi?id=331633)
assembly to reproduce crash

MONO_PATH=/opt/mono/lib/moonlight/plugin/ gdb --args mono --security=core-clr
--compile-all System.sigabrt.6674.dll

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x4195f950 (LWP 28097)]
0x000000000057a3ae in find_method_in_metadata (klass=0xa44900, name=0x6b3d9c
".cctor", param_count=0, flags=2048) at class.c:7660
7660                if ((param_count == -1) || mono_method_signature
(method)->param_count == param_count) {
(gdb) p method
$1 = (MonoMethod *) 0xa44d90
(gdb) p mono_method_signature(method)
$2 = (MonoMethodSignature *) 0x0
(gdb) bt
#0  0x000000000057a3ae in find_method_in_metadata (klass=0xa44900,
name=0x6b3d9c ".cctor", param_count=0, flags=2048) at class.c:7660
#1  0x0000000000573148 in mono_class_init (class=0xa44900) at class.c:4162
#2  0x000000000057dec6 in mono_type_is_valid_in_context (ctx=0x4195d8b0,
type=0xa449c0) at verify.c:778
#3  0x000000000058ff77 in mono_method_verify (method=0xa448d0, level=48) at
verify.c:5018
#4  0x00000000005956bf in mono_method_verify_with_current_settings
(method=0xa448d0, skip_visibility=0) at verify.c:6074
#5  0x000000000041a985 in mini_method_verify (cfg=0xa3c000, method=0xa448d0) at
mini.c:1248
#6  0x00000000004510bf in mono_method_to_ir (cfg=0xa3c000, method=0xa448d0,
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
#7  0x000000000041f790 in mini_method_compile (method=0xa448d0, opts=55667199,
domain=0x7f5dc7157db0, run_cctors=0, compile_aot=0, parts=0) at mini.c:3401
#8  0x00000000004a381a in compile_all_methods_thread_main (args=0x7fffcf2c6e40)
at driver.c:881
#9  0x00000000005aea8a in start_wrapper (data=0x9d77a0) at threads.c:662
#10 0x00000000006579c3 in thread_start_routine (args=0x9fac00) at
wthreads.c:286
#11 0x0000000000670bde in GC_start_routine (arg=0x7f5dc7158e70) at
pthread_support.c:1390
#12 0x00007f5dc6397040 in start_thread () from /lib64/libpthread.so.0
#13 0x00007f5dc5eb408d in clone () from /lib64/libc.so.6
#14 0x0000000000000000 in ?? ()

another case where mono_method_signature returns NULL

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