X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=ZPgRikLuqZfJ2Rdvqe/cz8mFMxmLyVwAa2sICYQwI912E1LLzqo1d vJhYSFDr02VqhZpewQnm6XL5XZHqg024wIew/Yw7PGzWo+wjEtsBZArMYhX2XybG TGVRfhz0mu4ps6U6f7DD29mkC6ATW4W/RhhkwnhPqKPKthWR/4KrIE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=g4DNbAPBuj/VU5lWp6NuvbUf04M=; b=EVKfGr+o+K6u27BOn04VWDKusq/u De5sCYI5IbgWnVgKeOcT8HAgs59r6NnqCMz34+2VLx8R39YcNCIj1/hPTyG8hwtK UjDIF4HxoW9UMEAiqlhXPcdHLrgw3XGVUf7IlLV9LwboS7TNMwUGaUXL3SWi0ewt e39O2//kctlC2iI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.5 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Date: Mon, 24 Aug 2015 16:03:40 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: strace -f hangs forever with process who creates child process Message-ID: <20150824140340.GA13346@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <0D835E9B9CD07F40A48423F80D3B5A702E9126C0 AT USA7109MB022 DOT na DOT xerox DOT net> <55DB1E06 DOT 3000708 AT leidos DOT com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="DocE+STaALJfprDB" Content-Disposition: inline In-Reply-To: <55DB1E06.3000708@leidos.com> User-Agent: Mutt/1.5.23 (2014-03-12) --DocE+STaALJfprDB Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 Cygwi= n) > >> > >> $ cat parent.sh > >> ./child.sh > >> > >> $ cat child.sh > >> echo haha > >> > >> $ strace -f -o out.txt bash -c parent.sh #hangs forever. > >=20 > > FWIW, this also seems to hang for me, but can't confirm that it=20 > > hangs "forever", as I didn't wait that long. Ctrl/C-ing out works,=20 > > but that takes several seconds to take effect. And then I can't=20 > > delete out.txt: > >=20 > > $ rm -f out.txt >=20 > 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 --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --DocE+STaALJfprDB Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJV2yQ8AAoJEPU2Bp2uRE+g+FcP/ipMUM2EeL7xOO45Ntbm4SGM Cvo92b28aOvcn46sveaYalEEqhNbRGV6LT8KRrD45lIb7Vj7IiCkulmE1HUr46PZ C6eFX488Evjne1dUUQKzGm6YaQEUPT+UkfQ+UjQJIcQ8wBP/1Lwaa9/RtRtTXDBK fF7V7Yeuu9ZfTTKte55oglk1JPkf4zAaPEqazuv0nM2QAE/fVPOzrsWvS+sbAwbt 6okU35n+L9l/q1AGWrOpRfh+sJ+ee/yx2RwJVTRgMmofCiJQHIWWBeuJyaDHV7Mz 1pe1aloX//aL6E0FNuRriwf/yGs/IFcfa6rvbBqIBGwspqFrwWzheOL9CMRsy29G g4ZIdEPcRWedAUFbmmP2+XoLbPOutLWF70XW0i4XSgyt2eN/YiJWTmtEeaAS6iEK WllEJzzxR/qQ+HxCrIzsDOBcRnA/DIznnkG2Tc1WqKuKjZdZbxot5+/WaclNBVAF zvTvmnAtAKJE6KrAx7V7IrBdm5EMsoccIy2urme7tdUSTaXaYKWq9W0BIVnhyU4K phSTJWFhwktxNQaHOyjX6mpK1xIvm+bQTOiimsuww4BuqEVZCgj//9+PDufS+HYT OmbhyiFJgd9pCuoTNFFV58rCxMwYQFYAp+mtGwnYfY1i8kS9S/TADLeOtjNJXyX4 Bweqy8IpltjZrD9aJMKn =t0gM -----END PGP SIGNATURE----- --DocE+STaALJfprDB--