[Mono-bugs] [Bug 351520] UnmanagedFunctionPointer as out parameter from native function results in SIGABRT

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Aug 19 18:29:57 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=351520

User gert.driesen at pandora.be added comment
https://bugzilla.novell.com/show_bug.cgi?id=351520#c5





--- Comment #5 from Gert Driesen <gert.driesen at pandora.be>  2008-08-19 16:29:56 MDT ---
This is what I get when running my repro in SVN (gert/standalone/bug351520):

Not doing anything!
In GetCallbackI!
Hello, World!

** ERROR **: file marshal.c: line 8944 (mono_marshal_get_managed_wrapper):
assertion failed: (method != NULL)
aborting...
Stacktrace:

  at (wrapper managed-to-native)
System.Object.__icall_wrapper_mono_delegate_to_ftnptr (object) <0x00004>
  at (wrapper managed-to-native)
System.Object.__icall_wrapper_mono_delegate_to_ftnptr (object) <0xffffffff>
  at (wrapper managed-to-native) Program.GetCallbackII (Program/Callback&)
<0xffffffff>
  at Program.Main () <0x0002e>
  at (wrapper runtime-invoke) System.Object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

 /home/gert/mono/install/bin/mono [0x806f8d9]
 [0xffffe440]
 /lib/libc.so.6(abort+0x101) [0xb7dae1e1]
 /usr/lib/libglib-2.0.so.0(g_logv+0x47a) [0xb7f633fa]
 /usr/lib/libglib-2.0.so.0(g_log+0x29) [0xb7f63439]
 /usr/lib/libglib-2.0.so.0(g_assert_warning+0x70) [0xb7f634b0]
 /home/gert/mono/install/bin/mono [0x80e6977]
 /home/gert/mono/install/bin/mono [0x80e6b34]
 [0xb79935ca]
 [0xb7993559]
 [0xb7993297]
 [0xb79931ef]
 /home/gert/mono/install/bin/mono(mono_runtime_exec_main+0xeb) [0x80b0efb]
 /home/gert/mono/install/bin/mono(mono_runtime_run_main+0x173) [0x80b2433]
 /home/gert/mono/install/bin/mono(mono_main+0x13db) [0x805c73b]
 /home/gert/mono/install/bin/mono [0x805adc2]
 /lib/libc.so.6(__libc_start_main+0xe0) [0xb7d98fe0]
 /home/gert/mono/install/bin/mono [0x805ad31]

Debug info from gdb:

[?1034hUsing host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0xb7d82b80 (LWP 15861)]
[New Thread 0xb75d5b90 (LWP 15865)]
[New Thread 0xb75f9b90 (LWP 15864)]
0xffffe410 in __kernel_vsyscall ()
  3 Thread 0xb75f9b90 (LWP 15864)  0xffffe410 in __kernel_vsyscall ()
  2 Thread 0xb75d5b90 (LWP 15865)  0xffffe410 in __kernel_vsyscall ()
  1 Thread 0xb7d82b80 (LWP 15861)  0xffffe410 in __kernel_vsyscall ()

Thread 3 (Thread 0xb75f9b90 (LWP 15864)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7ee7846 in nanosleep () from /lib/libpthread.so.0
#2  0x0815eda1 in collection_thread (unused=0x0) at collection.c:34
#3  0xb7ee0192 in start_thread () from /lib/libpthread.so.0
#4  0xb7e4602e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xb75d5b90 (LWP 15865)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7ee4566 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so0
#2  0x0814a85f in timedwait_signal_poll_cond (cond=0x831a174, mutex=0x831a15c, 
    timeout=0x0, alertable=0) at handles.c:1490
#3  0x0814d52e in _wapi_handle_timedwait_signal_handle (handle=0x404, 
    timeout=0x0, alertable=0) at handles.c:1570
#4  0x0814d5ac in _wapi_handle_wait_signal_handle (handle=0x404, alertable=0)
    at handles.c:1530
#5  0x0815289a in WaitForSingleObjectEx (handle=0x404, timeout=4294967295, 
    alertable=0) at wait.c:205
#6  0x080c11da in finalizer_thread (unused=0x0) at gc.c:905
#7  0x081297a0 in start_wrapper (data=0x832b7e0) at threads.c:621
#8  0x08160bf2 in thread_start_routine (args=0x831a3b4) at threads.c:279
#9  0x08178015 in GC_start_routine (arg=0x26f20) at pthread_support.c:1382
#10 0xb7ee0192 in start_thread () from /lib/libpthread.so.0
#11 0xb7e4602e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb7d82b80 (LWP 15861)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7ee6ffb in read () from /lib/libpthread.so.0
#2  0x0806f9d3 in mono_handle_native_sigsegv (signal=6, ctx=0xbfc3366c)
    at mini-exceptions.c:1324
#3  <signal handler called>
#4  0xffffe410 in __kernel_vsyscall ()
#5  0xb7dac8f5 in raise () from /lib/libc.so.6
#6  0xb7dae1e1 in abort () from /lib/libc.so.6
#7  0xb7f633fa in g_logv () from /usr/lib/libglib-2.0.so.0
#8  0xb7f63439 in g_log () from /usr/lib/libglib-2.0.so.0
#9  0xb7f634b0 in g_assert_warning () from /usr/lib/libglib-2.0.so.0
#10 0x080e6977 in mono_marshal_get_managed_wrapper (method=0x0, 
    delegate_klass=0x8238c63, this=0x0) at marshal.c:8944
#11 0x080e6b34 in mono_delegate_to_ftnptr (delegate=0xbfc340b4)
    at marshal.c:688
#12 0xb79935ca in ?? ()
#13 0xbfc340b4 in ?? ()
#14 0xb7993559 in ?? ()
#15 0xbfc34080 in ?? ()
#16 0x082fc510 in ?? ()
#17 0x00043f18 in ?? ()
#18 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