[Mono-list] Exception segfaulting
Jonathan Stowe
gellyfish@gellyfish.com
Fri, 5 Apr 2002 19:55:03 +0100 (BST)
This will provoke a segmentation fault when run with 'mono' in the 0.10
release on Linux (on my machine anyhow) - it doesn't do that with 'mint' :
using System;
using System.Net;
using System.Net.Sockets;
class ExceptTest
{
public static void Main ()
{
try
{
throw new SocketException();
}
catch ( SocketException e )
{
Console.WriteLine(e.ToString());
return ;
}
catch ( Exception e )
{
}
}
}
The output for mono is :
[gellyfish@orpheus Dotnet]$ mono ExceptTest.exe
Message:
ves_icall_System_Net_Sockets_SocketException_WSAGetLastError_internal:
returning 0
System.Net.Sockets.SocketException
Some sort of w32 error occurredSystem.Net.Sockets.SocketExceptionTODO:
implement stack traces
RESULT: 0
Segmentation fault
Whilst the output for mint is :
[gellyfish@orpheus Dotnet]$ mint ExceptTest.exe
Message:
ves_icall_System_Net_Sockets_SocketException_WSAGetLastError_internal:
returning 0
System.Net.Sockets.SocketException
Some sort of w32 error occurredSystem.Net.Sockets.SocketException#0:
0x00005 throw in .ExceptTest::Main ()
I'm not confident enough with JIT stuff right now to advance a reason why
..
/J\
--
Jonathan Stowe |
<http://www.gellyfish.com> | This space for rent
|