20120523: bug in fork/exec

Corinna Vinschen corinna-cygwin@cygwin.com
Wed May 30 15:53:00 GMT 2012

On May 29 11:40, Corinna Vinschen wrote:
> On May 25 15:10, Yaakov (Cygwin/X) wrote:
> > On 2012-05-25 04:40, Corinna Vinschen wrote:
> > >On May 25 03:26, Yaakov (Cygwin/X) wrote:
> > >>With the 20120523 snapshot, if a process attempts to fork/exec
> > >
> > >Which snapshot shows this effect first?
> > 
> > Ouch, it starts with 20120309.
> Thanks.  That would mean a single change is the culprit, but I need
> a way to reproduce the problem to be able to fix it (other than just
> reverting the patch).
> > FWIW, here is the fork() code I discovered this with:
> > 
> > http://git.gnome.org/browse/glib/tree/glib/gspawn.c?id=2.32.3
> That's a bit heavy as far as testcases go.  Thing is, I can't reproduce
> it.  If that's a generic problem, shouldn't this also occur when trying
> to start a program from bash or tcsh?  I deliberately removed a DLL from
> my system, but there is no hang at all when trying to start an affected
> application.
> Can you please provide a simple testcase?  If you can reproduce it with
> given binaries from the distro, I don't need source code, just the steps
> and the names of the binaries to reproduce.

Never mind.  I found the problem and just checked in a patch.  I'll
create a new snapshot shortly.  Please test.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

More information about the Cygwin mailing list