strace -f hangs forever with process who creates child process
Corinna Vinschen
corinna-cygwin@cygwin.com
Mon Aug 24 16:50:00 GMT 2015
On Aug 24 16:03, Corinna Vinschen wrote:
> 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 parent.sh
> > >> ./child.sh
> > >>
> > >> $ cat child.sh
> > >> echo haha
> > >>
> > >> $ strace -f -o out.txt bash -c parent.sh #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 ;)
Please try the latest developer snapshot from https://cygwin.com/snapshots/
It should fix the issue.
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150824/ae2a3026/attachment.sig>
More information about the Cygwin
mailing list