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: strace -f hangs forever with process who creates child process

On Aug 24 09:37, Roger Wells wrote:
> On 08/24/2015 09:05 AM, Nellis, Kenneth wrote:
> > From: Qian Hong
> >> I just found `strace -f` hangs forever for me.
> >>
> >> $ uname -a
> >> CYGWIN_NT-6.1 fracting-PC 2.2.1(0.289/5/3) 2015-08-15 11:00 i686 Cygwin)
> >>
> >> $ cat
> >> ./
> >>
> >> $ cat
> >> echo haha
> >>
> >> $ strace -f -o out.txt bash -c #hangs forever.
> > 
> > FWIW, this also seems to hang for me, but can't confirm that it 
> > hangs "forever", as I didn't wait that long. Ctrl/C-ing out works, 
> > but that takes several seconds to take effect. And then I can't 
> > delete out.txt:
> > 
> > $ rm -f out.txt
> I also can confirm this on the same cygwin release but for x86_64:

No more metoos required, thank you.  It's a generic problem when trying
to trace forking/spawning parents without also tracing their children.

Having said that, I don't know what the cause is, but I guess that
"nobody did it" for a while.  Also, "don't do that" for now ;)


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgprkbbtnddB9.pgp
Description: PGP signature

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