From owner-freebsd-emulation@FreeBSD.ORG Sat Apr 12 09:45:02 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46DEC106564A for ; Sat, 12 Apr 2008 09:45:02 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 0DF318FC12 for ; Sat, 12 Apr 2008 09:45:01 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id E761667C4C0; Sat, 12 Apr 2008 11:44:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4sbT9XiBZQD7; Sat, 12 Apr 2008 11:44:29 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 5457067C4BA; Sat, 12 Apr 2008 11:44:29 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.2/8.14.2/Submit) id m3C9iSYK089153; Sat, 12 Apr 2008 11:44:28 +0200 (CEST) (envelope-from rdivacky) Date: Sat, 12 Apr 2008 11:44:28 +0200 From: Roman Divacky To: Manik Taneja Message-ID: <20080412094428.GA88981@freebsd.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@freebsd.org Subject: Re: Purify on FreeBSD X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Apr 2008 09:45:02 -0000 On Fri, Apr 11, 2008 at 08:17:28PM +0530, Manik Taneja wrote: > Hi, > > I'm trying to get purify that was built on a linux (RHEL 4) machine to run > on a FreeBSD 6.3 system with linux emulation (fc4) installed on it. > > The first issue that I'm running into is the following. If write a simple C > program that uses fork(), build that on a linux system and run that on BSD > it fails with the following error. > > curry:~/rational/hacks 09:37 AM $pwd > /home/mantanej/rational/hacks > curry:~/rational/hacks 09:37 AM $./a.out > fork: Invalid argument > > However, if use a program that doesn't use fork, but uses system calls such > as malloc (sbrk) , open etc, that just works fine without any complaints. So > looks like this is probably a bug in the fork emulator on linux. See below > for output of truss . DONT TRUST TRUSS... it does not work with linuxulator.. we should put some big fat warning somewhere.... still.. in this case I guess it identified the problem correctly can you build -DDEBUG linux module and show me what are the parameters passed to the clone() ? do you have source of your testing program available? thnx roman