delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/11/08:59:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <42FB4B92.4060101@le-resistant.com>
Date: Thu, 11 Aug 2005 14:58:58 +0200
From: Louis Lecaroz <louis DOT lecaroz AT le-resistant DOT com>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: "Segmentation fault" CygWin tools with code Injection-MS Detours
References: <42FB4856 DOT 9060808 AT club-internet DOT fr>
In-Reply-To: <42FB4856.9060808@club-internet.fr>
X-auth-smtp-user: louis DOT lecaroz AT le-resistant DOT com
X-abuse-contact: abuse AT oxyd DOT fr

******************** Just to prevent you, I have given more details
between the truss debugging log & the cygcheck.out....
************************ which are :

As you will see, internal Win32 system calls of CygWin have been
correctly hooked,
Bash appears to work correctly still it does not fork.... It searchs for
"ls" alias but no CreateProcess trace appears because it crash just before.
Looking to the code of Cygwin, If I am correct, this is because Cygwin
does not the msvcrt microsoft library where spawn*() methods have been
written, but its proper ones in spawn.cc. I suppose (I am only
supposing), this is due by an imcompatiblity between the
fixup_before_exec() called in your spawn & Microsoft Win32 code.

I am really ashamed not to be able to "truss" CygWin tools or standard
Win32 programs forked by Cygwin tools (like for exemple make spawning
bash).
I have also attached the cygcheck.out in this mail,
I hope, I have given you all the needed info. It will be really great to
be able to make cygwin fork & spawn emulation compatible with Win32
system Tools.
At a time, I have also supposed an incompatibility between
longjmp/setjmp & GetThreadContext/SetThreadContext...

Thank's in advance for all the help you will be able to provide me. I
don't have more time & skills to investigate in CygWin code,  but if you
need more info don't hesitate to mail me.
Having (if possible ;) ) a patch & a standard modification in cygwin to
allow this type of programming will be really great !
Louis


------------------------------------------------------------------------




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019