From owner-freebsd-ports@FreeBSD.ORG Fri Jan 28 17:39:30 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 8073616A4CE for ; Fri, 28 Jan 2005 17:39:30 +0000 (GMT) Received: from khan.acc.umu.se (khan.acc.umu.se [130.239.18.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id B07EC43D2D for ; Fri, 28 Jan 2005 17:39:29 +0000 (GMT) (envelope-from henke@acc.umu.se) Received: from localhost (localhost [127.0.0.1]) by amavisd-new (Postfix) with ESMTP id 529CAD220; Fri, 28 Jan 2005 18:39:28 +0100 (MET) Received: from [192.168.2.10] (h81172174059.kund.kommunicera.umea.se [81.172.174.59]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by khan.acc.umu.se (Postfix) with ESMTP id 0BB86D20E; Fri, 28 Jan 2005 18:39:25 +0100 (MET) Message-ID: <41FA7918.9060801@acc.umu.se> Date: Fri, 28 Jan 2005 18:40:40 +0100 From: =?ISO-8859-1?Q?Henrik_J=F6nsson?= User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: coop9211@uidaho.edu Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at acc.umu.se cc: ports@FreeBSD.org Subject: 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 17:39:30 -0000 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: /* Main.cs */ using System; using System.Diagnostics; using System.IO; class MainClass { public static void Main(string[] args) { Console.WriteLine("Hello"); Process myP = new Process(); ProcessStartInfo pInfo = new ProcessStartInfo("ping", "-c 5 192.168.0.1"); pInfo.UseShellExecute = false; pInfo.RedirectStandardOutput = true; myP.StartInfo = pInfo; myP.Start(); StreamReader sr = myP.StandardOutput; while(!myP.HasExited) Console.WriteLine(sr.ReadLine()); Console.WriteLine("Bye!"); } } /* end Main.cs */ 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) 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) Let me know if you need more info. Regards Henke