[Mono-bugs] [Bug 77433][Wis] New - Marshal.StructureToPtr failed

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Feb 1 05:58:07 EST 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 vavra at software602.cz.


--- shadow/77433	2006-02-01 05:58:06.000000000 -0500
+++ shadow/77433.tmp.4557	2006-02-01 05:58:06.000000000 -0500
@@ -0,0 +1,47 @@
+Bug#: 77433
+Product: Mono: Runtime
+Version: 1.1
+OS: Red Hat 9.0
+OS Details: glibc-2.3.2
+Status: NEW   
+Priority: Wishlist
+Component: interop
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: vavra at software602.cz               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Marshal.StructureToPtr failed 
+ I have an example, where I suppose, that mono runtime crashes when
+marshalling structure to unmanaged memory. I use a combination of
+structures, where some of them are "c unions" - I use
+The output of mono runtime is:
+"Got a SIGSEGV while executing native code....
+Native stacktrace:
+        mono(mono_handle_native_sigsegv+0x80) [0x811fba4]
+        mono [0x810e946]
+        /lib/tls/libpthread.so.0 [0x400ba610]
+        /lib/tls/libc.so.6 [0x42073f99]
+        /lib/tls/libc.so.6(calloc+0xce) [0x42073a5e]
+        /usr/lib/libglib-2.0.so.0(g_malloc0+0x41) [0x4005a5d1]
+        mono(mono_thread_manage+0x11) [0x80a8a49]
+        mono(mono_main+0x743) [0x805d567]
+        mono(__fxstat64+0x127) [0x805c27f]
+        /lib/tls/libc.so.6(__libc_start_main+0xe4) [0x42015574]
+        mono(sinh+0x41) [0x805c1d9]
+It's important, that I write a Size keyword. I need have structures in
+unmanaged memory a little bigger than Marshal.Sizeof() says.
+Without specifying Size the example runs without errors.

More information about the mono-bugs mailing list