X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7310A3858D39
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1699020016;
	bh=0P3BXlxFG3pfb2lOQNKu4c3fweqltDR4SDQ4Ov4Srh8=;
	h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=lFtQ+egf5tFXsnbPJiYlm4VMVfv0CusldASXnQro/UaOgYfsEoPjQBPHMStZkkuCr
	 JbN1dcngZMJXKOft+rqKOsgsxCWuuGY9ownbf3Swk5nb5nQNKg+0oGI7y2eb6vrzsN
	 SSwVy+F7mGsh9z56l9oDdKLq0yyi5uhg4PnDd7ok=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4B0983858D39
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4B0983858D39
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699019996; cv=none;
 b=JbZeruGOF7YKy3Zar8sARXr/vsIF+OhAevWWd6QQbwVZU5uqyh4RpKHycUiV+VfhSNsFGANqBz8soSoAtpDNWoaDhAuzAFRgGi7XsKJ8x0ZR48+kHoyajVEciUJd/bOOP3NHGdc8+2GTSq2Mgr3iNP0DEryOSO9SJFAqAlhGOkI=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1699019996; c=relaxed/simple;
 bh=UNDadoqkhy9l4Uex2s1qZujHtTBnHCARr9Azor597Jw=;
 h=Message-ID:Date:MIME-Version:Subject:To:From;
 b=xdf3Ho/KNmL+VrGntkyuY5Li/cZ19QTEwOzARV+IqkaEXlsBWlauNaZRv3ClB4BOLw9gNCfvyPl6esYEW8bzvyvVJuIroQqwSPmlZBaKXU9VENcKXFezGUk24g6WD7+4Hbx5tTjcaLJ+ucNjHBMOw+BHszLq2OdV0BafeqMCy7M=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-SNCR-Rigid: 64C8373009BA5FA5
X-Originating-IP: [86.140.130.50]
X-OWM-Source-IP: 86.140.130.50 (GB)
X-OWM-Env-Sender: jon.turney@dronecode.org.uk
X-VadeSecure-score: verdict=clean score=0/300, class=clean
X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvkedruddtkedggeeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeflohhnucfvuhhrnhgvhicuoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqeenucggtffrrghtthgvrhhnpedvvdeuheffuedvtdfhveekieefvdfhfeetffdvudehkeeigeetvdetjeetieeileenucfkphepkeeirddugedtrddufedtrdehtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegludelvddrudeikedruddruddtjegnpdhinhgvthepkeeirddugedtrddufedtrdehtddpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhnsggprhgtphhtthhopedvpdhrtghpthhtoheptgihghifihhnsegthihgfihinhdrtghomhdprhgtphhtthhopehrohhlrghnugdrmhgrihhniiesnhhruhgsshhighdrohhrghdprhgvvhfkrfephhhoshhtkeeiqddugedtqddufedtqdehtddrrhgrnhhgvgekiedqudegtddrsghttggvnhhtrhgrlhhplhhushdrtghomhdprghuthhhpghushgvrhepjhhonhhtuhhrnhgvhiessghtihhnthgvrhhnvghtrdgtohhm
 pdhgvghokffrpefiuedpoffvtefjohhsthepshgrqdhprhguqdhrghhouhhtqddttddu
X-RazorGate-Vade-Verdict: clean 0
X-RazorGate-Vade-Classification: clean
Message-ID: <b0ac33e2-1d8d-45b5-9bd1-64cd86765de3@dronecode.org.uk>
Date: Fri, 3 Nov 2023 13:59:52 +0000
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Watch open/read/write/close WIndows syscalls with strace ?
Content-Language: en-GB
To: Roland Mainz <roland.mainz@nrubsig.org>,
        The Cygwin Mailing List <cygwin@cygwin.com>
References: <CAKAoaQmPsW5N1rg6aeH8CQ9kybC=mZ0=i9iWw=Vk0TVpG6M3CA@mail.gmail.com>
In-Reply-To: <CAKAoaQmPsW5N1rg6aeH8CQ9kybC=mZ0=i9iWw=Vk0TVpG6M3CA@mail.gmail.com>
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL,
 KAM_DMARC_STATUS, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,
 SPF_PASS, TXREP,
 T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Jon Turney via Cygwin <cygwin@cygwin.com>
Reply-To: Jon Turney <jon.turney@dronecode.org.uk>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

On 02/11/2023 18:21, Roland Mainz via Cygwin wrote:
> 
> We're trying to debug mysterious sporadic I/O issues in Windows native
> git ('/cygdrive/c/Program Files/Git/cmd/git') started from Cygwin
> 3.5.0 mintty.exe ...
> ... which raises the question:
> 
> How can I watch the Windows syscalls for file open/read/write/close
> with Cygwin strace for a new process and all its process and thread
> children ?
> 
> I tried many combinations of --mask=xyz, -etc, but still do not see
> any I/O happening...

strace is not the tool for the job here.

As 'man strace' says: "The strace program executes a program [...] 
reporting any Cygwin DLL output from the program(s) to stdout"

(So strace just shows some general "debugging output" from inside the 
Cygwin DLL.  It perhaps should try to act a bit more like a real strace 
on UNIX, reporting all the emulated syscalls and their results, but that 
would require explicit annotation of all of those points inside the 
cygwin DLL.)

In any case, it isn't a tool for tracing native Windows programs. I 
suggest you use procmon, or some other similar native tool.


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
