[Mono-bugs] [Bug 77558][Blo] Changed - Asynchronous socket receive segmentation fault

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Feb 17 11:33:13 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 jlarimer at gmail.com.


--- shadow/77558	2006-02-17 11:31:34.000000000 -0500
+++ shadow/77558.tmp.6791	2006-02-17 11:33:13.000000000 -0500
@@ -38,6 +38,66 @@
 Additional Information:
 ------- Additional Comments From jlarimer at gmail.com  2006-02-17 11:31 -------
 Created an attachment (id=16493)
 Reproduction code for Async socket segfault
+------- Additional Comments From jlarimer at gmail.com  2006-02-17 11:33 -------
+I'm seeing this also with the above attached code. Under MS.NET it
+behaves as expected, printing out "Not received". It seems like the
+AsyncResult is trying to complete after the socket gets disposed. Just
+attempting to close a socket after BeginReceiveFrom appears to cause
+this also.
+Mono output:
+[jlarimer at debacle test]$ mono ./UDPTest.exe
+Not received
+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.
+in (wrapper managed-to-native)
+in (wrapper managed-to-native)
+in System.Net.Sockets.Socket:ReceiveFrom_nochecks
+in Worker:ReceiveFrom () <0x5b>
+in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()
+in (wrapper runtime-invoke) System.Object:runtime_invoke_void
+(object,intptr,intptr,intptr) <0x714212c>
+Native stacktrace:
+        mono(mono_handle_native_sigsegv+0x80) [0x813f650]
+        mono [0x8111dcf]
+        [0x590440]
+        mono [0x80e60af]
+        [0xf693f0]
+        [0xf69334]
+        [0xf69264]
+        [0xf691f0]
+        [0xf69151]
+        mono(mono_runtime_invoke_array+0xf9) [0x80ab255]
+        mono(mono_message_invoke+0xa8) [0x80abf7c]
+        mono [0x80e242f]
+        mono [0x80e39a9]
+        mono [0x80c8573]
+        mono [0x80ed5a7]
+        mono [0x8105076]
+        /lib/libpthread.so.0 [0x6e0b80]
+        /lib/libc.so.6(__clone+0x5e) [0x2badee]

More information about the mono-bugs mailing list