Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Nov 1998 03:50:53 -0500 (EST)
From:      Brian Feldman <green@zone.syracuse.net>
To:        Mike Smith <mike@smith.net.au>
Cc:        current@FreeBSD.ORG
Subject:   Re: Linux clone() 
Message-ID:  <Pine.BSF.4.05.9811020346560.9280-100000@zone.syracuse.net>
In-Reply-To: <199811020814.AAA08887@dingo.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Okay, thanks a bunch! I was worried about munging up my esp there :)
Anyway, I think it's about time to get a Linux user to a. make me a
program that uses clone and b. make me a ptrace of it. I suppose I'll post
the finished patch to freebsd-emulation when I get it finished, because
I'm not entirely certain why I posted it here in the first place... except
maybe that -current has the most generous testers usually!

Cheers,
Brian Feldman

On Mon, 2 Nov 1998, Mike Smith wrote:

> > Okay, guys, I think I've gotten a linux clone() syscall implemented... As
> 
> Neat.  Wrong list perhaps though.  (-emulation)
> 
> > of now, I have nothing to test it with :( The only thing I have to try it
> > with is MpegTV, and for some really crazy reason:
> > linux_clone()->(1569, 1570); child eip=0xf00, esp=0x80ed0b4
> > Now come on, passing 0xf00 as the void *fn (really int (*fn)(void *)) is
> > pretty damned bogus (but hey, it's not zero, so it turns into the child's
> > instruction pointer...) If anyone has any REALY examples of programs to
> > test with this, let me know....
> 
> First off; what do you get if you trace it on a Linux system?  Are you 
> sure the args are formatted correctly?
> 
> > This is a pretty important thing to have,
> > when lots more apps use linuxthreads (i.e. StarOffice 5.0). 
> 
> No kidding.
>  
> > Oh, BTW,
> > someone tell me if this would be something really terrible to accidentally
> > do in kernel space:
> > printf("%d %d %#x %#x");
> > note no arguments... so far I don't notice any destabilization but I sure
> > hope I didn't fudge up the kernel stack!
> 
> Nope; that's generally harmless, just prints lots of garbage.
> 
> As for test apps; someone ought to be able to build you a trivial
> clone() test program on a Linux system.
> 
> -- 
> \\  Sometimes you're ahead,       \\  Mike Smith
> \\  sometimes you're behind.      \\  mike@smith.net.au
> \\  The race is long, and in the  \\  msmith@freebsd.org
> \\  end it's only with yourself.  \\  msmith@cdrom.com
> 
> 
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9811020346560.9280-100000>