From owner-freebsd-threads@FreeBSD.ORG Thu Mar 3 07:35:39 2005 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD7A916A4CF; Thu, 3 Mar 2005 07:35:39 +0000 (GMT) Received: from straycat.dhs.org (h0050da134090.ne.client2.attbi.com [24.60.174.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2679743D5E; Thu, 3 Mar 2005 07:35:39 +0000 (GMT) (envelope-from tmclaugh@sdf.lonestar.org) Received: from compass.straycat.dhs.org (compass.straycat.dhs.org [192.168.1.48]) by straycat.dhs.org (8.13.0/8.13.0) with ESMTP id j237aa3d015871; Thu, 3 Mar 2005 02:36:37 -0500 (EST) From: Tom McLaughlin To: David Xu In-Reply-To: <4226B9DC.7040405@freebsd.org> References: <1109551418.782.30.camel@compass.straycat.dhs.org> <1109742079.777.15.camel@compass.straycat.dhs.org> <422649AF.5090606@freebsd.org> <1109833505.777.80.camel@compass.straycat.dhs.org> <4226B9DC.7040405@freebsd.org> Content-Type: text/plain Date: Thu, 03 Mar 2005 02:36:05 -0500 Message-Id: <1109835366.777.95.camel@compass.straycat.dhs.org> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit cc: freebsd-threads@freebsd.org Subject: Re: Mono's XSP crashes on browser connection X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2005 07:35:39 -0000 On Thu, 2005-03-03 at 15:16 +0800, David Xu wrote: > Tom McLaughlin wrote: > > >Disabling garbage collection in Mono prevents the crash but after > >executing the external process the C# program does not continue on, it > >just sits there. So that isn't a viable option for regular use. > > > > > > > Can you give me example code (executing external program) ? I don't know C# > but want to try. > Here you go. The second one yields a slightly different error but it more closely matches the code in the program where I first tracked down this bug. when using gdb with these examples do one of the following: $ gdb /usr/local/bin/mono mono.core -or- $ gdb /usr/local/bin/mono (gdb) run /path/to/foo.exe simple example: --------------- using System.Diagnostics; class T { static void Main() { Process.Start ("ls"); } } --------------- Second example: --------------- using System.Diagnostics; class T { static void Main() { ProcessStartInfo pi = new ProcessStartInfo (); pi.FileName = "ls"; pi.RedirectStandardOutput = true; pi.UseShellExecute = false; pi.Arguments = "-al"; Process.Start (pi); } } --------------- Thanks for taking a look at this. This bug is making creating ports a pain. The mcs compiler uses this when called with the /pkg flag. It's also keeping XSP and MonoDevelop out of the ports tree. Those are two of the programs I see most requested. Tom > >Worse, mono ships with Boehm 6.2. I linked against 6.4 from ports > >(where threading support is not even enabled by default) and Mono is now > >failing to compile. Mono's mcs compiler hangs at the same spot on > >-STABLE and -CURRENT. Once Mono imports a later Boehm, FreeBSD is in > >for some serious problems. > > > >Tom > > > > > -- BSD# Project - Porting Mono to FreeBSD http://forge.novell.com/modules/xfmod/project/?bsd-sharp