This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Big Brother is Real


On Thu, Apr 03, 2003 at 04:49:43PM -0500, Christopher Faylor wrote:
> On Thu, Apr 03, 2003 at 11:47:39PM +0200, Corinna Vinschen wrote:
> >I got a hint lately about stuff working different on 64bit.  If a 32 bit
> >application is called from a 64 bit application the stack is 0xc000
> >lower than if the same 32 bit application is called by another 32 bit
> >application.  E. g., the first bash is spawned from 64 bit cmd.exe, its
> >stack is shifted 0xc000.  A CreateProcess call from fork will now create
> >a child with the stack at another location which breaks the longjmp.
> 
> That shouldn't be a problem.  That's no different than if fork() is
> called from another thread.  The stack should be relocated in the forkee
> automatically unless the memory for the stack is being used for something
> else.

Hmm, this was apparently the reason it didn't work.  The guy tracked it
down to the longjmp which SEGV'd since it tried to return to an invalid
memory region.  But anyway, fork is your child.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin at cygwin dot com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]