[Mono-bugs] [Bug 342512] New: SIGABRT wrapping delegate

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Nov 17 08:07:39 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=342512#c342505

           Summary: SIGABRT wrapping delegate
           Product: Mono: Runtime
           Version: SVN
          Platform: x86
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: gert.driesen at pandora.be
         QAContact: mono-bugs at ximian.com
          Found By: ---


While attempting to create a small repro for bug #342505, I got to a situation
where the code "should" result in the same error. However, the error differs
from the error reported from running NPlot.

To reproduce, compile and run the following code:

using System;

public class PlotMenuItem
{
        private EventHandler callback_;

        public PlotMenuItem ()
        {
        }

        public PlotMenuItem (EventHandler callback)
        {
                callback_ = callback;

                PlotMenuItem child = new PlotMenuItem ();
                child.Callback += new EventHandler (callback);
        }

        static void Main ()
        {
                new PlotMenuItem (new EventHandler (MenuItem_Click));
        }

        static void MenuItem_Click (object sender, EventArgs e)
        {
        }

        public EventHandler Callback {
                get { return callback_; }
                set { callback_ = value; }
        }
}

Expected result:

Successful execution.

Actual result:


** ERROR **: file object.c: line 2089 (mono_object_get_virtual_method):
assertion failed: (res)
aborting...
Stacktrace:

  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_ldvirtfn
(object,intptr) <0x00004>
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_ldvirtfn
(object,intptr) <0xffffffff>
  at PlotMenuItem..ctor (System.EventHandler) <0x00044>
  at PlotMenuItem.Main () <0x0003e>
  at (wrapper runtime-invoke) PlotMenuItem.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        mono [0x8160b9e]
        [0xffffe440]
        /lib/tls/i686/cmov/libc.so.6(abort+0x101) [0xb7d50201]
        /usr/lib/libglib-2.0.so.0(g_logv+0x4ca) [0xb7ee6f4a]
        /usr/lib/libglib-2.0.so.0(g_log+0x29) [0xb7ee6f89]
        /usr/lib/libglib-2.0.so.0(g_assert_warning+0x76) [0xb7ee7006]
        mono(mono_object_get_virtual_method+0xf3) [0x80ec673]
        mono [0x814f4b2]
        [0xb792d4aa]
        [0xb792d40d]
        [0xb792d27f]
        [0xb792d1be]
        mono(mono_runtime_exec_main+0xbb) [0x80f09cb]
        mono(mono_runtime_run_main+0x1ba) [0x80f1dda]
        mono(mono_main+0xfaf) [0x805b56f]
        mono [0x805a0b2]
        /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0) [0xb7d3a050]
        mono [0x805a021]

Debug info from gdb:

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1210964272 (LWP 6251)]
[New Thread -1220682864 (LWP 6253)]
[New Thread -1220535408 (LWP 6252)]
0xffffe410 in __kernel_vsyscall ()
  3 Thread -1220535408 (LWP 6252)  0xffffe410 in __kernel_vsyscall ()
  2 Thread -1220682864 (LWP 6253)  0xffffe410 in __kernel_vsyscall ()
  1 Thread -1210964272 (LWP 6251)  0xffffe410 in __kernel_vsyscall ()

Thread 3 (Thread -1220535408 (LWP 6252)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7e9f9f6 in ?? () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x0810c771 in collection_thread (unused=0x0) at collection.c:34
#3  0xb7e9846b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#4  0xb7df76de in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread -1220682864 (LWP 6253)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7e9c676 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0x080feaff in timedwait_signal_poll_cond (cond=0xb78db1dc, 
    mutex=0xb78db1c4, timeout=0x0, alertable=0) at handles.c:1443
#3  0x0810159f in _wapi_handle_timedwait_signal_handle (handle=0x404, 
    timeout=0x0, alertable=0) at handles.c:1523
#4  0x0810161c in _wapi_handle_wait_signal_handle (handle=0x404, alertable=0)
    at handles.c:1483
#5  0x080fdd3f in WaitForSingleObjectEx (handle=0x404, timeout=4294967295, 
    alertable=0) at wait.c:200
#6  0x080cbd5a in finalizer_thread (unused=0x0) at gc.c:888
#7  0x080e9434 in start_wrapper (data=0x8248d88) at threads.c:550
#8  0x0810dd12 in thread_start_routine (args=0xb7787768) at threads.c:264
#9  0x08121ef5 in GC_start_routine (arg=0x22f40) at pthread_support.c:1369
#10 0xb7e9846b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#11 0xb7df76de in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread -1210964272 (LWP 6251)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7db6f69 in fork () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7ea1874 in fork () from /lib/tls/i686/cmov/libpthread.so.0
#3  0xb7f0eab9 in ?? () from /usr/lib/libglib-2.0.so.0
#4  0x00000010 in ?? ()
#5  0x00000010 in ?? ()
#6  0x0826b060 in ?? ()
#7  0x0826b0b8 in ?? ()
#8  0x0826b0e8 in ?? ()
#9  0xe96258b8 in ?? ()
#10 0xb7d8e071 in ?? () from /lib/tls/i686/cmov/libc.so.6
#11 0x00000010 in ?? ()
#12 0x00000010 in ?? ()
#13 0x00000010 in ?? ()
#14 0xbfa228d4 in ?? ()
#15 0xb7d8ffc0 in malloc () from /lib/tls/i686/cmov/libc.so.6
#16 0xb7f0f6ab in g_spawn_sync () from /usr/lib/libglib-2.0.so.0
#17 0xb7f0fb4c in g_spawn_command_line_sync () from /usr/lib/libglib-2.0.so.0
#18 0x08160c39 in mono_handle_native_sigsegv (signal=6, ctx=0xbfa2341c)
    at mini-exceptions.c:1061
#19 <signal handler called>
#20 0xffffe410 in __kernel_vsyscall ()
#21 0xb7d4e875 in raise () from /lib/tls/i686/cmov/libc.so.6
#22 0xb7d50201 in abort () from /lib/tls/i686/cmov/libc.so.6
#23 0xb7ee6f4a in g_logv () from /usr/lib/libglib-2.0.so.0
#24 0xb7ee6f89 in g_log () from /usr/lib/libglib-2.0.so.0
#25 0xb7ee7006 in g_assert_warning () from /usr/lib/libglib-2.0.so.0
#26 0x080ec673 in mono_object_get_virtual_method (obj=0x49ff0, 
    method=0xb7f6b21c) at object.c:2089
#27 0x0814f4b2 in mono_ldvirtfn (obj=0x49ff0, method=0x8265be4)
    at jit-icalls.c:51
#28 0xb792d4aa in ?? ()
#29 0x00049ff0 in ?? ()
#30 0x08265be4 in ?? ()
#31 0x0821f100 in ?? ()
#32 0x00049fe0 in ?? ()
#33 0x0822181c in ?? ()
#34 0x00000001 in ?? ()
#35 0x00049fe0 in ?? ()
#36 0x00000000 in ?? ()
#0  0xffffe410 in __kernel_vsyscall ()


=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================


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