[Mono-bugs] [Bug 79203][Maj] New - Segfault when marshalling delegate with object[] in argument list to native function pointer
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Aug 28 18:07:20 EDT 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by slomo at ubuntu.com.
http://bugzilla.ximian.com/show_bug.cgi?id=79203
--- shadow/79203 2006-08-28 18:07:20.000000000 -0400
+++ shadow/79203.tmp.16552 2006-08-28 18:07:20.000000000 -0400
@@ -0,0 +1,60 @@
+Bug#: 79203
+Product: Mono: Runtime
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: interop
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: slomo at ubuntu.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Segfault when marshalling delegate with object[] in argument list to native function pointer
+
+Hi,
+when building the attached C source as libtest.so and the attached C#
+source as test.exe mono 1.1.16.1 segfaults while trying to marshal the
+delegate to a native function pointer.
+The code itself is most probably wrong but mono shouldn't segfault
+nonetheless IMHO.
+
+=================================================================
+Got a SIGSEGV while executing native code. This usually indicates
+a fatal error in the mono runtime or one of the native libraries
+used by your application.
+=================================================================
+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) Test.set_fptr (Test/Fptr) <0xffffffff>
+ at Test.Main (string[]) <0x00035>
+ at (wrapper runtime-invoke) System.Object.runtime_invoke_void_string[]
+(object,intptr,intptr,intptr) <0xffffffff>
+Native stacktrace:
+ /usr/lib/libmono.so.0(mono_handle_native_sigsegv+0x102) [0xb7daf902]
+ /usr/lib/libmono.so.0 [0xb7d6aaa6]
+ [0xffffe440]
+ /usr/lib/libmono.so.0(mono_marshal_get_managed_wrapper+0x4c2)
+[0xb7e241af]
+ /usr/lib/libmono.so.0(mono_delegate_to_ftnptr+0x4f) [0xb7e2480f]
+ [0xb77f1ef6]
+ [0xb77f1e9d]
+ [0xb77f19b6]
+ [0xb77f17c3]
+ /usr/lib/libmono.so.0 [0xb7d8f7d1]
+ /usr/lib/libmono.so.0(mono_runtime_invoke+0x33) [0xb7df5e46]
+ /usr/lib/libmono.so.0(mono_runtime_exec_main+0x67) [0xb7df8953]
+ /usr/lib/libmono.so.0(mono_runtime_run_main+0x1da) [0xb7dfba10]
+ /usr/lib/libmono.so.0(mono_jit_exec+0x96) [0xb7da1a79]
+ /usr/lib/libmono.so.0(mono_main+0xfec) [0xb7da2a8d]
+ /usr/bin/cli [0x8048512]
+ /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc) [0xb7b258cc]
+ /usr/bin/cli [0x8048471]
+Aborted
More information about the mono-bugs
mailing list