Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/