Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Oct 2003 00:18:39 -0400
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Jay Cornwall <jay@evilrealms.net>
Cc:        FreeBSD GNOME Users <gnome@freebsd.org>
Subject:   Re: FreeBSD Current lang/mono runtime problems
Message-ID:  <1065500318.33346.14.camel@shumai.marcuscom.com>
In-Reply-To: <3F820179.80100@evilrealms.net>
References:  <3F81E292.8070308@evilrealms.net> <1065477237.748.95.camel@gyros>  <3F820179.80100@evilrealms.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-4UHAnH0haDw5J8smr+p4
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Mon, 2003-10-06 at 19:57, Jay Cornwall wrote:
> Joe Marcus Clarke wrote:
>=20
> >>[jay@python mono]$ mcs --version
> >>Mono C# compiler version 0.27.0.0
> >>
> >>And never finishes. I tried to get an strace, but that seems to have=20
> >>issues with a missing /proc filesystem. Is there any more useful=20
> >>information I can obtain under FreeBSD to help debug this?
>=20
> > Mono doesn't work on FreeBSD.  The problem seems to be in the garbage
> > collector.  If you build mono without GC, it should work okay (but neve=
r
> > release memory).
>=20
> Ah, hmm.
>=20
> > Honestly, gnome@ doesn't really want mono since no one here is really a
> > C# user.  We are keeping it since one of our developers, Juli Mallett,
> > has been busy, but wants to get back into Mono.  In the meantime, if yo=
u
> > want to look at improving boehm-gc on FreeBSD, I'm sure your
> > contributions will not be turned down.
>=20
> Well I've had a brief look tonight, but free time is a little on the=20
> short side at the moment.
>=20
> It seems a segfault occurs inside mono-0.28/mono/mini.c:7291,=20
> sigusr1_signal_handler(). In order to identify the thread (through=20
> mono_current_thread()), mono/metadata/threads.c stores the MonoThread *=20
> in a thread-local structure using pthread_setspecific in previously=20
> called methods of mono/metadata/threads.c.
>=20
> Dropping in a few debug statements shows that a thread is entering=20
> sigusr1_signal_handler() that hasn't previously had its MonoThread * set=20
> (it may not even be a MonoThread, for all I know). That's the direct=20
> reason for the crash - to find the indirect reason, i.e. why this thread=20
> is entering without its MonoThread * set, will take me a bit longer.
>=20
> Enough technobabble, I'll try and find the bug and fix it!

Should be working now.  Give 0.28_1 a shot.

Joe

--=20
PGP Key : http://www.marcuscom.com/pgp.asc

--=-4UHAnH0haDw5J8smr+p4
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQA/gj6eb2iPiv4Uz4cRAllZAJkBfOJSDjLgJcrib/G9izGN7uf1VACfZUFW
UL1Pp0RZwdulghtutf9SG18=
=FXt0
-----END PGP SIGNATURE-----

--=-4UHAnH0haDw5J8smr+p4--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1065500318.33346.14.camel>