From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sa-prd-fep-049.btinternet.com (mailomta21-sa.btinternet.com [213.120.69.27]) by sourceware.org (Postfix) with ESMTPS id 4B0983858D39 for ; Fri, 3 Nov 2023 13:59:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4B0983858D39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dronecode.org.uk Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dronecode.org.uk ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4B0983858D39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=213.120.69.27 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 Received: from sa-prd-rgout-001.btmx-prd.synchronoss.net ([10.2.38.4]) by sa-prd-fep-049.btinternet.com with ESMTP id <20231103135953.ZEJY27949.sa-prd-fep-049.btinternet.com@sa-prd-rgout-001.btmx-prd.synchronoss.net>; Fri, 3 Nov 2023 13:59:53 +0000 Authentication-Results: btinternet.com; auth=pass (PLAIN) smtp.auth=jonturney@btinternet.com; bimi=skipped 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 Received: from [192.168.1.107] (86.140.130.50) by sa-prd-rgout-001.btmx-prd.synchronoss.net (5.8.814.02) (authenticated as jonturney@btinternet.com) id 64C8373009BA5FA5; Fri, 3 Nov 2023 13:59:53 +0000 Message-ID: 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 , The Cygwin Mailing List References: From: Jon Turney In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 List-Id: 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.