delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/08/24/09:06:10

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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; q=dns; s=default; b=dqTS/1ElcDfmDXhz8W6GM42231i0h
B77zV2x+l3ncpP9Lg13OpQcc3pd9J3EvyafXKYyN5TLRjXhJ72y1fjTHq41n2BEl
dB4CkQL4Qz5azbDJDvIktGHIZ8Lg01LF9PC8sxBnd5dPLbeh0Zc2duVW8botjq24
a6m6gFmVKBe/LY=
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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; s=default; bh=Wo+8jkjft9AyZv8sDXaZcb8Mj04=; b=S2v
aZP8XdgjEYjEnCDRmN3dVETsxqUTbnY5exlgJjLr47nZ8sP6nIK9U4ssSJsz6lEm
3sCe5FDXU/zSzNRN2PS7iKcXOyfYQdXblbBz+2ut7Q9DnXG2ymxMceXal67lqU2U
LogNfoPLfin/cN5vgBnPAYOGMUnBOxtzNfaTcwbQ=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=1.9 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,MIME_BASE64_BLANKS autolearn=no version=3.3.2
X-HELO: USA7109MR004.ACS-INC.COM
From: "Nellis, Kenneth" <Kenneth DOT Nellis AT xerox DOT com>
To: cygwin <cygwin AT cygwin DOT com>
Subject: RE: strace -f hangs forever with process who creates child process
Date: Mon, 24 Aug 2015 13:05:37 +0000
Message-ID: <0D835E9B9CD07F40A48423F80D3B5A702E9126C0@USA7109MB022.na.xerox.net>
References: <CALd+sZSmEchJrQsm3YzxedC5aK5VcffhyQiLFx2tEProxCtyAQ AT mail DOT gmail DOT com>
In-Reply-To: <CALd+sZSmEchJrQsm3YzxedC5aK5VcffhyQiLFx2tEProxCtyAQ@mail.gmail.com>
MIME-Version: 1.0
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id t7OD67aL019569

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
rm: cannot remove ‘out.txt’: Device or resource busy
$ 

Commands 'ps' and 'who' don't indicate any other processes, but
Task Manager shows another bash process. After killing that process
I am then able to delete out.txt.

--Ken Nellis

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019