[Mono-dev] Asynchronous socket segmentation fault

Robert Nasiadek robzon at cpnet.pl
Tue Feb 14 18:19:57 EST 2006


Hello,

I'm running mono 1.1.13.2 on Linux.
I have a UDP socket and when I call Close( ) before EndReceiveFrom( ) I 
get segmentation fault.
Running the same binary on .net only throws an exception.
Here's a backtrace:

=================================================================
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:

in <0x4> (wrapper managed-to-native) 
System.Net.Sockets.Socket:RecvFrom_internal 
(intptr,byte[],int,int,System.Net.Sockets.SocketFlags,System.Net.SocketAddress&,int&)
in <0xffffff7b> (wrapper managed-to-native) 
System.Net.Sockets.Socket:RecvFrom_internal 
(intptr,byte[],int,int,System.Net.Sockets.SocketFlags,System.Net.SocketAddress&,int&)
in <0x4b> System.Net.Sockets.Socket:ReceiveFrom_nochecks 
(byte[],int,int,System.Net.Sockets.SocketFlags,System.Net.EndPoint&)
in <0x5b> Worker:ReceiveFrom ()
in <0x13208> (wrapper delegate-invoke) 
System.MulticastDelegate:invoke_void ()
in <0x50f5c1ef> (wrapper runtime-invoke) 
System.Object:runtime_invoke_void (object,intptr,intptr,intptr)

Native stacktrace:

        mono(mono_handle_native_sigsegv+0xba) [0x814c43a]
        mono [0x813890f]
        [0xffffe440]
        mono [0x80b9719]
        [0xb71c961e]
        [0xb71c9564]
        [0xb71c9494]
        [0xb71c9420]
        [0xb71dc5f9]
        mono [0x81387c0]
        mono(mono_runtime_invoke+0x27) [0x80d5067]
        mono(mono_runtime_invoke_array+0x250) [0x80d6510]
        mono(mono_message_invoke+0xc5) [0x80d7fc5]
        mono [0x80a423f]
        mono [0x80a32d3]
        mono [0x8099282]
        mono [0x8104bc7]
        mono [0x8110805]
        /lib/tls/i686/cmov/libpthread.so.0 [0xb7f08361]
        /lib/tls/i686/cmov/libc.so.6(__clone+0x5e) [0xb7e72bde]

I'm very new to mono/c# (pretty much first day of coding), but I don't 
think this is expected behaviour, is it?

peace,

-- 
robzon
Network Administrator

[ http://ubuntu.com/ ]
_____________________
(\ /)
(O.o)
(> <)
This is Bunny. Copy Bunny into your signature to help him on his way to world domination.




More information about the Mono-devel-list mailing list