[Mono-dev] SIGSEV Cores on Solaris

Zoltan Varga vargaz at gmail.com
Sat Mar 25 08:37:37 EST 2006


                                        Hi,

  I couldn't repro this, it prints 'Access Denied' for me on sparc/x86. Please
attach a complete testcase.

                        Zoltan


On 3/25/06, Aaron Clauson <aza at azaclauson.com> wrote:
> Hi,
>
> I forgot to say it was attempting to bind to the reserved port on a separate
> thread. If the bind is attempted on the main thread then the exception is caught
> ok.
>
> This code throws a SIGSEGV on Solaris for me.
>
> In main:
> IPAddress m_testIPAddress =
> Dns.Resolve(Dns.GetHostName()).AddressList[0].Address
> Thread testIPAddressThread = new Thread(new ThreadStart(TestIPAddress));
> testIPAddressThread.Start();
>
>
> private static void TestIPAddress()
> {
>  try
>  {
>    IPAddress testAddress = m_currentTestAddress;
>    Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream,
> ProtocolType.Tcp);
>    socket.Bind(new IPEndPoint(testAddress, 80));
>  }
>  Catch(Exception excp)
>  {
>   Console.WriteLine(excp.Message);
>  }
> }
>
> Thanks,
>
> Aaron
>
> > -----Original Message-----
> > From: mono-devel-list-bounces at lists.ximian.com [mailto:mono-devel-list-
> > bounces at lists.ximian.com] On Behalf Of Zoltan Varga
> > Sent: 25 March 2006 12:27
> > To: aza at azaclauson.com
> > Cc: mono-devel-list at lists.ximian.com
> > Subject: Re: [Mono-dev] SIGSEV Cores on Solaris
> >
> > SIGSEGV are not converted to exceptions in recent mono 1.1 releases, not even
> > on linux and windows. What mono version are you using ? The default
> > behavior is to abort after printing some diagnostic messages, and this
> > cannot be changed.
> > Also, binding to a reserved port shouldn't cause a SIGSEGV. Maybe this is a
> > bug
> > in the mono runtime which should be reported so it can be fixed.
> >
> >                                    Zoltan
> >
> > On 3/25/06, Aaron Clauson <aza at azaclauson.com> wrote:
> > > Hi,
> > >
> > > I've done some playing around running some of our mono programs on Solaris
> > > (i386) and the default behaviour for SIGSEV in native code appears to be to
> > > generate a core dump. For example if I try and bind to TCP port 80 on
> > Solaris I
> > > get a core dump whereas on Windows and Linux I can catch the exception.
> > >
> > > Is there a way to change this behaviour so that SIGSEV signals in Solaris
> > > generate exceptions instead?
> > >
> > > Thanks,
> > >
> > > Aaron
> > >
> > >
> > >
> > > _______________________________________________
> > > Mono-devel-list mailing list
> > > Mono-devel-list at lists.ximian.com
> > > http://lists.ximian.com/mailman/listinfo/mono-devel-list
> > >
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>



More information about the Mono-devel-list mailing list