This is the mail archive of the cygwin 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: "Segmentation fault" CygWin tools with code Injection-MS Detours


******************** 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/


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