[Mono-bugs] [Bug 77613][Cri] New - Marshal.StringToHGlobalUni("") crashes

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Feb 21 08:24:29 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.

http://bugzilla.ximian.com/show_bug.cgi?id=77613

--- shadow/77613	2006-02-21 08:24:29.000000000 -0500
+++ shadow/77613.tmp.9008	2006-02-21 08:24:29.000000000 -0500
@@ -0,0 +1,47 @@
+Bug#: 77613
+Product: Mono: Runtime
+Version: 1.1
+OS: Red Hat 9.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: interop
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: vavra at software602.cz               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Summary: Marshal.StringToHGlobalUni("") crashes 
+
+Hello,
+ when I call Marshal.StringToHGlobalUni("") with an empty string, the mono
+crashes:
+
+"=================================================================
+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.
+=================================================================
+Native stacktrace:
+
+        mono(mono_handle_native_sigsegv+0x80) [0x811de7c]
+        mono [0x810d08a]
+        /lib/tls/libpthread.so.0 [0x400d0610]
+        [0x40a2f8d6]
+        [0x40a2f895]
+        [0x40a2f81e]
+        mono [0x810cf6f]
+        mono(mono_runtime_invoke+0x18) [0x80851ac]
+        mono(mono_runtime_exec_main+0x4f) [0x8085e57]
+        mono(mono_runtime_run_main+0x15c) [0x8085b80]
+        mono(strftime+0x198f) [0x805cec7]
+        mono(mono_main+0x73e) [0x805d726]
+        mono(__fxstat64+0x137) [0x805c41f]
+        /lib/tls/libc.so.6(__libc_start_main+0xe4) [0x42015574]
+        mono(sinh+0x41) [0x805c379]
+Aborted"
+
+
+Marshal.StringToHGlobalAnsi() works fine.


More information about the mono-bugs mailing list