From owner-freebsd-gnome@FreeBSD.ORG Mon Oct 6 19:13:26 2003 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C88E16A4B3 for ; Mon, 6 Oct 2003 19:13:26 -0700 (PDT) Received: from ms-smtp-02.southeast.rr.com (ms-smtp-02.southeast.rr.com [24.93.67.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id B391043FDD for ; Mon, 6 Oct 2003 19:13:24 -0700 (PDT) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (rdu74-159-108.nc.rr.com [24.74.159.108])h9729Nkt016933; Mon, 6 Oct 2003 22:09:23 -0400 (EDT) Received: from [192.168.1.4] (shumai.marcuscom.com [192.168.1.4]) h972D51v019778; Mon, 6 Oct 2003 22:13:05 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Jay Cornwall In-Reply-To: <3F820179.80100@evilrealms.net> References: <3F81E292.8070308@evilrealms.net> <1065477237.748.95.camel@gyros> <3F820179.80100@evilrealms.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Y1HHymU/3YY455ioEz2W" Organization: MarcusCom, Inc. Message-Id: <1065492795.33346.0.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Mon, 06 Oct 2003 22:13:15 -0400 X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on creme-brulee.marcuscom.com cc: FreeBSD GNOME Users Subject: Re: FreeBSD Current lang/mono runtime problems X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2003 02:13:26 -0000 --=-Y1HHymU/3YY455ioEz2W 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. I've fixed this a while ago, but I don't have the patch in the ports tree yet. Now I'm not getting the hang, but I have another problem.=20 I'm trying to fix that now. Joe >=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! --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-Y1HHymU/3YY455ioEz2W 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/giE7b2iPiv4Uz4cRAnAeAKCXzNCVqNA4GFaCsoBkYuEXAgdFnwCfZEcD 4OljFTFC8dH9p9DZVdw5JvU= =7jJ6 -----END PGP SIGNATURE----- --=-Y1HHymU/3YY455ioEz2W--