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=l6RlvwPAIMppqpxKJKFqD31gK3Q5Mpppsng8iWqovOzdRZhYFDcXS zkpVHpaS7E5D/Z4NoLKjyaFNWCAjc36ZmSY6RT2DHEld4x5W1ntUbMb3gUJ7pKzL kuffCJG3Vr76n4Tf/WF7Img4Y+ZJyHY7FqnMtSkrAhWgsKceCCONHY= 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=aw+8/Ea8xHX9OIwhRmtrIyfZ5ko=; b=V1Z6MugNBOC34Uz9hArY3Mc1CtvA ozovXJGo6CJ55JAdRuNKgJJXsakwSS2YaZ/+X7PMV/dfCh4loZepDXu3Ut1fuqiF VezuDfuFa4jGMAiLDd34gKiOtROtREa3Vl/Rfz2ZsoAUpcJF4Sg2ffWOmMPGiqzb tJ6ymUbybQN+JcY= 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=-94.6 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_BRBL_LASTEXT,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=ham version=3.3.2 spammy=Hx-languages-length:1316 X-HELO: calimero.vinschen.de Date: Wed, 6 Jul 2016 19:14:09 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: strace red herring ? Message-ID: <20160706171409.GL13445@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <400ed6a7-cd4a-c136-7f65-a5244c7b96fa AT gmail DOT com> <20160706164236 DOT GK13445 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KlAEzMkarCnErv5Q" Content-Disposition: inline In-Reply-To: <20160706164236.GK13445@calimero.vinschen.de> User-Agent: Mutt/1.6.1 (2016-04-27) --KlAEzMkarCnErv5Q Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jul 6 18:42, Corinna Vinschen wrote: > On Jul 6 17:40, Marco Atzeri wrote: > > strace extract from a simple session > > strace -o mc.strace /usr/bin/mc.exe > >=20 > > some of the "child_copy: dll bss" report huge time steps, > > but I am almost sure the program was not waiting 15 seconds > >=20 > >=20 > > 18 526 [main] bash 5824 pinfo::thisproc: myself dwProcessId 5824 > > 47 573 [main] bash 5824 child_copy: dll data - hp 0x238 low 0x180202000, > > high 0x18020E320, res 1 > >=20 > > 15707110 15707683 [main] bash 5824 child_copy: dll bss - hp 0x238 low > > 0x1802D6000, high 0x18031FB30, res 1 > >=20 > > 224 15707907 [main] bash 5824 child_copy: user heap - hp 0x238 low > > 0x600000000, high 0x600080000, res 1 > > 24 15707931 [main] bash 5824 child_copy: done > >=20 > > Could be the counter wrong ? >=20 > Yes. It seems this is the value copied from the parent :) >=20 > A fix requires to move `static hires_ns now' out of the > strace::microseconds method and to save/restore it in child_copy. >=20 > I'll look into it the next couple of days if nobody beats me to it. It's even easier than that. We simply have to make sure it isn't copied into the child. I pushed a patch. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --KlAEzMkarCnErv5Q Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXfTxhAAoJEPU2Bp2uRE+geA4QAJk/Oi6VzdD1/MtbfEaXtcHm v96VJIyxuzCPhgGl7NIOBsCeqVkymMo4Nwng4yhN589UiH6FfchmjazYWDhw357y N8FM1Z+d2bLT5PXdgeizJs+EGMxxs+kcgBXorgeRB4FRhu6ufACT5l6npOxY16wM M7fUmZFxGUWHBvjQG7YkTgn6075zvzoC1z+S7mLPo58UJK8QBA28j+kCZXMwYpc8 E0qPHP132ZbMBsYCz3KsJL/Zhb8S7LEWcNp0kxjNMV2EphCZUZaOSllP4ZyX1fby Wzorp3Rwdj6UglQ8Hs4nmAxE8AGfpsJ8BfLqIzkSZJFUcgIXDdaCXaLJG0en0ZiE m2gdZ2OWvQBjOfXiMm8ACCMJp+rheiBlna1nOH8z6Vh+/CE2dJUGKYu1TSTxXgAs JPMVwOQ9L0cBV3Bm9c8yUB9fthFJQxMff+pTHAxvK7BQZUUyQT2eWPZh2xk3oSM6 tGfiVh1/r4iLiJbK9XTI2ylQyxD21MKzlufdxHd/P6hoLkUmWlo6EIp+sSEJGwjK FMnFSmc0KrxAO0TRL6azDSw0AYx97VD9XpenkRXK6JLYEqqApixdOG/nzuPX6w2h Iu8CLwQfht8GYj23ryHeJKTYigmGCchvBAxxWFRocWV24Zscvq9MUvyoICrAOksb E0ZnYsV3daPR2DWw/dyr =296V -----END PGP SIGNATURE----- --KlAEzMkarCnErv5Q--