From owner-freebsd-ports@FreeBSD.ORG Fri Jan 28 23:55:06 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF42216A4CF for ; Fri, 28 Jan 2005 23:55:06 +0000 (GMT) Received: from straycat.dhs.org (h0050da134090.ne.client2.attbi.com [24.60.174.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39DDB43D53 for ; Fri, 28 Jan 2005 23:55:04 +0000 (GMT) (envelope-from tmclaugh@sdf.lonestar.org) Received: from compass.straycat.dhs.org (compass.straycat.dhs.org [192.168.1.32]) by straycat.dhs.org (8.13.0/8.13.0) with ESMTP id j0SNtV7n025236; Fri, 28 Jan 2005 18:55:32 -0500 (EST) From: Tom McLaughlin To: Henrik =?ISO-8859-1?Q?J=F6nsson?= In-Reply-To: <41FA7918.9060801@acc.umu.se> References: <41FA7918.9060801@acc.umu.se> Content-Type: text/plain; charset=ISO-8859-1 Date: Fri, 28 Jan 2005 18:55:09 -0500 Message-Id: <1106956509.770.8.camel@compass.straycat.dhs.org> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit cc: ports@freebsd.org Subject: Re: FreeBSD Port: mono-1.0.5_1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jan 2005 23:55:06 -0000 On Fri, 2005-01-28 at 18:40 +0100, Henrik Jönsson wrote: > Hi > > I'm having trouble running an external program and read its stdout. > Example code (compiled with "mcs Main.cs") works fine in Linux and Windows: > > > > The errors I get when running "mono Main.exe" are different depending on > FreeBSD version. > > 4.11: > ** (Main.exe:82656): CRITICAL **: file mono-hash.c: line 239 > (mono_g_hash_table_lookup): assertion `hash_table != NULL' failed > > ** ERROR **: file reflection.c: line 8047 > (mono_reflection_lookup_dynamic_token): assertion failed: (obj) > aborting... > Abort trap (core dumped) > Don't bother with FreeBSD 4.x. It's never worked and at this point I don't see it happening at all. > > Freshly installed 5.3: > Assertion failed: (lu->lu_myreq->lr_owner == lu), function > _lock_acquire, file /usr/src/lib/libpthread/sys/lock.c, line 171. > Abort trap (core dumped) > Your best bet is to see how this fairs on a recent FreeBSD-current install. There are a number of changes to libpthread there which affect Mono. If it runs, then hopefully those fixes will be MFCed for 5.4. If not, I'd generate a backtrace for bin/mono and bring it to freebsd-threads@ and see what they say so the crash can be fixed for a future release. Thanks. Tom > > Let me know if you need more info. > > Regards Henke -- BSD# Project - Porting Mono to FreeBSD http://forge.novell.com/modules/xfmod/project/?bsd-sharp