Purify on FreeBSD
Roman Divacky
rdivacky at freebsd.org
Sat Apr 12 09:45:02 UTC 2008
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
More information about the freebsd-emulation
mailing list