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=iOhWhl+XX2Rmk/jS5y3ikQLlnKSRQhxB1yxkNa2Hhbv1PP8wQjuE7 BZFfFZe2PwRC24Lyd1YSGz+0TKa/NE45WliayBXdTG8pXiek77nw1/93+gYKLj+X he5XuLT2OgoqS4Zl4mts1sPn+MOfvRh0leMG0F1+CdaXYSVmvrCPf4= 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=7zsbCOgKyKBKHhU4Dp0J8j/nWIM=; b=iTlBbf6qZtAbKDAxQo7Y1wsJRiBw LtqtPVr4E3kpDRlfg4OI59ui6w74KpsVYKCeOsMs7xN3xBPHQ3UeQr14iSYbrPoP Qz2Gjl8VGdojGYysZkkIOYzZG26NAPIWdhrpuYi5rwOCdi875uVQ7X/a0bVdgObF ISo3kWapbI6luok= 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.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Date: Mon, 24 Aug 2015 18:50:19 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: strace -f hangs forever with process who creates child process Message-ID: <20150824165019.GA16196@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> <20150824140340 DOT GA13346 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline In-Reply-To: <20150824140340.GA13346@calimero.vinschen.de> User-Agent: Mutt/1.5.23 (2014-03-12) --9amGYk9869ThD9tj Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 Cyg= win) > > >> > > >> $ 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: >=20 > No more metoos required, thank you. It's a generic problem when trying > to trace forking/spawning parents without also tracing their children. >=20 > 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 --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --9amGYk9869ThD9tj Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJV20tLAAoJEPU2Bp2uRE+gwQ8P/34DfZwLuvlO9ME2BcgRdqee wL82WJ63Ev3BW2V9Y846B30mmr7ZANvx9c2k6Se6c5PevmVafWRQhXyVna3wub2J Xt7ydfoXHgI2ZfFiiI0xglJ3prbrN1O+08bOe5pe5keefpzFQizw0BpO5KJNd87B ItfzgQU3WETMX76BtEFjCUu8uMgGPttCoQirXdZtEqyF+SH7thBPKm6ivWxAUHbU c+kvsjhVndrk0sAD08JpRdk8puKV/L0qmMmjRQHFgPakK8vWptngtAae5suQMXp4 Gp/YcSbgGTeOS8dh7OEtCaR+ADcLeyT3l/aoi/Qm2SaiHkdfQ5EW+HI0EizXH0az QP6hJHQBwE9yE8xlpCYeFU6A6qXvYUz/V+dI1SBQnpT/ca1NNJHp+KY05IcSjZc4 DtlBr6LoQn28UfJQIRujiFRhQDki8DcUwl79vEUFlk7VA8Nsa+xInffRGDVkYVTU aKOyIyNF9n5fw5cMBOikAdzkaaDPptEQVT8Povsv0bbgLkqKT/Xkt10tUYueOV12 H32Ivc3LG095F20a/ww2b9/dmhf3AJ+IPGAl7WC6PrO/Cm8Jy0MlTharMZjI4zRj FaMnXTsPbLVi9fz9jRCadD7SqQ1AuX9VAcpbDckFKz1BMCbPpc7rg507FC90+aOt 2jACMeHiXN/vfHdOBdMu =92bg -----END PGP SIGNATURE----- --9amGYk9869ThD9tj--