Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Apr 2008 11:44:28 +0200
From:      Roman Divacky <rdivacky@freebsd.org>
To:        Manik Taneja <mantanej@ironport.com>
Cc:        freebsd-emulation@freebsd.org
Subject:   Re: Purify on FreeBSD
Message-ID:  <20080412094428.GA88981@freebsd.org>
In-Reply-To: <C42577D8.2849%mantanej@ironport.com>
References:  <C42577D8.2849%mantanej@ironport.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080412094428.GA88981>